edu.uci.ics.jung.visualization.transform
Class AbstractLensSupport<V,E>
java.lang.Object
edu.uci.ics.jung.visualization.transform.AbstractLensSupport<V,E>
- All Implemented Interfaces:
- LensSupport
- Direct Known Subclasses:
- HyperbolicImageLensSupport, LayoutLensSupport, MagnifyImageLensSupport, ViewLensSupport
public abstract class AbstractLensSupport<V,E>
- extends Object
- implements LensSupport
A class to make it easy to add an
examining lens to a jung graph application. See HyperbolicTransformerDemo,
ViewLensSupport and LayoutLensSupport
for examples of how to use it.
- Author:
- Tom Nelson
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
vv
protected VisualizationViewer<V,E> vv
graphMouse
protected VisualizationViewer.GraphMouse graphMouse
lensTransformer
protected LensTransformer lensTransformer
lensGraphMouse
protected ModalGraphMouse lensGraphMouse
lens
protected AbstractLensSupport.Lens lens
lensControls
protected AbstractLensSupport.LensControls lensControls
defaultToolTipText
protected String defaultToolTipText
instructions
protected static final String instructions
- See Also:
- Constant Field Values
AbstractLensSupport
public AbstractLensSupport(VisualizationViewer<V,E> vv,
ModalGraphMouse lensGraphMouse)
- create the base class, setting common members and creating
a custom GraphMouse
- Parameters:
vv
- the VisualizationViewer to work on
activate
public void activate(boolean state)
- Specified by:
activate
in interface LensSupport
getLensTransformer
public LensTransformer getLensTransformer()
- Specified by:
getLensTransformer
in interface LensSupport
getGraphMouse
public ModalGraphMouse getGraphMouse()
- Specified by:
getGraphMouse
in interface LensSupport
- Returns:
- Returns the hyperbolicGraphMouse.
getLens
public AbstractLensSupport.Lens getLens()
- Returns:
- the lens
setLens
public void setLens(AbstractLensSupport.Lens lens)
- Parameters:
lens
- the lens to set
getLensControls
public AbstractLensSupport.LensControls getLensControls()
- Returns:
- the lensControls
setLensControls
public void setLensControls(AbstractLensSupport.LensControls lensControls)
- Parameters:
lensControls
- the lensControls to set
Copyright © 2009. All Rights Reserved.