|
GoGraph |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--javax.swing.undo.UndoableEditSupport
|
+--org.jgraph.graph.DefaultGraphModel
|
+--gograph.base.graph.GGModel
A graph model that defines orientation, edge weights, initial vertex for algorithms, getting vertices, edges and neighbours in a particular order and does not allow vertex self-connexion.
| Field Summary |
| Fields inherited from class org.jgraph.graph.DefaultGraphModel |
asksAllowsChildren, emptyIterator, listenerList, roots |
| Fields inherited from class javax.swing.undo.UndoableEditSupport |
compoundEdit, listeners, realSource, updateLevel |
| Constructor Summary | |
GGModel()
|
|
| Method Summary | |
boolean |
acceptsSource(java.lang.Object edge,
java.lang.Object port)
Returns true if port is a valid source for edge. |
boolean |
acceptsTarget(java.lang.Object edge,
java.lang.Object port)
Returns true if port is a valid target for edge. |
java.lang.Object |
getEdgeBetween(GGModel model,
java.lang.Object vertex1,
java.lang.Object vertex2)
Get the Edge connecting vertex1 to vertex2, if it exists. |
java.lang.Object |
getInitial()
Initial vertex getter. |
java.util.Set |
getNeighbors(GGModel model,
java.lang.Object vertex)
Get the ordered set of neighbor vertices of vertex in model. |
java.util.Set |
getVertices(GGModel model)
Get the Set of all vertices in model. |
boolean |
isOriented()
Oriented model getter. |
boolean |
isWeighted()
Weighted model getter. |
void |
setInitial(java.lang.Object vertex)
Initial vertex setter. |
void |
setOriented(boolean isOriented)
Oriented model setter. |
void |
setWeighted(boolean isWeighted)
Weighted model setter. |
| Methods inherited from class org.jgraph.graph.DefaultGraphModel |
addGraphModelListener, cloneCells, connect, contains, createCellEdit, createEdit, createInsertEdit, createLayerEdit, createRemoveEdit, edges, edit, fireGraphChanged, getAttributes, getChild, getChildCount, getDescendantList, getDescendants, getEdges, getGraphModelListeners, getIndexOfChild, getIndexOfRoot, getParent, getRootAt, getRootCount, getRoots, getSource, getSourceVertex, getTarget, getTargetVertex, handleAttributes, handleConnection, handleConnectionSet, handleInsert, handleParentMap, handleRemove, insert, isEdge, isLeaf, isPort, remove, removeGraphModelListener, toBack, toFront |
| Methods inherited from class javax.swing.undo.UndoableEditSupport |
_postEdit, addUndoableEditListener, beginUpdate, createCompoundEdit, endUpdate, getUndoableEditListeners, getUpdateLevel, postEdit, removeUndoableEditListener, toString |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.jgraph.graph.GraphModel |
addUndoableEditListener, removeUndoableEditListener |
| Constructor Detail |
public GGModel()
| Method Detail |
public void setInitial(java.lang.Object vertex)
vertex - Initial vertex.public void setOriented(boolean isOriented)
isOriented - Oriented property boolean.public void setWeighted(boolean isWeighted)
isWeighted - Weighted property boolean.public java.lang.Object getInitial()
public boolean isOriented()
public boolean isWeighted()
public boolean acceptsSource(java.lang.Object edge,
java.lang.Object port)
acceptsSource in interface org.jgraph.graph.GraphModelacceptsSource in class org.jgraph.graph.DefaultGraphModeledge - Edge being tested.port - Port being tested.
true if port is a valid source for edge,
false otherwise.
public boolean acceptsTarget(java.lang.Object edge,
java.lang.Object port)
acceptsTarget in interface org.jgraph.graph.GraphModelacceptsTarget in class org.jgraph.graph.DefaultGraphModeledge - Edge being tested.port - Port being tested.
true if port is a valid target for edge,
false otherwise.
public java.util.Set getNeighbors(GGModel model,
java.lang.Object vertex)
model - Graph data model.vertex - Vertex from which to return neighbors.
public java.util.Set getVertices(GGModel model)
model - Graph data model.
public java.lang.Object getEdgeBetween(GGModel model,
java.lang.Object vertex1,
java.lang.Object vertex2)
model - Graph data model.vertex1 - A vertex from model.vertex2 - A vertex from model.
|
GoGraph |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||