Class ContourPlot.CoordSysPanning

java.lang.Object
java.awt.event.MouseAdapter
gov.nih.mipav.model.algorithms.ContourPlot.CoordSysPanning
All Implemented Interfaces:
ContourPlot.InteractionConstants, MouseListener, MouseMotionListener, MouseWheelListener, EventListener
Enclosing class:
ContourPlot

public class ContourPlot.CoordSysPanning extends MouseAdapter implements ContourPlot.InteractionConstants
The CoordSysPanning class implements a
invalid reference
MouseListener
and
invalid reference
MouseMotionListener
that realize panning functionality for the coordinate view of the ContourPlot.CoordSysRenderer. When registering this with an ContourPlot.JPlotterCanvas and CoordSysRenderer dragging with the left mouse button over the Canvas while holding down CTRL will set the coordinate view accordingly.

Intended use: CoordSysPanning pan = new CoordSysPanning(canvas, coordsys).register();

Per default the extended modifier mask for a dragging mouse event to trigger panning is InputEvent.CTRL_DOWN_MASK. If this is undesired the extModifierMask has to be overridden.
For example to not need to press any key:

new CoordSysPanning(canvas){{extModifierMask=0;}}.register();
Author:
hageldave