Class LensVertexSelectingGraphMousePlugin<V,E>
- java.lang.Object
-
- org.jungrapht.visualization.control.AbstractGraphMousePlugin
-
- org.jungrapht.visualization.control.VertexSelectingGraphMousePlugin<V,E>
-
- org.jungrapht.visualization.control.LensVertexSelectingGraphMousePlugin<V,E>
-
- Type Parameters:
V
- vertex typeE
- edge type
- All Implemented Interfaces:
MouseListener
,MouseMotionListener
,EventListener
,GraphMousePlugin
public class LensVertexSelectingGraphMousePlugin<V,E> extends VertexSelectingGraphMousePlugin<V,E>
A subclass of SelectingGraphMousePlugin that contains methods that are overridden to account for the Lens effects that are in the view projection- Author:
- Tom Nelson
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
LensVertexSelectingGraphMousePlugin.Builder<V,E,T extends LensVertexSelectingGraphMousePlugin,B extends LensVertexSelectingGraphMousePlugin.Builder<V,E,T,B>>
-
Nested classes/interfaces inherited from class org.jungrapht.visualization.control.AbstractGraphMousePlugin
AbstractGraphMousePlugin.Selecting
-
-
Field Summary
Fields Modifier and Type Field Description protected TransformSupport
transformSupport
-
Fields inherited from class org.jungrapht.visualization.control.VertexSelectingGraphMousePlugin
addSingleSelectionMask, deltaDown, deselectedVertex, footprintRectangle, lensColor, locked, pickFootprintPaintable, pickSize, singleSelectionMask, vertex, vertexDragged
-
Fields inherited from class org.jungrapht.visualization.control.AbstractGraphMousePlugin
cursor, down, modifiers
-
-
Constructor Summary
Constructors Constructor Description LensVertexSelectingGraphMousePlugin()
LensVertexSelectingGraphMousePlugin(int singleSelectionMask, int addSingleSelectionMask)
create an instance with overidesLensVertexSelectingGraphMousePlugin(LensVertexSelectingGraphMousePlugin.Builder<V,E,?,?> builder)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static <V,E>
LensVertexSelectingGraphMousePlugin.Builder<V,E,?,?>builder()
protected Point2D
inverseTransform(VisualizationViewer<V,E> vv, Point2D p)
Overridden to apply lens effects to the transformation from view to layout coordinatesprotected Shape
transform(VisualizationViewer<V,E> vv, Shape shape)
Overridden to perform lens effects when transforming from Layout to view.-
Methods inherited from class org.jungrapht.visualization.control.VertexSelectingGraphMousePlugin
configure, getLensColor, isLocked, mouseClicked, mouseDragged, mouseEntered, mouseExited, mouseMoved, mousePressed, mouseReleased, setLensColor, setLocked, singleVertexSelection
-
Methods inherited from class org.jungrapht.visualization.control.AbstractGraphMousePlugin
checkModifiers, getCursor, getModifiersEx, setCursor, setModifiers
-
-
-
-
Field Detail
-
transformSupport
protected TransformSupport transformSupport
-
-
Constructor Detail
-
LensVertexSelectingGraphMousePlugin
public LensVertexSelectingGraphMousePlugin()
-
LensVertexSelectingGraphMousePlugin
public LensVertexSelectingGraphMousePlugin(LensVertexSelectingGraphMousePlugin.Builder<V,E,?,?> builder)
-
LensVertexSelectingGraphMousePlugin
public LensVertexSelectingGraphMousePlugin(int singleSelectionMask, int addSingleSelectionMask)
create an instance with overides
-
-
Method Detail
-
builder
public static <V,E> LensVertexSelectingGraphMousePlugin.Builder<V,E,?,?> builder()
-
inverseTransform
protected Point2D inverseTransform(VisualizationViewer<V,E> vv, Point2D p)
Overridden to apply lens effects to the transformation from view to layout coordinates- Overrides:
inverseTransform
in classVertexSelectingGraphMousePlugin<V,E>
- Parameters:
vv
-p
-- Returns:
-
transform
protected Shape transform(VisualizationViewer<V,E> vv, Shape shape)
Overridden to perform lens effects when transforming from Layout to view. Used when projecting the selection Lens (the rectangular area drawn with the mouse) back into the view.- Overrides:
transform
in classVertexSelectingGraphMousePlugin<V,E>
- Parameters:
vv
-shape
-- Returns:
-
-