public class DefaultInteractionHandler extends AbstractInteractionHandler
InteractionHandler
that handles mouse wheel
events to scroll, cursor keys to translate.Modifier and Type | Field and Description |
---|---|
static String |
command |
protected static double |
fixedScale |
protected static double |
fixedTranslate |
protected static double |
multiplyScale |
protected static double |
multiplyTranslate |
Modifier | Constructor and Description |
---|---|
protected |
DefaultInteractionHandler(String name)
Creates a DefaultInteractionHandler.
|
Modifier and Type | Method and Description |
---|---|
void |
changeCursor(RecordPlot plot,
InputEvent event)
Called to allow the InteractionHandler to change the cursor.
|
String |
getDescription()
Returns a one line description.
|
static DefaultInteractionHandler |
getInstance() |
protected double |
getLastScale() |
static boolean |
isControlMetaDown(InputEvent event) |
static boolean |
isMac() |
boolean |
isSupportedBy(GraphicsPanel panel)
Returns true if this Interaction Handler is supported by this Graphics
Panel.
|
void |
mouseEntered(RecordPlot plot,
MouseEvent event)
Called when the mouse is entering the component
|
void |
mouseWheelMoved(RecordPlot plot,
MouseWheelEvent event)
Called when the mousewheel is moved
|
boolean |
otherKeyPressed(RecordPlot plot,
KeyEvent event)
Called when any other key is pressed.
|
altKeyPressed, altKeyReleased, ctrlKeyPressed, ctrlKeyReleased, ctrlMetaKeyPressed, ctrlMetaKeyReleased, equals, escKeyPressed, escKeyReleased, getHeight, getIcon, getID, getName, getWidth, hashCode, keyTyped, metaKeyPressed, metaKeyReleased, mouseButton1Clicked, mouseButton1DragEnded, mouseButton1Dragged, mouseButton1DragStarted, mouseButton1Pressed, mouseButton1Released, mouseExited, mouseMoved, otherKeyReleased, reset, restore, save, setRecord, setSelected, setSize, shiftKeyPressed, shiftKeyReleased
protected static final double fixedScale
protected static final double multiplyScale
protected static final double fixedTranslate
protected static final double multiplyTranslate
public static final String command
protected DefaultInteractionHandler(String name)
public static DefaultInteractionHandler getInstance()
public String getDescription()
InteractionHandler
public boolean isSupportedBy(GraphicsPanel panel)
InteractionHandler
public void changeCursor(RecordPlot plot, InputEvent event)
InteractionHandler
public void mouseEntered(RecordPlot plot, MouseEvent event)
InteractionHandler
mouseEntered
in interface InteractionHandler
mouseEntered
in class AbstractInteractionHandler
protected double getLastScale()
public void mouseWheelMoved(RecordPlot plot, MouseWheelEvent event)
InteractionHandler
mouseWheelMoved
in interface InteractionHandler
mouseWheelMoved
in class AbstractInteractionHandler
public boolean otherKeyPressed(RecordPlot plot, KeyEvent event)
InteractionHandler
otherKeyPressed
in interface InteractionHandler
otherKeyPressed
in class AbstractInteractionHandler
public static boolean isControlMetaDown(InputEvent event)
public static boolean isMac()
Copyright © 1996-2014 FreeHEP. All Rights Reserved.