public static class IlvSubGraphRenderer.CollapsedGraphic extends IlvDoubleGraphicHandleBag
This class is public only to allow saving in an IVL file the contents of a grapher associated with an SDM engine and containing expandable nodes.
MAX_FLAG
Constructor and Description |
---|
CollapsedGraphic(IlvInputStream stream)
Reads the collapsed graphic from an IVL stream.
|
Modifier and Type | Method and Description |
---|---|
IlvRect |
boundingBox(IlvTransformer t)
Returns the bounding rectangle of the object.
|
boolean |
contains(IlvPoint p,
IlvPoint tp,
IlvTransformer t)
Tests if a point lies within the outline of the object,
or within the outline of the "expand" icon.
|
IlvGraphic |
copy()
Copies the object.
|
void |
draw(Graphics dst,
IlvTransformer t)
Draws the "expand" icon on top of the collapsed
graphic.
|
void |
write(IlvOutputStream stream)
Writes the collapsed graphic to an IVL stream.
|
addGraphicBagHierarchyListener, addManagerViewsHierarchyListener, addObject, applyToObject, applyTransform, enableGraphicBagHierarchyEventForwarding, enableManagerViewsHierarchyEventForwarding, fireGraphicBagHierarchyEvent, fireManagerViewsHierarchyEvent, getIntersectionWithOutline, getObject, getObject1, getObject2, getObjects, getOriginalPopupMenu, getPopupMenu, getToolTipText, inside, intersects, isFlagSet, isPersistent, move, move, moveObject, needsGraphicBagHierarchyEvent, needsManagerViewsHierarchyEvent, object1Name, object2Name, reDrawObj, reDrawRegion, removeGraphicBagHierarchyListener, removeManagerViewsHierarchyListener, removeObject, reshapeObject, setDelegateMoveResize, setFlag, setGraphicBag, setObject1, setObject2, setObjectName, translate, zoomable
calcResolvedBaseTextDirection, getBaseTextDirection, getComponentOrientation, getResolvedBaseTextDirection, getULocale, invalidateBidiCache, setBaseTextDirection, setBaseTextDirection, setBaseTextDirectionDuringConstruction
addActionListener, addNamedPropertyListener, allViewsRemoved, baseTextDirectionChanged, blinkingStateOn, boundingBox, callDraw, componentOrientationChanged, getAndAssociateObjectInteractor, getBlinkingAction, getBlinkingObjectOwner, getBlinkingOffPeriod, getBlinkingOnPeriod, getCenter, getDefaultInteractor, getGraphicBag, GetGraphicObject, getLocale, getName, getNamedProperty, getObjectInteractor, getPopupMenu, getPopupMenuName, getProperty, getToolTipBaseTextDirection, getToolTipText, getTopLevelGraphicBag, getTransferData, getTransferDataFlavors, getZOrderIndex, hasProperty, invalidateBBoxCache, isBaseTextDirectionSensitive, isComponentOrientationSensitive, isDataFlavorSupported, isEditable, isInApplyToObject, isLocaleSensitive, isMovable, isSelectable, isVisible, localeChanged, makeSelection, moveResize, needsViewNotification, notifyObjectInteractorToManager, processActionEvent, reDraw, registerBlinkingResource, removeActionListener, removeNamedProperty, removeNamedPropertyListener, removeProperty, replaceProperty, resize, rotate, scale, setBackground, setBlinkingAction, setBlinkingOffPeriod, setBlinkingOnPeriod, setEditable, setFillOn, setForeground, setInApplyToObject, setMovable, setName, setNamedProperty, setNameImpl, setObjectInteractor, setPopupMenu, setPopupMenuName, setProperty, setSelectable, setStrokeOn, setToolTipBaseTextDirection, setToolTipText, setVisible, setZOrderIndex, toString, updateNeedsViewNotification, usesBidiMarkers, viewAddedOrRemoved
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getGraphicBag
public CollapsedGraphic(IlvInputStream stream) throws IlvReadFileException, IOException
stream
- The input stream.IlvReadFileException
IOException
public IlvGraphic copy()
IlvDoubleGraphicHandleBag
null
if the contained object cannot be copied.copy
in class IlvDoubleGraphicHandleBag
IlvGraphic
public void write(IlvOutputStream stream) throws IOException
write
in interface IlvPersistentObject
write
in class IlvDoubleGraphicHandleBag
stream
- The output stream.IOException
- thrown when an exception occurs during
the write operation for this object.public void draw(Graphics dst, IlvTransformer t)
draw
in class IlvDoubleGraphicHandleBag
dst
- The Graphics
used to draw the collapsed graphic.t
- The transformer used to draw the collapsed graphic.IlvGraphic.callDraw(Graphics,IlvTransformer)
,
IlvGraphic.boundingBox(IlvTransformer)
,
IlvGraphic.zoomable()
,
IlvGraphic
public boolean contains(IlvPoint p, IlvPoint tp, IlvTransformer t)
contains
in class IlvDoubleGraphicHandleBag
p
- The point to be tested.tp
- The point p
transformed by the transformer t
.t
- The transformation used to draw the object.true
if the point lies inside this graphic object.IlvGraphic
public IlvRect boundingBox(IlvTransformer t)
IlvDoubleGraphicHandleBag
boundingBox
on the referenced objects.boundingBox
in class IlvDoubleGraphicHandleBag
t
- the transformer used to draw the object.IlvGraphic.draw(java.awt.Graphics, ilog.views.IlvTransformer)
,
IlvGraphic.zoomable()
,
IlvGraphic
© Copyright Rogue Wave Software, Inc. 1997, 2018. All Rights Reserved.