public class CompositePtolemyModel extends java.lang.Object implements CompositeModel
Location
Red (johnr) |
Yellow (neuendor) |
Constructor and Description |
---|
CompositePtolemyModel() |
Modifier and Type | Method and Description |
---|---|
protected Locatable |
_getLocation(NamedObj object)
Return the location attribute contained in the given object, or
a new location contained in the given object if there was no location.
|
int |
getNodeCount(java.lang.Object composite)
Return the number of nodes contained in the graph for the
specified composite.
|
java.util.Iterator |
nodes(java.lang.Object composite)
Return an iterator over all the nodes contained in the graph
for the specified composite.
|
java.util.Iterator |
nodesAfterEdges(java.lang.Object composite)
Return an iterator over the nodes that should
be rendered after to the edges.
|
java.util.Iterator |
nodesBeforeEdges(java.lang.Object composite)
Return an iterator over the nodes that should
be rendered prior to the edges.
|
public int getNodeCount(java.lang.Object composite)
getNodeCount
in interface CompositeModel
composite
- A composite entity.public java.util.Iterator nodes(java.lang.Object composite)
nodes
in interface CompositeModel
composite
- A composite entity.public java.util.Iterator nodesBeforeEdges(java.lang.Object composite)
nodesBeforeEdges
in interface CompositeModel
composite
- The composite.public java.util.Iterator nodesAfterEdges(java.lang.Object composite)
nodesAfterEdges
in interface CompositeModel
composite
- The composite.protected Locatable _getLocation(NamedObj object)
object
- The object for which a location is needed.