Interface Layout<V,E>
-
- All Superinterfaces:
org.apache.commons.collections4.Transformer<V,java.awt.geom.Point2D>
- All Known Implementing Classes:
AbstractLayout
,AggregateLayout
,BalloonLayout
,CircleLayout
,DAGLayout
,FRLayout
,FRLayout2
,ISOMLayout
,KKLayout
,LayoutDecorator
,RadialTreeLayout
,SpringLayout
,SpringLayout2
,StaticLayout
,TreeLayout
public interface Layout<V,E> extends org.apache.commons.collections4.Transformer<V,java.awt.geom.Point2D>
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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description edu.uci.ics.jung.graph.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)
Returnstrue
if the position of vertexv
is locked.void
lock(V v, boolean state)
Sets a flag which fixes this vertex in place.void
reset()
void
setGraph(edu.uci.ics.jung.graph.Graph<V,E> graph)
setter for graphvoid
setInitializer(org.apache.commons.collections4.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 vertexvoid
setSize(java.awt.Dimension d)
-
-
-
Method Detail
-
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
void setInitializer(org.apache.commons.collections4.Transformer<V,java.awt.geom.Point2D> initializer)
provides initial locations for all vertices.- Parameters:
initializer
-
-
setGraph
void setGraph(edu.uci.ics.jung.graph.Graph<V,E> graph)
setter for graph- Parameters:
graph
-
-
getGraph
edu.uci.ics.jung.graph.Graph<V,E> getGraph()
Returns the full graph (the one that was passed in at construction time) that this Layout refers to.
-
reset
void reset()
-
setSize
void setSize(java.awt.Dimension d)
- Parameters:
d
-
-
getSize
java.awt.Dimension getSize()
Returns the current size of the visualization's space.
-
lock
void lock(V v, boolean state)
Sets a flag which fixes this vertex in place.- Parameters:
v
- vertex
-
isLocked
boolean isLocked(V v)
Returnstrue
if the position of vertexv
is locked.
-
setLocation
void setLocation(V v, java.awt.geom.Point2D location)
set the location of a vertex- Parameters:
v
-location
-
-
-