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 classthe background for the hyperbolic projectionstatic classthe background for the hyperbolic projection -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Stringprotected VisualizationViewer.GraphMouseprotected static final Stringprotected AbstractLensSupport.Lensprotected AbstractLensSupport.LensControlsprotected ModalGraphMouseprotected LensTransformerprotected 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 TypeMethodDescriptionvoidactivate(boolean state) getLens()voidvoidsetLensControls(AbstractLensSupport.LensControls lensControls) Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface 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:
activatein interfaceLensSupport
-
getLensTransformer
- Specified by:
getLensTransformerin interfaceLensSupport
-
getGraphMouse
- Specified by:
getGraphMousein 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
-