|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.tensegrity.graph.view.VisualGraphOperations
The VisualGraphOperations class defines a set of methods that
represent operations upon a VisualGraph.
| Constructor Summary | |
VisualGraphOperations()
|
|
| Method Summary | |
static VisualEdge |
createVisualEdge(CompositeHierarchy hierarchy,
VisualGraphView visualgraphview,
VisualNode sourceNode,
VisualPort sourcePort,
VisualNode targetNode,
VisualPort targetPort)
Creates a VisualEdge between the VisualNodes
given by sourceNode and targetNode. |
static VisualEdge |
createVisualEdge(VisualGraphView visualgraphview,
VisualNode sourceNode,
VisualPort sourcePort,
VisualNode targetNode,
VisualPort targetPort)
Creates a VisualEdge between the VisualNodes
given by sourceNode and targetNode. |
static int |
findSnapToPortDistance(VisualEdge vEdge,
VisualGraphView vgv)
Determines the used snap to port distance for the given visual edge in the visualgraphview of this SwingGraphPanel |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public VisualGraphOperations()
| Method Detail |
public static final VisualEdge createVisualEdge(VisualGraphView visualgraphview,
VisualNode sourceNode,
VisualPort sourcePort,
VisualNode targetNode,
VisualPort targetPort)
VisualEdge between the VisualNodes
given by sourceNode and targetNode. To attach
the created VisualEdge to them the VisualPorts
given by sourcePort and targetPort are used.
VisualNodes must not lie directly
in the VisualGraphView given by
visualgraphview. They can also lie within a
VisualSubgraph that is part of the hierarchy of the given
VisualGraphView. The created VisualEdge will
lie in the top most VisualSubgraph /
VisualGraphView that holds one of the two given
VisualNodes
visualgraphview - the top level VisualGraphViewsourceNode - the VisualNode the created
VisualEdge will be attached to by it's source sidesourcePort - the VisualPort the created
VisualEdge should be attached to at the source nodetargetNode - the VisualNode the created
VisualEdge will be attached to by it's target sidetargetPort - the VisualPort the created
VisualEdge should be attached to at the target node
VisualEdge
public static final VisualEdge createVisualEdge(CompositeHierarchy hierarchy,
VisualGraphView visualgraphview,
VisualNode sourceNode,
VisualPort sourcePort,
VisualNode targetNode,
VisualPort targetPort)
VisualEdge between the VisualNodes
given by sourceNode and targetNode. To attach
the created VisualEdge to them the VisualPorts
given by sourcePort and targetPort are used.
VisualNodes must not lie directly
in the VisualGraphView given by
visualgraphview. They can also lie within a
VisualSubgraph that is part of the hierarchy of the given
VisualGraphView. The created VisualEdge will
lie in the top most VisualSubgraph /
VisualGraphView that holds one of the two given
VisualNodes
hierarchy - the CompositeHierarchy that should be used
to search the source and the target node withinvisualgraphview - the top level VisualGraphViewsourceNode - the VisualNode the created
VisualEdge will be attached to by it's source sidesourcePort - the VisualPort the created
VisualEdge should be attached to at the source nodetargetNode - the VisualNode the created
VisualEdge will be attached to by it's target sidetargetPort - the VisualPort the created
VisualEdge should be attached to at the target node
VisualEdge
public static int findSnapToPortDistance(VisualEdge vEdge,
VisualGraphView vgv)
vEdge - The visual edge to checkvgv - The graph panel the edge belongs to
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||