|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface LayoutListener
Listener for layout algorithms.
This listener allows to be notified of each position change in the graph.
Method Summary | |
---|---|
void |
edgeChanged(String id,
double[] points)
The break points of an edge changed. |
void |
edgesChanged(Map<String,double[]> edges)
Several edges changed at once. |
void |
nodeInfos(String id,
double dx,
double dy,
double dz)
Only if requested in the layout algorithm, this reports various information on the node. |
void |
nodeMoved(String id,
double x,
double y,
double z)
A node moved to (x,y,z). |
void |
nodesMoved(Map<String,double[]> nodes)
Several nodes moved at once. |
void |
stepCompletion(double percent)
The current step is completed at the given percent. |
Method Detail |
---|
void nodeMoved(String id, double x, double y, double z)
id
- Identifier of the node that moved.x
- new abscissa of the node.y
- new ordinate of the node.z
- new depth of the node.void nodeInfos(String id, double dx, double dy, double dz)
id
- The node identifier.dx
- The node displacement vector.dy
- The node displacement vector.dz
- The node displacement vector.void edgeChanged(String id, double[] points)
id
- The edge that changed.points
- The points description. This description is specific to the
layout algorithm.void nodesMoved(Map<String,double[]> nodes)
nodes
- The new node positions.void edgesChanged(Map<String,double[]> edges)
edges
- The new edges description.void stepCompletion(double percent)
percent
- a number between 0 and 1, 1 means the steps is completed.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |