Class FastRenderingLayout<V,E>
java.lang.Object
edu.uci.ics.jung.visualization.spatial.FastRenderingLayout<V,E>
- Type Parameters:
V
- the vertex typeE
- the edge type
- All Implemented Interfaces:
com.google.common.base.Function<V,
,Point2D> Layout<V,
,E> Function<V,
Point2D>
break into several rectangular areas, each of which will have a reference Graph
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetGraph()
getSize()
void
Initializes fields in the node that may not have been set during the constructor.boolean
void
Locks or unlocks the specified vertex.void
reset()
void
void
setInitializer
(com.google.common.base.Function<V, Point2D> initializer) void
setLocation
(V v, Point2D location) Changes the layout coordinates ofv
tolocation
.void
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.google.common.base.Function
equals
-
Field Details
-
layout
-
graph
-
grid
-
-
Constructor Details
-
FastRenderingLayout
-
-
Method Details
-
getGraph
-
getSize
-
initialize
public void initialize()Description copied from interface:Layout
Initializes fields in the node that may not have been set during the constructor. Must be called before the iterations begin.- Specified by:
initialize
in interfaceLayout<V,
E>
-
isLocked
-
lock
Description copied from interface:Layout
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. -
reset
public void reset() -
setGraph
-
setInitializer
- Specified by:
setInitializer
in interfaceLayout<V,
E> - Parameters:
initializer
- a function that specifies initial locations for all vertices
-
setLocation
Description copied from interface:Layout
Changes the layout coordinates ofv
tolocation
.- Specified by:
setLocation
in interfaceLayout<V,
E> - Parameters:
v
- the vertex whose location is to be specifiedlocation
- the coordinates of the specified location
-
setSize
-
apply
-