|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectgdl.base.NodeMover
public class NodeMover
The NodeMover is used to move nodes in a thread (timer task) from one position to another, using linear interpolation on the polar coordinates. in addition, a slow-in slow-out animation speed regulation is available.
| Constructor Summary | |
|---|---|
NodeMover(GraphExplorerCanvas canvas,
edu.umd.cs.piccolo.PLayer nodeLayer,
edu.umd.cs.piccolo.PLayer edgeLayer,
java.util.LinkedList allEdges,
java.util.LinkedList allNodes,
GraphExplorerGui gui)
|
|
| Method Summary | |
|---|---|
void |
disableAllNodes()
disables all nodes on the canvas |
void |
enableAllNodes()
enables all nodes on the canvas |
void |
moveNodes()
actually moved the nodes from one position to another one. |
void |
reset(java.util.LinkedList _allNodes,
java.util.LinkedList _allEdges)
resets all member variables and temporary movement calculation values for a new List of Nodes and edges |
void |
setSteps(int steps)
sets the amount of steps (little movements) during the animation. if the amout is smaller, the animation will of course appear faster. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public NodeMover(GraphExplorerCanvas canvas,
edu.umd.cs.piccolo.PLayer nodeLayer,
edu.umd.cs.piccolo.PLayer edgeLayer,
java.util.LinkedList allEdges,
java.util.LinkedList allNodes,
GraphExplorerGui gui)
canvas - The GraphExplorerCanvas the nodes and edges are located onnodeLayer - the layer in the above specified canvas uses for nodesedgeLayer - the layer in the above specified canvas uses for edgesallEdges - a List of all available edges, containing GraphEdge objectsallNodes - a List of all available nodes, containing ContentNode objectsgui - the gui (necessary to disable it during the animation process)| Method Detail |
|---|
public void reset(java.util.LinkedList _allNodes,
java.util.LinkedList _allEdges)
_allNodes - a LinkedList of all nodes_allEdges - a LinkedList of all the edgespublic void moveNodes()
public void disableAllNodes()
public void enableAllNodes()
public void setSteps(int steps)
steps - the amout of animation steps
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||