| Modifier and Type | Field and Description |
|---|---|
protected Graph<V,E> |
graph |
protected Rectangle2D[][] |
grid |
protected Layout<V,E> |
layout |
| Constructor and Description |
|---|
FastRenderingLayout(Layout<V,E> layout) |
| Modifier and Type | Method and Description |
|---|---|
Point2D |
apply(V arg0) |
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) |
protected Rectangle2D[][] grid
public Dimension getSize()
public void initialize()
Layoutinitialize in interface Layout<V,E>public boolean isLocked(V v)
public void lock(V v, boolean state)
Layoutpublic void setInitializer(com.google.common.base.Function<V,Point2D> initializer)
setInitializer in interface Layout<V,E>initializer - a function that specifies initial locations for all verticespublic void setLocation(V v, Point2D location)
Layoutv to location.setLocation in interface Layout<V,E>v - the vertex whose location is to be specifiedlocation - the coordinates of the specified locationpublic void setSize(Dimension d)
Copyright © 2016. All rights reserved.