Class DefaultGraphMouse<V,E>
- java.lang.Object
-
- org.jungrapht.visualization.control.PluggableGraphMouse
-
- org.jungrapht.visualization.control.AbstractGraphMouse
-
- org.jungrapht.visualization.control.DefaultGraphMouse<V,E>
-
- Type Parameters:
V- vertex typeE- edge type
- All Implemented Interfaces:
MouseListener,MouseMotionListener,MouseWheelListener,EventListener,VisualizationViewer.GraphMouse
- Direct Known Subclasses:
DefaultLensGraphMouse,DefaultSatelliteGraphMouse
public class DefaultGraphMouse<V,E> extends AbstractGraphMouse
The DefaultGraphMouse does not have 'transforming/selecting' modes. It has 3 plugins that are always active:ScalingGraphMousePluginoperates via mouse wheelTranslatingGraphMousePluginoperated via mouse-dragSelectingGraphMousePluginoperates via CTRL+mouse gestures
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classDefaultGraphMouse.Builder<V,E,T extends DefaultGraphMouse,B extends DefaultGraphMouse.Builder<V,E,T,B>>Build an instance of a DefaultGraphMouse
-
Field Summary
Fields Modifier and Type Field Description protected intaddRegionSelectionCompleteMaskprotected intaddRegionSelectionMaskprotected intaddSingleSelectionMaskprotected intregionSelectionCompleteMaskprotected intregionSelectionMaskprotected intscalingMaskprotected intsingleSelectionMaskprotected inttranslatingMaskprotected intxAxisScalingMaskprotected intyAxisScalingMask-
Fields inherited from class org.jungrapht.visualization.control.AbstractGraphMouse
in, out, regionSelectingPlugin, scalingPlugin, selectingPlugin, translatingPlugin, vertexSelectionOnly
-
-
Constructor Summary
Constructors Modifier Constructor Description DefaultGraphMouse()create an instance with default valuesprotectedDefaultGraphMouse(DefaultGraphMouse.Builder<V,E,?,?> builder)create an instance with default values
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static <V,E>
DefaultGraphMouse.Builder<V,E,?,?>builder()voidloadPlugins()create the plugins, and load themvoidsetZoomAtMouse(boolean zoomAtMouse)-
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 org.jungrapht.visualization.VisualizationViewer.GraphMouse
isPluginsLoaded, setPluginsLoaded
-
-
-
-
Field Detail
-
singleSelectionMask
protected int singleSelectionMask
-
addSingleSelectionMask
protected int addSingleSelectionMask
-
regionSelectionMask
protected int regionSelectionMask
-
addRegionSelectionMask
protected int addRegionSelectionMask
-
regionSelectionCompleteMask
protected int regionSelectionCompleteMask
-
addRegionSelectionCompleteMask
protected int addRegionSelectionCompleteMask
-
translatingMask
protected int translatingMask
-
scalingMask
protected int scalingMask
-
xAxisScalingMask
protected int xAxisScalingMask
-
yAxisScalingMask
protected int yAxisScalingMask
-
-
Constructor Detail
-
DefaultGraphMouse
protected DefaultGraphMouse(DefaultGraphMouse.Builder<V,E,?,?> builder)
create an instance with default values
-
DefaultGraphMouse
public DefaultGraphMouse()
create an instance with default values
-
-
Method Detail
-
builder
public static <V,E> DefaultGraphMouse.Builder<V,E,?,?> builder()
-
loadPlugins
public void loadPlugins()
create the plugins, and load them
-
setZoomAtMouse
public void setZoomAtMouse(boolean zoomAtMouse)
- Overrides:
setZoomAtMousein classAbstractGraphMouse- Parameters:
zoomAtMouse- The zoomAtMouse to set.
-
-