Class DefaultLensGraphMouse<V,E>
- java.lang.Object
-
- org.jungrapht.visualization.control.PluggableGraphMouse
-
- org.jungrapht.visualization.control.AbstractGraphMouse
-
- org.jungrapht.visualization.control.DefaultGraphMouse<V,E>
-
- org.jungrapht.visualization.control.DefaultLensGraphMouse<V,E>
-
- Type Parameters:
V
- vertex typeE
- edge type
- All Implemented Interfaces:
MouseListener
,MouseMotionListener
,MouseWheelListener
,EventListener
,LensGraphMouse
,VisualizationViewer.GraphMouse
public class DefaultLensGraphMouse<V,E> extends DefaultGraphMouse<V,E> implements LensGraphMouse
an implementation of the PluggableGraphMouse that includes plugins for manipulating a view that is using a LensTransformer.- Author:
- Tom Nelson
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
DefaultLensGraphMouse.Builder<V,E,T extends DefaultLensGraphMouse,B extends DefaultLensGraphMouse.Builder<V,E,T,B>>
Build an instance of a RefactoredDefaultLEnsGraphMouse
-
Field Summary
Fields Modifier and Type Field Description protected LensKillingGraphMousePlugin
lensKillingGraphMousePlugin
protected LensTranslatingGraphMousePlugin
lensTranslatingGraphMousePlugin
protected LensMagnificationGraphMousePlugin
magnificationPlugin
not included in the base class-
Fields inherited from class org.jungrapht.visualization.control.DefaultGraphMouse
addRegionSelectionCompleteMask, addRegionSelectionMask, addSingleSelectionMask, regionSelectionCompleteMask, regionSelectionMask, scalingMask, singleSelectionMask, translatingMask, xAxisScalingMask, yAxisScalingMask
-
Fields inherited from class org.jungrapht.visualization.control.AbstractGraphMouse
in, out, regionSelectingPlugin, scalingPlugin, selectingPlugin, translatingPlugin, vertexSelectionOnly
-
-
Constructor Summary
Constructors Constructor Description DefaultLensGraphMouse()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static <V,E>
DefaultLensGraphMouse.Builder<V,E,?,?>builder()
void
loadPlugins()
create the plugins, and load themvoid
setKillSwitch(Runnable killSwitch)
-
Methods inherited from class org.jungrapht.visualization.control.DefaultGraphMouse
setZoomAtMouse
-
Methods inherited from class org.jungrapht.visualization.control.PluggableGraphMouse
add, clear, mouseClicked, mouseDragged, mouseEntered, mouseExited, mouseMoved, mousePressed, mouseReleased, mouseWheelMoved, remove
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.awt.event.MouseListener
mouseClicked, mouseEntered, mouseExited, mousePressed, mouseReleased
-
Methods inherited from interface java.awt.event.MouseMotionListener
mouseDragged, mouseMoved
-
Methods inherited from interface java.awt.event.MouseWheelListener
mouseWheelMoved
-
Methods inherited from interface org.jungrapht.visualization.VisualizationViewer.GraphMouse
isPluginsLoaded, setPluginsLoaded
-
-
-
-
Field Detail
-
magnificationPlugin
protected LensMagnificationGraphMousePlugin magnificationPlugin
not included in the base class
-
lensKillingGraphMousePlugin
protected LensKillingGraphMousePlugin lensKillingGraphMousePlugin
-
lensTranslatingGraphMousePlugin
protected LensTranslatingGraphMousePlugin lensTranslatingGraphMousePlugin
-
-
Method Detail
-
builder
public static <V,E> DefaultLensGraphMouse.Builder<V,E,?,?> builder()
-
setKillSwitch
public void setKillSwitch(Runnable killSwitch)
- Specified by:
setKillSwitch
in interfaceLensGraphMouse
-
loadPlugins
public void loadPlugins()
Description copied from class:DefaultGraphMouse
create the plugins, and load them- Specified by:
loadPlugins
in interfaceVisualizationViewer.GraphMouse
- Overrides:
loadPlugins
in classDefaultGraphMouse<V,E>
-
-