public interface Layout<V,E>
extends org.apache.commons.collections15.Transformer<V,java.awt.geom.Point2D>
Modifier and Type | Method and Description |
---|---|
Graph<V,E> |
getGraph()
Returns the full graph (the one that was passed in at
construction time) that this Layout refers to.
|
java.awt.Dimension |
getSize()
Returns the current size of the visualization's space.
|
void |
initialize()
Initializes fields in the node that may not have
been set during the constructor.
|
boolean |
isLocked(V v)
Returns
true if the position of vertex v
is locked. |
void |
lock(V v,
boolean state)
Sets a flag which fixes this vertex in place.
|
void |
reset() |
void |
setGraph(Graph<V,E> graph)
setter for graph
|
void |
setInitializer(org.apache.commons.collections15.Transformer<V,java.awt.geom.Point2D> initializer)
provides initial locations for all vertices.
|
void |
setLocation(V v,
java.awt.geom.Point2D location)
set the location of a vertex
|
void |
setSize(java.awt.Dimension d) |
void initialize()
void setInitializer(org.apache.commons.collections15.Transformer<V,java.awt.geom.Point2D> initializer)
initializer
- Graph<V,E> getGraph()
void reset()
void setSize(java.awt.Dimension d)
d
- java.awt.Dimension getSize()
void lock(V v, boolean state)
v
- vertexboolean isLocked(V v)
true
if the position of vertex v
is locked.void setLocation(V v, java.awt.geom.Point2D location)
v
- location
- Copyright © 2021, 2022 Herve Girod. All Rights Reserved. Documentation and source under the BSD 3-Clause licence