|
||||||||||
| PREV CLASS Documentation homepage NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectilog.views.IlvGraphic
ilog.views.graphic.IlvGraphicSet
ilog.views.graphic.composite.IlvCompositeGraphic
ilog.views.sdm.graphic.IlvSDMCompositeNode
public class IlvSDMCompositeNode
This class adds layering features to the IlvSDMCompositeNode class.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class ilog.views.graphic.IlvGraphicSet |
|---|
IlvGraphicSet.DelegateObjectInteractor |
| Field Summary |
|---|
| Fields inherited from class ilog.views.graphic.composite.IlvCompositeGraphic |
|---|
BaseBorderSelection, BaseHandleSelection, CompositeHandleSelection, InvisibleSelection, ResizingBase, ResizingComposite, TransformationModeAll, TransformationModeBaseOnly |
| Fields inherited from class ilog.views.graphic.IlvGraphicSet |
|---|
list |
| Constructor Summary | |
|---|---|
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. |
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface ilog.views.IlvGraphicBag |
|---|
getGraphicBag |
| Constructor Detail |
|---|
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.
| Method Detail |
|---|
public IlvGraphic copy()
copy in class IlvCompositeGraphicIlvGraphicpublic 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 IlvPersistentObjectwrite in class IlvCompositeGraphicstream - The output stream.
IOException - thrown when an exception occurs during
the write operation for this object.protected void removeChild(int index)
removeChild in class IlvCompositeGraphicindex - The position of the child to be removed.protected IlvGraphic getGraphicBag(int index)
getGraphicBag in class IlvCompositeGraphicpublic void selectionChanged(ManagerSelectionChangedEvent event)
selectionChanged in interface ManagerSelectionListenerselectionChanged in class IlvCompositeGraphicevent - 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 IlvCompositeGraphicbag - The graphic bag.IlvGraphicpublic void removeCompositeParts(boolean redraw)
IlvCompositePart instances from the manager
redraw - 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 IlvCompositeGraphict - 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
|
||||||||||
| PREV CLASS Documentation homepage NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||