|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
This interface holds the methods that define the container role
for classes that manage VisualGraphObject instances. This
is the parent interface of both the VisualGraph and
VisualSubgraph interfaces.
A VisualGraphObjectContainter will manage VisualNode
and VisualEdge instances by providing implementations to add and
remove objects of these types.
VisualGraphObject,
VisualNode,
VisualEdge,
VisualSubgraph,
VisualGraph,
VisualGraphView| Field Summary | |
static int |
EVENT_MASK_EDGESPLIT
Enumeration for setting event masks for the different type of events. |
static int |
EVENT_MASK_ISOLATED_VISUALEDGE_ADDED
Enumeration for setting event masks for the different type of events. |
static int |
EVENT_MASK_ISOLATED_VISUALEDGE_PRE_ADD
Enumeration for setting event masks for the different type of events. |
static int |
EVENT_MASK_ISOLATED_VISUALEDGE_PRE_REMOVE
Enumeration for setting event masks for the different type of events. |
static int |
EVENT_MASK_ISOLATED_VISUALEDGE_REMOVED
Enumeration for setting event masks for the different type of events. |
static int |
EVENT_MASK_LAYOUT
Enumeration for setting event masks for the different type of events. |
static int |
EVENT_MASK_VISUALEDGE_ADDED
Enumeration for setting event masks for the different type of events. |
static int |
EVENT_MASK_VISUALEDGE_PRE_ADD
Enumeration for setting event masks for the different type of events. |
static int |
EVENT_MASK_VISUALEDGE_PRE_REMOVE
Enumeration for setting event masks for the different type of events. |
static int |
EVENT_MASK_VISUALEDGE_REMOVED
Enumeration for setting event masks for the different type of events. |
static int |
EVENT_MASK_VISUALNODE_ADDED
Enumeration for setting event masks for the different type of events. |
static int |
EVENT_MASK_VISUALNODE_DELETE_CASCADE
Enumeration for setting event masks for the different type of events. |
static int |
EVENT_MASK_VISUALNODE_PRE_ADD
Enumeration for setting event masks for the different type of events. |
static int |
EVENT_MASK_VISUALNODE_PRE_REMOVE
Enumeration for setting event masks for the different type of events. |
static int |
EVENT_MASK_VISUALNODE_REMOVED
Enumeration for setting event masks for the different type of events. |
| Method Summary | |
void |
addIsolatedVisualEdge(VisualEdge visualedge)
Adds a the given VisualEdge object as an isolated
edge to this VisualGraphObjectContainer.
|
void |
addVisualEdge(VisualEdge visualedge)
Adds a the given VisualEdge object to this
VisualGraphObjectContainer.
|
void |
addVisualNode(VisualNode visualnode)
Adds a the given VisualNode object to this
VisualGraphObjectContainer.
|
void |
disableVisualGraphEvents(int eventmask)
Disables all of the events specified in the given eventmask. |
void |
enableVisualGraphEvents(int eventmask)
Enables all of the events specified in the given eventmask. |
java.util.Iterator |
getAllVisualEdges()
Retrieves an Iterator for all VisualEdge
objects currently added to this VisualGraphObjectContainer.
|
GraphObjectContainer |
getGraphObjectContainer()
Gets the associated GraphObjectContainer of this instance.
|
VisualEdge |
getIsolatedVisualEdgeByID(long id)
Returns an isolated VisualEdge by ID or null if
no VisualEdge instance with the given ID is added to this
VisualGraphObjectContainer. |
int |
getIsolatedVisualEdgeCount()
Returns the number of all isolated VisualEdge objects
currently added to this VisualGraphObjectContainer. |
java.util.Iterator |
getIsolatedVisualEdges()
Retrieves an Iterator for all isolated
VisualEdge objects currently added to this
VisualGraphObjectContainer. |
java.util.Collection |
getIsolatedVisualEdgesCollection()
Retrieves a Collection of all isolated
VisualEdge objects currently added to this
VisualGraphObjectContainer. |
VisualGraphObjectContainer |
getParentContainer()
VisualGraphObjectContainer instances can be nested
inside of each other by means of the VisualSubgraph class.
|
VisualGraphObjectContainer |
getRootContainer()
VisualGraphObjectContainer instances can be nested
inside of each other by means of the VisualSubgraph class.
|
VisualEdge |
getVisualEdgeByID(long id)
Returns a VisualEdge by ID or null if no
VisualEdge instance with the given ID is added to this
VisualGraphObjectContainer. |
int |
getVisualEdgeCount()
Returns the number of all VisualEdge objects currently added
to this VisualGraphObjectContainer. |
java.util.Iterator |
getVisualEdges()
Retrieves an Iterator for all VisualEdge
objects currently added to this VisualGraphObjectContainer. |
java.util.Collection |
getVisualEdgesCollection()
Retrieves a Collection of all VisualEdge
objects currently added to this VisualGraphObjectContainer. |
int |
getVisualGraphEventmask()
Returns the current visualgraph event mask. |
java.util.Iterator |
getVisualGraphObjects()
Retrieves an Iterator for all VisualGraphObject
instances added to this VisualGraphObjectContainer. |
VisualNode |
getVisualNodeByID(long id)
Returns a VisualNode by ID or null if no
VisualNode instance with the given ID is added to this
VisualGraphObjectContainer. |
VisualNode |
getVisualNodeByName(java.lang.String name)
Returns a VisualNode by its name or null if no
VisualNode instance with the given name is added to this
VisualGraphObjectContainer.
|
int |
getVisualNodeCount()
Returns the number of all VisualNode objects currently added
to this VisualGraphObjectContainer. |
java.util.Iterator |
getVisualNodes()
Retrieves an Iterator for all VisualNode
objects currently added to this VisualGraphObjectContainer. |
java.util.Collection |
getVisualNodesCollection()
Retrieves a Collection of all VisualNode
objects currently added to this VisualGraphObjectContainer. |
VisualPort |
getVisualPortByID(long id)
Returns the VisualPort with the given ID or
null if a VisualPort with the given ID does
not exist. |
void |
removeIsolatedVisualEdge(VisualEdge visualedge)
Removes the given isolated VisualEdge object from
this VisualGraphObjectContainer.
|
void |
removeVisualEdge(VisualEdge visualedge)
Removes the given VisualEdge object from this
VisualGraphObjectContainer.
|
void |
removeVisualNode(VisualNode visualnode)
Removes the given VisualNode object from this
VisualGraphObjectContainer.
|
void |
specificPortReassignmentVisualEdge(VisualEdge visualedge,
VisualPortAssignmentPredicate predicate)
Reassigns all connected ports of a single edge to the desired port match. |
void |
specificPortReassignmentVisualEdge(VisualEdge visualedge,
VisualPortAssignmentPredicate predicateSource,
VisualPortAssignmentPredicate predicateTarget)
Reassigns all connected ports of a single edge to the desired port match. |
void |
specificPortReassignmentVisualEdgeSource(VisualEdge visualedge,
VisualPortAssignmentPredicate predicate)
Reassigns the source end of a single edge to the desired port match. |
void |
specificPortReassignmentVisualEdgeTarget(VisualEdge visualedge,
VisualPortAssignmentPredicate predicate)
Reassigns the target end of a single edge to the desired port match. |
void |
startBulkModify()
Begins a bulkmodify operation. |
void |
stopBulkModify()
Finishes a bulkmodify operation. |
void |
visitSubgraphs(VisualGraphVisitor visitor)
Recurse over all nested subgraphs starting from this visualsubgraph. |
| Field Detail |
public static final int EVENT_MASK_VISUALNODE_ADDED
public static final int EVENT_MASK_VISUALNODE_REMOVED
public static final int EVENT_MASK_VISUALEDGE_ADDED
public static final int EVENT_MASK_VISUALEDGE_REMOVED
public static final int EVENT_MASK_ISOLATED_VISUALEDGE_ADDED
public static final int EVENT_MASK_ISOLATED_VISUALEDGE_REMOVED
public static final int EVENT_MASK_LAYOUT
public static final int EVENT_MASK_EDGESPLIT
public static final int EVENT_MASK_VISUALNODE_DELETE_CASCADE
public static final int EVENT_MASK_VISUALNODE_PRE_ADD
public static final int EVENT_MASK_VISUALNODE_PRE_REMOVE
public static final int EVENT_MASK_VISUALEDGE_PRE_ADD
public static final int EVENT_MASK_VISUALEDGE_PRE_REMOVE
public static final int EVENT_MASK_ISOLATED_VISUALEDGE_PRE_ADD
public static final int EVENT_MASK_ISOLATED_VISUALEDGE_PRE_REMOVE
| Method Detail |
public VisualGraphObjectContainer getRootContainer()
VisualGraphObjectContainer instances can be nested
inside of each other by means of the VisualSubgraph class.
This method returns the root VisualGraphObjectContainer
of the nesting hierarchy, or the this
pointer if this instance is the root of the hierarchy.
In case this instance is not added to a parent
VisualGraphObjectContainer this method returns
null.
this.VisualSubgraphpublic VisualGraphObjectContainer getParentContainer()
VisualGraphObjectContainer instances can be nested
inside of each other by means of the VisualSubgraph class.
This method returns the parent VisualGraphObjectContainer
of this VisualGraphObjectContainer or null
if this instance is the root of the hierarchy.
null.VisualSubgraphpublic GraphObjectContainer getGraphObjectContainer()
GraphObjectContainer of this instance.
The model instance can be associated with one or multiple
VisualGraphObjectContainer instances.
GraphObjectContainerpublic java.util.Iterator getVisualGraphObjects()
Iterator for all VisualGraphObject
instances added to this VisualGraphObjectContainer.
Iterator over all VisualGraphObject
instances currently added to this VisualGraphObjectContainerVisualGraphObjectpublic int getVisualNodeCount()
VisualNode objects currently added
to this VisualGraphObjectContainer.
VisualNode objects added to the
VisualGraphObjectContainerVisualNodepublic VisualNode getVisualNodeByID(long id)
VisualNode by ID or null if no
VisualNode instance with the given ID is added to this
VisualGraphObjectContainer.
id - the ID to query
VisualNode object with the given id
or null if none was foundVisualNodepublic VisualNode getVisualNodeByName(java.lang.String name)
VisualNode by its name or null if no
VisualNode instance with the given name is added to this
VisualGraphObjectContainer.
VisualNode is given through the
Node it is associated to.
name - the name to query
VisualNode with the given name.VisualNode,
GraphObject.getLabel()public java.util.Iterator getVisualNodes()
Iterator for all VisualNode
objects currently added to this VisualGraphObjectContainer.
Iterator over all VisualNode
instances currently added to this VisualGraphObjectContainerVisualNode,
Iteratorpublic java.util.Collection getVisualNodesCollection()
Collection of all VisualNode
objects currently added to this VisualGraphObjectContainer.
Collection of all
VisualNode objects currently added to this
VisualGraphObjectContainer.VisualNode,
Collectionpublic int getVisualEdgeCount()
VisualEdge objects currently added
to this VisualGraphObjectContainer.
VisualEdge objects added to the
VisualGraphObjectContainerVisualEdgepublic VisualEdge getVisualEdgeByID(long id)
VisualEdge by ID or null if no
VisualEdge instance with the given ID is added to this
VisualGraphObjectContainer.
id - the ID to query
VisualEdge object with the given id
or null if none was foundVisualEdgepublic java.util.Iterator getVisualEdges()
Iterator for all VisualEdge
objects currently added to this VisualGraphObjectContainer.
Iterator over all VisualEdge
instances currently added to this VisualGraphObjectContainerVisualEdge,
Iteratorpublic java.util.Collection getVisualEdgesCollection()
Collection of all VisualEdge
objects currently added to this VisualGraphObjectContainer.
Collection of all
VisualEdge objects currently added to this
VisualGraphObjectContainer.VisualEdge,
Collectionpublic int getIsolatedVisualEdgeCount()
VisualEdge objects
currently added to this VisualGraphObjectContainer.
VisualEdge objects added to
the VisualGraphObjectContainerVisualEdgepublic VisualEdge getIsolatedVisualEdgeByID(long id)
VisualEdge by ID or null if
no VisualEdge instance with the given ID is added to this
VisualGraphObjectContainer.
id - the ID to query
VisualEdge object with the
given id or null if none was foundVisualEdgepublic java.util.Iterator getIsolatedVisualEdges()
Iterator for all isolated
VisualEdge objects currently added to this
VisualGraphObjectContainer.
Iterator over all isolated
VisualEdge instances currently added to this
VisualGraphObjectContainerVisualEdge,
Iteratorpublic java.util.Collection getIsolatedVisualEdgesCollection()
Collection of all isolated
VisualEdge objects currently added to this
VisualGraphObjectContainer.
Collection of all isolated
VisualEdge objects currently added to this
VisualGraphObjectContainer.VisualEdge,
Collectionpublic java.util.Iterator getAllVisualEdges()
Iterator for all VisualEdge
objects currently added to this VisualGraphObjectContainer.
All means in this case that both isolated and connected
VisualEdge objects are accessible through the returned
Iterator.
Iterator of all VisualEdge objects
currently added to this VisualGraphObjectContainer.VisualEdge,
Iteratorpublic VisualPort getVisualPortByID(long id)
VisualPort with the given ID or
null if a VisualPort with the given ID does
not exist.
id - the id to query.
VisualPort with the given id or
null.VisualPortpublic void addVisualNode(VisualNode visualnode)
VisualNode object to this
VisualGraphObjectContainer.
VisualNode object mustn't be added to another
VisualGraphObjectContainer for this operation to succeed.
VisualNode object can't be added
to this VisualGraphObjectContainer an
InvalidArgumentException is thrown. A
VisualNode might be prevented from getting added to a
VisualGraphObjectContainer because of a veto, the
NodeRule it is associated with, the VisualNode
is already added to another VisualGraphObjectContainer,
the associated model Node was not previously added to the
corresponding GraphObjectContainer or for other reasons.
visualnode - the VisualNode to add to this
VisualGraphObjectContainer
InvalidArgumentException - thrown if the given
VisualNode is null or if it can't be added to
this VisualGraphObjectContainerVisualNode,
Node,
GraphObjectContainer,
NodeRule
public void removeVisualNode(VisualNode visualnode)
throws IllegalNodeException
VisualNode object from this
VisualGraphObjectContainer.
VisualNode object must be added to this
VisualGraphObjectContainer for this operation to succeed
otherwise an IllegalNodeException is thrown.
IllegalNodeException is also thrown in case the
VisualNode object can't be removed from the
VisualGraphObjectContainer for other reasons like a veto or
the NodeRule that is associated to the
VisualNode or whatever.
visualnode - the VisualNode object to remove from this
VisualGraphObjectContainer.
IllegalNodeException - thrown if the VisualNode
object is null or if it can't be removed from this
VisualGraphObjectContainerVisualNode,
NodeRulepublic void addVisualEdge(VisualEdge visualedge)
VisualEdge object to this
VisualGraphObjectContainer.
VisualEdge object mustn't be added to another
VisualGraphObjectContainer for this operation to succeed.
VisualEdge object can't be added
to this VisualGraphObjectContainer an
InvalidArgumentException is thrown. A
VisualEdge might be prevented from getting added to a
VisualGraphObjectContainer because of a veto, the
EdgeRule it is associated with, the VisualEdge
is already added to another VisualGraphObjectContainer,
the associated model Edge was not previously added to the
corresponding GraphObjectContainer or for other reasons.
visualedge - the VisualEdge to add to this
VisualGraphObjectContainer
InvalidArgumentException - thrown if the given
VisualEdge is null or if it can't be added to
this VisualGraphObjectContainerVisualEdge,
Edge,
GraphObjectContainer,
EdgeRule
public void removeVisualEdge(VisualEdge visualedge)
throws IllegalEdgeException
VisualEdge object from this
VisualGraphObjectContainer.
VisualEdge object must be added to this
VisualGraphObjectContainer for this operation to succeed
otherwise an IllegalEdgeException is thrown.
IllegalEdgeException is also thrown in case the
VisualEdge object can't be removed from the
VisualGraphObjectContainer for other reasons like a veto or
the EdgeRule that is associated to the
VisualEdge or whatever.
visualedge - the VisualEdge object to remove from this
VisualGraphObjectContainer.
IllegalEdgeException - thrown if the VisualEdge
object is null or if it can't be removed from this
VisualGraphObjectContainerVisualEdge,
EdgeRulepublic void addIsolatedVisualEdge(VisualEdge visualedge)
VisualEdge object as an isolated
edge to this VisualGraphObjectContainer.
VisualEdge object mustn't be added to another
VisualGraphObjectContainer for this operation to succeed.
VisualEdge object can't be added
to this VisualGraphObjectContainer an
InvalidArgumentException is thrown. A
VisualEdge might be prevented from getting added to a
VisualGraphObjectContainer because of a veto, the
EdgeRule it is associated with, the VisualEdge
is already added to another VisualGraphObjectContainer or
for other reasons.
visualedge - the VisualEdge to add as an
isolated to this VisualGraphObjectContainer
InvalidArgumentException - thrown if the given
VisualEdge is null or if it can't be added to
this VisualGraphObjectContainerVisualEdge,
EdgeRule
public void removeIsolatedVisualEdge(VisualEdge visualedge)
throws IllegalEdgeException
VisualEdge object from
this VisualGraphObjectContainer.
VisualEdge object must be added as an
isolated edge to this VisualGraphObjectContainer for
this operation to succeed otherwise an IllegalEdgeException
is thrown.
IllegalEdgeException is also thrown in case the
VisualEdge object can't be removed from the
VisualGraphObjectContainer for other reasons like a veto or
the EdgeRule that is associated to the
VisualEdge or whatever.
visualedge - the VisualEdge object to remove from this
VisualGraphObjectContainer.
IllegalEdgeException - thrown if the VisualEdge
object is null or if it can't be removed from this
VisualGraphObjectContainerVisualEdge,
EdgeRulepublic void visitSubgraphs(VisualGraphVisitor visitor)
visitor - the VisualGraphVisitor that is used as a
functional callback for each encountered nested VisualSubgraphs.
public void specificPortReassignmentVisualEdgeSource(VisualEdge visualedge,
VisualPortAssignmentPredicate predicate)
visualedge - the VisualEdge for which ports are to be
reassigned at the end of the VisualEdge.predicate - a VisualPortAssignmentPredicate that
specifies the details of the port reassignment.VisualPortAssignmentPredicate
public void specificPortReassignmentVisualEdgeTarget(VisualEdge visualedge,
VisualPortAssignmentPredicate predicate)
visualedge - the VisualEdge for which ports are to be
reassigned at the end of the VisualEdge.predicate - a VisualPortAssignmentPredicate that
specifies the details of the port reassignment.VisualPortAssignmentPredicate
public void specificPortReassignmentVisualEdge(VisualEdge visualedge,
VisualPortAssignmentPredicate predicateSource,
VisualPortAssignmentPredicate predicateTarget)
visualedge - the VisualEdge for which ports are to be
reassigned.predicateSource - a VisualPortAssignmentPredicate that
specifies the details of the port reassignment for the source port of
the edge.predicateTarget - a VisualPortAssignmentPredicate that
specifies the details of the port reassignment for the target port of
the edge.VisualPortAssignmentPredicate
public void specificPortReassignmentVisualEdge(VisualEdge visualedge,
VisualPortAssignmentPredicate predicate)
visualedge - the VisualEdge for which ports are to be
reassigned.predicate - a VisualPortAssignmentPredicate that
specifies the details of the port reassignment.VisualPortAssignmentPredicatepublic int getVisualGraphEventmask()
public void enableVisualGraphEvents(int eventmask)
eventmask - specifies which events to enable.public void disableVisualGraphEvents(int eventmask)
eventmask - specifies which events to disable.public void startBulkModify()
stopBulkModify(). This
must always be ensured by the client.
public void stopBulkModify()
startBulkModify(). This
must always be ensured by the client.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||