|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
This interface provides a facade to a net-level representation. Similiar in concept to the Swing class TreeModel.
This interface goes beyond GraphModel in that it allows modifications to the graph, instead of just access.
DefaultGraphModel,
AdjacencyMatrixGraphModel,
uci.graph.demo.WordTransforms| Field Summary | |
static long |
serialVersionUID
|
| Fields inherited from class uci.graph.GraphModel |
serialVersionUID |
| Fields inherited from class java.io.Serializable |
serialVersionUID |
| Method Summary | |
void |
addEdge(Object edge)
Add the given edge to the graph, if valid. |
void |
addNode(Object node)
Add the given node to the graph, if valid. |
boolean |
canAddEdge(Object edge)
Return true if the given object is a valid edge in this graph |
boolean |
canAddNode(Object node)
Return true if the given object is a valid node in this graph |
boolean |
canConnect(Object fromP,
Object toP)
Return true if the two given ports can be connected by a kind of edge to be determined by the ports. |
boolean |
canConnect(Object fromP,
Object toP,
Class edgeClass)
Return true if the two given ports can be connected by the given kind of edge. |
Object |
connect(Object fromPort,
Object toPort)
Contruct and add a new edge of a kind determined by the ports. |
Object |
connect(Object fromPort,
Object toPort,
Class edgeClass)
Contruct and add a new edge of the given kind. |
void |
removeEdge(Object edge)
Remove the given edge from the graph. |
void |
removeNode(Object node)
Remove the given node from the graph. |
| Methods inherited from interface uci.graph.GraphModel |
addGraphEventListener,
getDestPort,
getEdges,
getInEdges,
getNodes,
getOutEdges,
getOwner,
getPorts,
getSourcePort,
removeGraphEventListener |
| Field Detail |
public static final long serialVersionUID
| Method Detail |
public boolean canAddNode(Object node)
public boolean canAddEdge(Object edge)
public void removeNode(Object node)
public void addNode(Object node)
public void addEdge(Object edge)
public void removeEdge(Object edge)
public boolean canConnect(Object fromP,
Object toP)
public boolean canConnect(Object fromP,
Object toP,
Class edgeClass)
public Object connect(Object fromPort,
Object toPort)
public Object connect(Object fromPort,
Object toPort,
Class edgeClass)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||