public class ObservableCachingLayout<V,E> extends LayoutDecorator<V,E> implements ChangeEventSupport, Caching, LayoutEventSupport<V,E>
LayoutDecorator| Modifier and Type | Field and Description |
|---|---|
protected ChangeEventSupport |
changeSupport |
protected com.google.common.cache.LoadingCache<V,Point2D> |
locations |
delegate| Constructor and Description |
|---|
ObservableCachingLayout(Layout<V,E> delegate) |
| Modifier and Type | Method and Description |
|---|---|
void |
addChangeListener(ChangeListener l) |
void |
addLayoutChangeListener(LayoutChangeListener<V,E> listener) |
Point2D |
apply(V v) |
void |
clear()
clear cache
|
boolean |
done() |
void |
fireStateChanged() |
ChangeListener[] |
getChangeListeners()
Returns an array of all the
ChangeListeners added
with addChangeListener(). |
void |
init()
ititialize resources for a cache
|
void |
initialize() |
void |
removeChangeListener(ChangeListener l)
Removes a ChangeListener.
|
void |
removeLayoutChangeListener(LayoutChangeListener<V,E> listener) |
void |
setGraph(Graph<V,E> graph) |
void |
setLocation(V v,
Point2D location) |
void |
step() |
getDelegate, getGraph, getSize, isLocked, lock, reset, setDelegate, setInitializer, setSize, transformprotected ChangeEventSupport changeSupport
public void step()
step in interface IterativeContextstep in class LayoutDecorator<V,E>public void initialize()
initialize in interface Layout<V,E>initialize in class LayoutDecorator<V,E>public boolean done()
done in interface IterativeContextdone in class LayoutDecorator<V,E>public void setLocation(V v, Point2D location)
setLocation in interface Layout<V,E>setLocation in class LayoutDecorator<V,E>public void addChangeListener(ChangeListener l)
addChangeListener in interface ChangeEventSupportpublic void removeChangeListener(ChangeListener l)
ChangeEventSupportremoveChangeListener in interface ChangeEventSupportl - the listener to be removedpublic ChangeListener[] getChangeListeners()
ChangeEventSupportChangeListeners added
with addChangeListener().getChangeListeners in interface ChangeEventSupportChangeListeners added or an empty
array if no listeners have been addedpublic void fireStateChanged()
fireStateChanged in interface ChangeEventSupportpublic void clear()
Cachingpublic void init()
Cachingpublic void addLayoutChangeListener(LayoutChangeListener<V,E> listener)
addLayoutChangeListener in interface LayoutEventSupport<V,E>public void removeLayoutChangeListener(LayoutChangeListener<V,E> listener)
removeLayoutChangeListener in interface LayoutEventSupport<V,E>Copyright © 2016. All rights reserved.