|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.ggtools.grand.graph.SubGraphImpl
class SubGraphImpl
| Nested Class Summary | |
|---|---|
(package private) static interface |
SubGraphImpl.NodeIteratorFactory
|
| Constructor Summary | |
|---|---|
SubGraphImpl(java.lang.String name)
Creates a new instance using a trival SubGraphImpl.NodeIteratorFactory. |
|
SubGraphImpl(java.lang.String name,
SubGraphImpl.NodeIteratorFactory nodeIteratorFactory)
Creates a new instance using a specific SubGraphImpl.NodeIteratorFactory. |
|
| Method Summary | |
|---|---|
void |
addNode(Node node)
Add a new node to the container. |
java.lang.String |
getName()
Returns the graph's name. |
Node |
getNode(java.lang.String nodeName)
Find a node from its name. |
java.util.Iterator |
getNodes()
Get the nodes contained in the graph. |
boolean |
hasNode(java.lang.String nodeName)
Checks if the graph has a node with a specific name. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
SubGraphImpl(java.lang.String name)
SubGraphImpl.NodeIteratorFactory.
name - sub graph name.
SubGraphImpl(java.lang.String name,
SubGraphImpl.NodeIteratorFactory nodeIteratorFactory)
SubGraphImpl.NodeIteratorFactory.
name - sub graph name.nodeIteratorFactory - factory to be used for getNodes().| Method Detail |
|---|
public void addNode(Node node)
throws DuplicateElementException
SubGraph
addNode in interface SubGraphnode - Node to be added.
DuplicateElementException - if a node with the same name already exists in the container.public java.lang.String getName()
SubGraph
getName in interface SubGraphpublic Node getNode(java.lang.String nodeName)
NodeContainer
getNode in interface NodeContainernodeName - name of the node to find.
public java.util.Iterator getNodes()
NodeContainerIterator.remove()method in order to allow the filters to remove
nodes.
getNodes in interface NodeContainerpublic boolean hasNode(java.lang.String nodeName)
NodeContainer
hasNode in interface NodeContainernodeName - node to search.
nodeName.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||