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
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.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
the background for the hyperbolic projectionstatic class
the background for the hyperbolic projection -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected String
protected VisualizationViewer.GraphMouse
protected static final String
protected AbstractLensSupport.Lens
protected AbstractLensSupport.LensControls
protected ModalGraphMouse
protected LensTransformer
protected VisualizationViewer
<V, E> -
Constructor Summary
ConstructorsConstructorDescriptionAbstractLensSupport
(VisualizationViewer<V, E> vv, ModalGraphMouse lensGraphMouse) create the base class, setting common members and creating a custom GraphMouse -
Method Summary
Modifier and TypeMethodDescriptionvoid
activate
(boolean state) getLens()
void
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 Details
-
vv
-
graphMouse
-
lensTransformer
-
lensGraphMouse
-
lens
-
lensControls
-
defaultToolTipText
-
instructions
- See Also:
-
-
Constructor Details
-
AbstractLensSupport
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 Details
-
activate
public void activate(boolean state) - Specified by:
activate
in interfaceLensSupport
-
getLensTransformer
- Specified by:
getLensTransformer
in interfaceLensSupport
-
getGraphMouse
- Specified by:
getGraphMouse
in interfaceLensSupport
- Returns:
- the hyperbolicGraphMouse.
-
getLens
- Returns:
- the lens
-
setLens
- Parameters:
lens
- the lens to set
-
getLensControls
- Returns:
- the lensControls
-
setLensControls
- Parameters:
lensControls
- the lensControls to set
-