|
org.netbeans.api.visual 2.2 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.netbeans.api.visual.graph.layout.UniversalGraph<N,E>
public abstract class UniversalGraph<N,E>
This interface represents an universal graph. It unifies a view on a GraphScene and GraphPinScene as a nodes-edges only graph. This is commonly used by graph-oriented layout algorithms.
Constructor Summary | |
---|---|
UniversalGraph()
|
Method Summary | |
---|---|
abstract Collection<E> |
findNodeEdges(N node,
boolean allowsOutputEdges,
boolean allowsInputEdges)
Returns edges that are attached to a specified node. |
abstract Collection<E> |
getEdges()
Returns a collection of edges in the graph. |
abstract N |
getEdgeSource(E edge)
Returns an edge source. |
abstract N |
getEdgeTarget(E edge)
Returns an edge target. |
abstract Collection<N> |
getNodes()
Returns a collection of nodes in the graph. |
abstract ObjectScene |
getScene()
Returns a related scene as a ObjectScene. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public UniversalGraph()
Method Detail |
---|
public abstract ObjectScene getScene()
public abstract Collection<N> getNodes()
public abstract Collection<E> getEdges()
public abstract Collection<E> findNodeEdges(N node, boolean allowsOutputEdges, boolean allowsInputEdges)
node
- the nodeallowsOutputEdges
- if true then it finds all edges that has the node as their sourceallowsInputEdges
- if true then it finds all edges that has the node as their target
public abstract N getEdgeSource(E edge)
edge
- the edge
public abstract N getEdgeTarget(E edge)
edge
- the edge
|
org.netbeans.api.visual 2.2 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |