edu.uci.ics.jung.visualization.layout
Class CachingLayout<V,E>
java.lang.Object
edu.uci.ics.jung.algorithms.layout.LayoutDecorator<V,E>
edu.uci.ics.jung.visualization.layout.CachingLayout<V,E>
- All Implemented Interfaces:
- Layout<V,E>, IterativeContext, Caching
public class CachingLayout<V,E>
- extends LayoutDecorator<V,E>
- implements Caching
A LayoutDecorator that caches locations in a clearable Map. This can be used to ensure that
edge endpoints are always the same as vertex locations when they are drawn in the render loop
during the time that the layout's relaxer thread is changing the locations.
- Author:
- Tom Nelson
- See Also:
LayoutDecorator
| Methods inherited from class edu.uci.ics.jung.algorithms.layout.LayoutDecorator |
done, getDelegate, getGraph, getSize, initialize, isLocked, lock, reset, setDelegate, setInitializer, setLocation, setSize, step |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
locationMap
protected Map<V,Point2D> locationMap
CachingLayout
public CachingLayout(Layout<V,E> delegate)
setGraph
public void setGraph(Graph<V,E> graph)
- Description copied from interface:
Layout
- setter for graph
- Specified by:
setGraph in interface Layout<V,E>- Overrides:
setGraph in class LayoutDecorator<V,E>
clear
public void clear()
- Description copied from interface:
Caching
- clear cache
- Specified by:
clear in interface Caching
init
public void init()
- Description copied from interface:
Caching
- ititialize resources for a cache
- Specified by:
init in interface Caching
transform
public Point2D transform(V v)
- Overrides:
transform in class LayoutDecorator<V,E>
- See Also:
edu.uci.ics.jung.algorithms.layout.Layout#transform(Object)
Copyright © 2010 null. All Rights Reserved.