public class IlvSDMCompositeNode extends IlvCompositeGraphic implements ilog.views.sdm.internal.labellayout.IlvSDMLabeledNode
IlvCompositeGraphic
, it adds some internal
features used by SDM.IlvGraphicSet.DelegateObjectInteractor
BaseBorderSelection, BaseHandleSelection, CompositeHandleSelection, InvisibleSelection, ResizingBase, ResizingComposite, TransformationModeAll, TransformationModeBaseOnly
list
Constructor and Description |
---|
IlvSDMCompositeNode()
Creates an
IlvSDMCompositeNode instance. |
IlvSDMCompositeNode(IlvInputStream stream)
Reads the object from an
IlvInputStream . |
IlvSDMCompositeNode(IlvLayoutManager layout)
Creates an
IlvCompositeGraphic instance with the
specified layout. |
IlvSDMCompositeNode(IlvSDMCompositeNode source)
Creates a new
IlvCompositeGraphic by copying an existing one. |
Modifier and Type | Method and Description |
---|---|
void |
applyTransform(IlvTransformer t)
Applies a transformation to the shape of the object.
|
IlvGraphic |
copy()
Returns a copy of this composite node.
|
protected IlvGraphic |
getGraphicBag(int index)
Returns the graphic of the child at the specified position.
|
int[] |
getLayers()
Returns the layers of the children of this
IlvSDMCompositeNode instance. |
int |
getLayers(int index)
Returns the layer of the child at the specified position, or
-1
if the child at the specified position is in the same layer as this
IlvSDMCompositeNode . |
protected void |
removeChild(int index)
Removes the child at the specified position.
|
void |
removeCompositeParts(boolean redraw)
Removes all the
IlvCompositePart instances from the manager |
void |
selectionChanged(ManagerSelectionChangedEvent event)
This method is called when the selection changes in a manager.
|
void |
setGraphicBag(IlvGraphicBag bag)
Changes the bag that contains the object.
|
void |
setLayers(int[] layers)
Sets the layers of all the children of this object.
|
void |
setLayers(int index,
int layer)
Sets the layer of the child at the specified position.
|
void |
updateLabelingModel(IlvSDMEngine engine,
IlvAnnealingLabelLayout layout,
ilog.views.sdm.internal.labellayout.IlvSDMLabelingModel model,
Object node,
IlvGraphic graphic)
You should not call this method directly.
|
void |
write(IlvOutputStream stream)
Writes the object to an
IlvOutputStream . |
addChild, baseTextDirectionChanged, boundingBox, componentOrientationChanged, contains, doLayout, drawCore, getAction, getAttachableGraphic, getAttachables, getAttachmentBounds, getAttachmentBounds, getChildren, getChildren, getConstraints, getConstraints, getDefinitionRect, getDefinitionTransformer, getEventMap, getEventMaps, getEventMaps, getHotSpot, getIntersectionWithOutline, getLabel, getLabelBBox, getLayout, getLinkClippables, getLinkClippables, getObject, getParent, getResizingPolicy, getRoot, getSelectionType, getTransformationMode, getVisibilityThresholds, getVisibilityThresholds, hasActions, invalidate, invalidate, invalidateAndApplyToObject, invalidateBBoxCache, isBaseTextDirectionSensitive, isEmpty, isJViews80BoundingBoxCompatibility, isSensitive, isValid, isVisible, makeSelection, moveResize, reshapeObject, resize, rotate, scale, setChildren, setChildren, setConstraints, setConstraints, setDefinitionRect, setEventMap, setEventMaps, setEventMaps, setJViews80BoundingBoxCompatibility, setLabel, setLayout, setLayoutEnabled, setLinkClippables, setLinkClippables, setResizingPolicy, setSelectionType, setSensitive, setTransformationMode, setVisibilityThresholds, setVisibilityThresholds, supportMultiline, validate, zoomable
addGraphicBagHierarchyListener, addManagerViewsHierarchyListener, addObject, addObjectAt, applyToObject, applyToObjectImpl, contains, draw, enableGraphicBagHierarchyEventForwarding, enableManagerViewsHierarchyEventForwarding, fireGraphicBagHierarchyEvent, fireManagerViewsHierarchyEvent, firstContains, getAlpha, getCardinal, getClip, getIndex, getObject, getObjectName, getObjects, getOriginalPopupMenu, getPopupMenu, getToolTipText, isComponentOrientationSensitive, isLocaleSensitive, isPersistent, moveObject, needsGraphicBagHierarchyEvent, needsManagerViewsHierarchyEvent, reDrawObj, reDrawRegion, removeAll, removeGraphicBagHierarchyListener, removeManagerViewsHierarchyListener, removeObject, removeObjectAt, setAlpha, setBaseTextDirection, setClip, setInsideApply, setObjectName, shouldElementBePartOfClip, shouldRestrictListOfElementsForClip
calcResolvedBaseTextDirection, getBaseTextDirection, getComponentOrientation, getResolvedBaseTextDirection, getULocale, invalidateBidiCache, setBaseTextDirection, setBaseTextDirectionDuringConstruction
addActionListener, addNamedPropertyListener, allViewsRemoved, blinkingStateOn, boundingBox, callDraw, getAndAssociateObjectInteractor, getBlinkingAction, getBlinkingObjectOwner, getBlinkingOffPeriod, getBlinkingOnPeriod, getCenter, getDefaultInteractor, getGraphicBag, GetGraphicObject, getLocale, getName, getNamedProperty, getObjectInteractor, getPopupMenu, getPopupMenuName, getProperty, getToolTipBaseTextDirection, getToolTipText, getTopLevelGraphicBag, getTransferData, getTransferDataFlavors, getZOrderIndex, hasProperty, inside, intersects, isDataFlavorSupported, isEditable, isInApplyToObject, isMovable, isSelectable, localeChanged, move, move, needsViewNotification, notifyObjectInteractorToManager, processActionEvent, reDraw, registerBlinkingResource, removeActionListener, removeNamedProperty, removeNamedPropertyListener, removeProperty, replaceProperty, setBackground, setBlinkingAction, setBlinkingOffPeriod, setBlinkingOnPeriod, setEditable, setFillOn, setForeground, setInApplyToObject, setMovable, setName, setNamedProperty, setNameImpl, setObjectInteractor, setPopupMenu, setPopupMenuName, setProperty, setSelectable, setStrokeOn, setToolTipBaseTextDirection, setToolTipText, setVisible, setZOrderIndex, toString, translate, updateNeedsViewNotification, usesBidiMarkers, viewAddedOrRemoved
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getGraphicBag
public IlvSDMCompositeNode()
IlvSDMCompositeNode
instance.public IlvSDMCompositeNode(IlvLayoutManager layout)
IlvCompositeGraphic
instance with the
specified layout.layout
- The layout to be used to position the children of this object.IlvCompositeGraphic.setLayout(ilog.views.graphic.composite.layout.IlvLayoutManager)
,
IlvCompositeGraphic.getLayout()
,
IlvAttachmentLayout
,
IlvCenteredLayout
,
IlvStackerLayout
public IlvSDMCompositeNode(IlvInputStream stream) throws IlvReadFileException
IlvInputStream
.stream
- The input stream.IlvReadFileException
- if the format is not correct.public IlvSDMCompositeNode(IlvSDMCompositeNode source)
IlvCompositeGraphic
by copying an existing one.public IlvGraphic copy()
copy
in class IlvCompositeGraphic
IlvGraphic
public void setLayers(int[] layers)
layers
- The array of the layers for the children of this object.
Each value is an integer that denotes the layer for the child at the specified position. If the value is
-1
the child belongs to the layer of this IlvCompositeGraphic
instance.public void setLayers(int index, int layer)
index
- The index of the child.layer
- The layer in which the child should be inserted.
Note that if the manager does not have a layer that corresponds to this index,
the manager automatically increases the number of layers by calling setNumberOfLayer. If the
value is -1
, the child at the specified position belongs to the layer of this
IlvCompositeGraphic
instance.public int getLayers(int index)
-1
if the child at the specified position is in the same layer as this
IlvSDMCompositeNode
.getLayers
in class IlvCompositeGraphic
-1
if the child at the specified position is in the same layer as this
IlvSDMCompositeNode
.public int[] getLayers()
IlvSDMCompositeNode
instance.-1
if the child is in the same layer as this IlvCompositeGraphic
.public void write(IlvOutputStream stream) throws IOException
IlvOutputStream
.
You should not
call this method directly; instead, you should use the write
methods of the manager.write
in interface IlvPersistentObject
write
in class IlvCompositeGraphic
stream
- The output stream.IOException
- thrown when an exception occurs during
the write operation for this object.protected void removeChild(int index)
removeChild
in class IlvCompositeGraphic
index
- The position of the child to be removed.protected IlvGraphic getGraphicBag(int index)
getGraphicBag
in class IlvCompositeGraphic
public void selectionChanged(ManagerSelectionChangedEvent event)
selectionChanged
in interface ManagerSelectionListener
selectionChanged
in class IlvCompositeGraphic
event
- The "selection changed" event.IlvManager.addManagerSelectionListener(ilog.views.event.ManagerSelectionListener)
,
IlvManager.removeManagerSelectionListener(ilog.views.event.ManagerSelectionListener)
,
IlvManager.addManagerTreeSelectionListener(ilog.views.event.ManagerSelectionListener)
,
IlvManager.removeManagerTreeSelectionListener(ilog.views.event.ManagerSelectionListener)
,
IlvManager.selectionChanged(ilog.views.IlvGraphic)
public void setGraphicBag(IlvGraphicBag bag)
setGraphicBag
in class IlvCompositeGraphic
bag
- The graphic bag.IlvGraphic
public void removeCompositeParts(boolean redraw)
IlvCompositePart
instances from the managerredraw
- If true
the object is redrawn.public void applyTransform(IlvTransformer t)
Note that the method must never be called with a null
argument.
applyTransform
in class IlvCompositeGraphic
t
- The transformer to be applied.IlvGraphic
public void updateLabelingModel(IlvSDMEngine engine, IlvAnnealingLabelLayout layout, ilog.views.sdm.internal.labellayout.IlvSDMLabelingModel model, Object node, IlvGraphic graphic)
updateLabelingModel
in interface ilog.views.sdm.internal.labellayout.IlvSDMLabeledNode
© Copyright Rogue Wave Software, Inc. 1997, 2018. All Rights Reserved.