|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.tigris.gef.graph.presentation.NetPrimitive
org.tigris.gef.graph.presentation.NetList
A class that implements the concept of a connected graph. A NetList is not any one object in the connected graph, it is the overall graph. A NetList contains a list of nodes and edges. This class is used by DefaulGraphModel, if you implement your own GraphModel, you can use your own application-specific representation of graphs.
Field Summary |
Fields inherited from class org.tigris.gef.graph.presentation.NetPrimitive |
_changeSup, _highlight |
Constructor Summary | |
NetList()
Construct a new NetList with no contained nodes. |
Method Summary | |
void |
addEdge(NetEdge a)
Add a NetEdge to this NetList. |
void |
addNode(NetNode n)
Add a node to this NetList. |
java.util.List |
getEdges()
Reply the vector of edges |
java.util.Collection |
getEdges(java.util.Collection c)
Reply the vector of edges |
java.lang.String |
getId()
|
java.lang.String |
getName()
|
java.util.List |
getNodes()
Reply the vector of nodes |
java.util.Collection |
getNodes(java.util.Collection c)
Reply the vector of nodes |
void |
removeAllEdges()
Remove all the edges from this NetList. |
void |
removeAllNodes()
Remove all the nodes from this NetList. |
void |
removeEdge(NetEdge a)
Remove a Edge from this NetList. |
void |
removeNode(NetNode n)
Remove a node from this NetList. |
void |
setName(java.lang.String n)
|
Methods inherited from class org.tigris.gef.graph.presentation.NetPrimitive |
addPropertyChangeListener, firePropertyChange, firePropertyChange, firePropertyChange, getHighlight, removePropertyChangeListener, setHighlight |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public NetList()
Method Detail |
public java.lang.String getId()
getId
in class NetPrimitive
public void setName(java.lang.String n)
public java.lang.String getName()
public java.util.List getNodes()
public java.util.List getEdges()
public java.util.Collection getNodes(java.util.Collection c)
public java.util.Collection getEdges(java.util.Collection c)
public void addNode(NetNode n)
public void removeNode(NetNode n)
public void addEdge(NetEdge a)
public void removeEdge(NetEdge a)
public void removeAllNodes()
public void removeAllEdges()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |