$darkmode
DENOPTIM
|
This layout extends the SpringLayout to change its behaviour. More...
Classes | |
class | RecreateKnownPositions |
Public Member Functions | |
DNPSpringLayout (Graph< V, E > g) | |
void | setInitialLocations (Map< String, Point2D > vertexPosition, boolean lock) |
void | initialize () |
Point2D | getVertexPosition (V vertex) throws ExecutionException |
Returns the current value of the position of the given vertex. More... | |
void | step () |
Relaxation step. More... | |
Private Member Functions | |
void | testTermination () |
Private Attributes | |
Map< String, Point2D > | oldVertexPosition |
Dimension | oldRange = new Dimension() |
int | iteration = 0 |
int | maxIterations = 500 |
boolean | lockInitialPositions = false |
This layout extends the SpringLayout to change its behaviour.
The differences are:
Definition at line 45 of file DNPSpringLayout.java.
denoptim.gui.DNPSpringLayout< V, E >.DNPSpringLayout | ( | Graph< V, E > | g | ) |
Definition at line 57 of file DNPSpringLayout.java.
Point2D denoptim.gui.DNPSpringLayout< V, E >.getVertexPosition | ( | V | vertex | ) | throws ExecutionException |
Returns the current value of the position of the given vertex.
vertex | the vertex to get the position of. |
ExecutionException |
Definition at line 146 of file DNPSpringLayout.java.
Referenced by denoptim.gui.JUNGGraphSnapshot.JUNGGraphSnapshot().
void denoptim.gui.DNPSpringLayout< V, E >.initialize | ( | ) |
Definition at line 88 of file DNPSpringLayout.java.
References denoptim.gui.DNPSpringLayout< V, E >.lockInitialPositions, and denoptim.gui.DNPSpringLayout< V, E >.oldVertexPosition.
void denoptim.gui.DNPSpringLayout< V, E >.setInitialLocations | ( | Map< String, Point2D > | vertexPosition, |
boolean | lock | ||
) |
Definition at line 66 of file DNPSpringLayout.java.
void denoptim.gui.DNPSpringLayout< V, E >.step | ( | ) |
Relaxation step.
Moves all nodes
Definition at line 157 of file DNPSpringLayout.java.
References denoptim.gui.DNPSpringLayout< V, E >.iteration, and denoptim.gui.DNPSpringLayout< V, E >.testTermination().
|
private |
Definition at line 165 of file DNPSpringLayout.java.
References denoptim.gui.DNPSpringLayout< V, E >.iteration, and denoptim.gui.DNPSpringLayout< V, E >.maxIterations.
Referenced by denoptim.gui.DNPSpringLayout< V, E >.step().
|
private |
Definition at line 50 of file DNPSpringLayout.java.
Referenced by denoptim.gui.DNPSpringLayout< V, E >.step(), and denoptim.gui.DNPSpringLayout< V, E >.testTermination().
|
private |
Definition at line 52 of file DNPSpringLayout.java.
Referenced by denoptim.gui.DNPSpringLayout< V, E >.initialize().
|
private |
Definition at line 51 of file DNPSpringLayout.java.
Referenced by denoptim.gui.DNPSpringLayout< V, E >.testTermination().
|
private |
Definition at line 48 of file DNPSpringLayout.java.
|
private |
Definition at line 47 of file DNPSpringLayout.java.
Referenced by denoptim.gui.DNPSpringLayout< V, E >.initialize().