public class IltcCompositeGrapher extends IltcCompositeManager
_context, _layerPolicy, _macroLayers, _manager, _managers, _parent, DefaultLayerPolicy
Constructor and Description |
---|
IltcCompositeGrapher(IlpContext appContext,
IlvManager manager,
boolean uniqueInIlvManager)
Creates a new grapher for IltcCompositeGraphic objects.
|
IltcCompositeGrapher(IlvManager manager)
Creates a new grapher for IltcCompositeGraphic objects.
|
Modifier and Type | Method and Description |
---|---|
protected void |
addInteractiveProxyObject(IltcCompositeGraphic graphic)
Adds a composite object's interactive proxy object to the IlvManager.
|
protected void |
addLayoutProxyObject(IltcCompositeGraphic graphic)
Adds a composite object's proxy object to the IlvManager.
|
void |
addLink(IltcCompositeGraphic link,
IltcCompositeGraphic fromNode,
IltcCompositeGraphic toNode)
Adds a link to the grapher.
|
void |
addLink(IltcCompositeGraphic link,
IltcCompositeGraphic fromNode,
IltcCompositeGraphic toNode,
IltcLayer mlayer)
Adds a link to the grapher.
|
void |
addNode(IltcCompositeGraphic node)
Adds a node to the grapher.
|
void |
addNode(IltcCompositeGraphic node,
IltcLayer mlayer)
Adds a node to the grapher.
|
protected void |
addObject(IltcCompositeGraphic graphic,
IltcLayer mlayer,
boolean temporary)
Adds a composite object to the manager.
|
protected void |
applyToLayoutProxy(IltcCompositeGraphic graphic,
IlvGraphic proxy,
IlvApplyObject f,
Object arg)
Applies a function f, with a proxy object temporarily removed from the
manager.
|
Enumeration |
getAllLinks()
Returns an enumeration of all the links.
|
Enumeration |
getAllNodes()
Returns an enumeration of all the nodes.
|
IltcCompositeGraphic |
getFrom(IltcCompositeGraphic link)
Returns the starting point of a link.
|
Enumeration |
getLinks(IltcCompositeGraphic node)
Returns an enumeration of all the links ending on a given node.
|
Enumeration |
getLinksFrom(IltcCompositeGraphic node)
Returns an enumeration of all the links originating from a given node.
|
Enumeration |
getLinksTo(IltcCompositeGraphic node)
Returns an enumeration of all the links going to a given node.
|
IltcCompositeGraphic |
getTo(IltcCompositeGraphic link)
Returns the ending point of a link.
|
boolean |
isLink(IltcCompositeGraphic object)
Determines whether an object is known as a link to the grapher.
|
boolean |
isNode(IltcCompositeGraphic object)
Determines whether an object is known as a node to the grapher.
|
void |
linkAdded(IltcCompositeGraphic graphic)
This function is called when a link in the manager is added.
|
void |
linkChanged(IltcCompositeGraphic graphic,
boolean mustLayout)
This function is called when a link in the manager is changed or moved.
|
void |
linkRemoved(IltcCompositeGraphic graphic)
This function is called when a link in the manager is removed.
|
protected boolean |
mustUpdateAdjacentLinks(IltcCompositeGraphic node) |
void |
nodeAdded(IltcCompositeGraphic graphic)
This function is called when a node in the manager is added.
|
void |
nodeChanged(IltcCompositeGraphic graphic,
boolean mustLayout)
This function is called when a node in the manager is changed or moved.
|
void |
nodeRemoved(IltcCompositeGraphic graphic)
This function is called when a node in the manager is removed.
|
void |
objectChanged(IltcCompositeGraphic object,
boolean mustLayout)
This function is called when a composite object (present in the
manager) is changed or moved.
|
protected void |
removeAdjacentLinks(IltcCompositeGraphic node,
Vector links)
Removes a set of links, all incident with the same node, from the
grapher, and notifies the world about it.
|
protected void |
removeInteractiveProxyObject(IltcCompositeGraphic graphic)
Removes a composite object's interactive proxy object from the IlvManager.
|
protected void |
removeLayoutProxyObject(IltcCompositeGraphic graphic)
Removes a composite object's proxy object from the IlvManager.
|
void |
removeLink(IltcCompositeGraphic link)
Removes a link from the grapher.
|
void |
removeLinkNotify(IltcCompositeGraphic link)
Removes a link from the grapher, and notifies the world about it.
|
void |
removeNode(IltcCompositeGraphic node)
Removes a node from the grapher.
|
protected void |
removeObject(IltcCompositeGraphic graphic,
boolean temporary)
Removes a composite object from the manager.
|
_composeZoomTransformer, _getInverseZoomTransformer, _getZoomTransformer, _setZoomTransformer, addIlvManagerLayerBelow, addIlvManagerLayerBelow, addIlvManagerLayerOnTop, addIlvManagerLayerOnTop, addLayerAtBottom, addLayerBelow, addLayerBelow, addLayerOnTop, addLayerOnTop, addLayerOnTop, addManager, addObject, addObject, AddZoomListener, AddZoomSupport, applyToObject, applyToObject, applyToObject, applyTransformObject, ApplyTransformObject, attachView, composeInverseZoomTransformerWith, detachView, dispose, endDelayingOptimizeLayout, endDelayingUpdates, fireSelectionEventSeriesBegin, fireSelectionEventSeriesEnd, fireTreeSelectionEventSeriesBegin, fireTreeSelectionEventSeriesEnd, GetCompositeGraphic, GetCompositeGraphicFromProxy, GetCompositeManagers, getContext, getInsertionLayer, getInteractiveProxyLayer, getInvisibleLayer, getLayer, GetLayer, getLayerCloseBelow, getLayerCloseOnTop, getLayerPolicy, getLayers, getManager, getManagers, getManagersCount, GetObject, GetObjectOnlyJTGO, getParentManager, getProxyLayer, getRelativeTransformer, getTopLevelManager, getTopLevelTransformer, getZoomPolicy, getZoomTransformer, isManaged, isVisible, isVisible, layerFullName, reDrawObject, removeLayer, removeLayer, removeManager, removeObject, RemoveZoomListener, removeZoomPolicy, RemoveZoomSupport, replaceHierarchyRoot, ReplaceHierarchyRoot, setForcedInvisible, setInsertionLayer, setLayerPolicy, setParent, setVisible, setVisible, startDelayingOptimizeLayout, startDelayingUpdates, translateObject, TranslateObject, updatePositions, UpdatePositions
public IltcCompositeGrapher(IlvManager manager)
public IltcCompositeGrapher(IlpContext appContext, IlvManager manager, boolean uniqueInIlvManager)
public void addNode(IltcCompositeGraphic node)
public void addNode(IltcCompositeGraphic node, IltcLayer mlayer)
node
- The node to be added.mlayer
- Layer to put the node into.public void addLink(IltcCompositeGraphic link, IltcCompositeGraphic fromNode, IltcCompositeGraphic toNode)
public void addLink(IltcCompositeGraphic link, IltcCompositeGraphic fromNode, IltcCompositeGraphic toNode, IltcLayer mlayer)
link
- The link to be added.fromNode
- The from end-point.toNode
- The to end-point.mlayer
- The layer to put the node into.public Enumeration getAllNodes()
IltcCompositeGraphic
IltCompositeGrapher.getNodes()
public Enumeration getAllLinks()
IltcCompositeGraphic
IltCompositeGrapher.getLinks()
public IltcCompositeGraphic getFrom(IltcCompositeGraphic link)
public IltcCompositeGraphic getTo(IltcCompositeGraphic link)
public Enumeration getLinks(IltcCompositeGraphic node)
IltcCompositeGraphic
public Enumeration getLinksFrom(IltcCompositeGraphic node)
IltcCompositeGraphic
public Enumeration getLinksTo(IltcCompositeGraphic node)
IltcCompositeGraphic
public void removeLink(IltcCompositeGraphic link)
Note: In order to remove a link temporarily from the grapher (while keeping its ends the same) it is more efficient to use removeObject() and addObject().
Note: This function does not maintain the coherence between IltObjects and the grapher. Please use the function IltObject.removeGraphic instead.
public void removeLinkNotify(IltcCompositeGraphic link)
protected void removeAdjacentLinks(IltcCompositeGraphic node, Vector links)
public void removeNode(IltcCompositeGraphic node)
Note: In order to remove a node temporarily from the grapher (while keeping its links intact), you have to use removeObject() and addObject(), not removeNode().
Note: This function does not maintain the coherence between IltObjects and the grapher. Please use the function IltObject.removeGraphic instead.
public boolean isNode(IltcCompositeGraphic object)
public boolean isLink(IltcCompositeGraphic object)
protected void addLayoutProxyObject(IltcCompositeGraphic graphic)
IltcCompositeManager
addLayoutProxyObject
in class IltcCompositeManager
protected void removeLayoutProxyObject(IltcCompositeGraphic graphic)
IltcCompositeManager
removeLayoutProxyObject
in class IltcCompositeManager
protected void applyToLayoutProxy(IltcCompositeGraphic graphic, IlvGraphic proxy, IlvApplyObject f, Object arg)
applyToLayoutProxy
in class IltcCompositeManager
protected boolean mustUpdateAdjacentLinks(IltcCompositeGraphic node)
protected void addInteractiveProxyObject(IltcCompositeGraphic graphic)
IltcCompositeManager
addInteractiveProxyObject
in class IltcCompositeManager
protected void removeInteractiveProxyObject(IltcCompositeGraphic graphic)
IltcCompositeManager
removeInteractiveProxyObject
in class IltcCompositeManager
protected void addObject(IltcCompositeGraphic graphic, IltcLayer mlayer, boolean temporary)
Note: This does not call addNode() or addLink(). On the contrary, this function is called by addNode() and addLink(), and it calls nodeAdded() or linkAdded(), respectively.
addObject
in class IltcCompositeManager
protected void removeObject(IltcCompositeGraphic graphic, boolean temporary)
Note: This does not call removeNode() or removeLink(). On the contrary, this function is called by removeNode() and removeLink(), and it calls nodeRemoved() or linkRemoved(), respectively.
removeObject
in class IltcCompositeManager
public void objectChanged(IltcCompositeGraphic object, boolean mustLayout)
IltcCompositeManager
Subclasses should override this method.
objectChanged
in class IltcCompositeManager
object
- the graphic object which has changedmustLayout
- whether the layout proxy's size has changedpublic void nodeAdded(IltcCompositeGraphic graphic)
Subclasses should override this method.
public void nodeChanged(IltcCompositeGraphic graphic, boolean mustLayout)
Subclasses should override this method.
graphic
- the graphic object which has changedmustLayout
- whether the layout proxy's size has changedpublic void nodeRemoved(IltcCompositeGraphic graphic)
Subclasses should override this method.
public void linkAdded(IltcCompositeGraphic graphic)
Subclasses should override this method.
public void linkChanged(IltcCompositeGraphic graphic, boolean mustLayout)
Subclasses should override this method.
graphic
- the graphic object which has changedmustLayout
- whether the layout proxy's shape and size have changedpublic void linkRemoved(IltcCompositeGraphic graphic)
Subclasses should override this method.
© Copyright 2024 Rogue Wave Software, Inc., a Perforce company.. All Rights Reserved.