public interface Layout<V,E> extends com.google.common.base.Function<V,Point2D>
Modifier and Type | Method and Description |
---|---|
Graph<V,E> |
getGraph() |
Dimension |
getSize() |
void |
initialize()
Initializes fields in the node that may not have
been set during the constructor.
|
boolean |
isLocked(V v) |
void |
lock(V v,
boolean state)
Locks or unlocks the specified vertex.
|
void |
reset() |
void |
setGraph(Graph<V,E> graph) |
void |
setInitializer(com.google.common.base.Function<V,Point2D> initializer) |
void |
setLocation(V v,
Point2D location)
Changes the layout coordinates of
v to location . |
void |
setSize(Dimension d) |
void initialize()
void setInitializer(com.google.common.base.Function<V,Point2D> initializer)
initializer
- a function that specifies initial locations for all verticesvoid setGraph(Graph<V,E> graph)
graph
- the graph that this algorithm is to operate onvoid reset()
void setSize(Dimension d)
d
- the space to use to lay out this graphDimension getSize()
void lock(V v, boolean state)
v
- the vertex to lock/unlockstate
- true
to lock the vertex, false
to unlock itboolean isLocked(V v)
v
- the vertex whose locked state is being queriedtrue
if the position of vertex v
is lockedCopyright © 2016. All rights reserved.