Class AbstractLensSupport<V,E>
- java.lang.Object
-
- edu.uci.ics.jung.visualization.transform.AbstractLensSupport<V,E>
-
- All Implemented Interfaces:
LensSupport
- Direct Known Subclasses:
LayoutLensSupport
,MagnifyImageLensSupport
,ViewLensSupport
public abstract class AbstractLensSupport<V,E> extends java.lang.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
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
AbstractLensSupport.Lens
the background for the hyperbolic projectionstatic class
AbstractLensSupport.LensControls
the background for the hyperbolic projection
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.String
defaultToolTipText
protected VisualizationViewer.GraphMouse
graphMouse
protected static java.lang.String
instructions
protected AbstractLensSupport.Lens
lens
protected AbstractLensSupport.LensControls
lensControls
protected ModalGraphMouse
lensGraphMouse
protected LensTransformer
lensTransformer
protected VisualizationViewer<V,E>
vv
-
Constructor Summary
Constructors Constructor Description AbstractLensSupport(VisualizationViewer<V,E> vv, ModalGraphMouse lensGraphMouse)
create the base class, setting common members and creating a custom GraphMouse
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
activate(boolean state)
ModalGraphMouse
getGraphMouse()
AbstractLensSupport.Lens
getLens()
AbstractLensSupport.LensControls
getLensControls()
LensTransformer
getLensTransformer()
void
setLens(AbstractLensSupport.Lens lens)
void
setLensControls(AbstractLensSupport.LensControls lensControls)
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface edu.uci.ics.jung.visualization.transform.LensSupport
activate, deactivate
-
-
-
-
Field Detail
-
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 java.lang.String defaultToolTipText
-
instructions
protected static final java.lang.String instructions
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
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 onlensGraphMouse
- the GraphMouse instance to use for the lens
-
-
Method Detail
-
activate
public void activate(boolean state)
- Specified by:
activate
in interfaceLensSupport
-
getLensTransformer
public LensTransformer getLensTransformer()
- Specified by:
getLensTransformer
in interfaceLensSupport
-
getGraphMouse
public ModalGraphMouse getGraphMouse()
- Specified by:
getGraphMouse
in interfaceLensSupport
- 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
-
-