Interface Layout<V,E>
- All Known Subinterfaces:
PersistentLayout<V,E>
- All Known Implementing Classes:
AbstractLayout, AggregateLayout, BalloonLayout, CachingLayout, CircleLayout, DAGLayout, FastRenderingLayout, FRLayout, FRLayout2, ISOMLayout, KKLayout, LayoutDecorator, ObservableCachingLayout, PersistentLayoutImpl, RadialTreeLayout, SpringLayout, SpringLayout2, StaticLayout, TreeLayout
A generalized interface is a mechanism for returning (x,y) coordinates
from vertices. In general, most of these methods are used to both control and
get information from the layout algorithm.
-
Method Summary
Modifier and TypeMethodDescriptiongetGraph()getSize()voidInitializes fields in the node that may not have been set during the constructor.booleanvoidLocks or unlocks the specified vertex.voidreset()voidvoidsetInitializer(com.google.common.base.Function<V, Point2D> initializer) voidsetLocation(V v, Point2D location) Changes the layout coordinates ofvtolocation.voidMethods inherited from interface com.google.common.base.Function
apply, equals
-
Method Details
-
initialize
void initialize()Initializes fields in the node that may not have been set during the constructor. Must be called before the iterations begin. -
setInitializer
-
setGraph
-
getGraph
-
reset
void reset() -
setSize
- Parameters:
d- the space to use to lay out this graph
-
getSize
Dimension getSize()- Returns:
- the current size of the visualization's space
-
lock
Locks or unlocks the specified vertex. Locking the vertex fixes it at its current position, so that it will not be affected by the layout algorithm. Unlocking it allows the layout algorithm to change the vertex's position.- Parameters:
v- the vertex to lock/unlockstate-trueto lock the vertex,falseto unlock it
-
isLocked
- Parameters:
v- the vertex whose locked state is being queried- Returns:
trueif the position of vertexvis locked
-
setLocation
-