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, shiftKeyReleasedprotected 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()
InteractionHandlerpublic boolean isSupportedBy(GraphicsPanel panel)
InteractionHandlerpublic void changeCursor(RecordPlot plot, InputEvent event)
InteractionHandlerpublic void mouseEntered(RecordPlot plot, MouseEvent event)
InteractionHandlermouseEntered in interface InteractionHandlermouseEntered in class AbstractInteractionHandlerprotected double getLastScale()
public void mouseWheelMoved(RecordPlot plot, MouseWheelEvent event)
InteractionHandlermouseWheelMoved in interface InteractionHandlermouseWheelMoved in class AbstractInteractionHandlerpublic boolean otherKeyPressed(RecordPlot plot, KeyEvent event)
InteractionHandlerotherKeyPressed in interface InteractionHandlerotherKeyPressed in class AbstractInteractionHandlerpublic static boolean isControlMetaDown(InputEvent event)
public static boolean isMac()
Copyright © 1996-2014 FreeHEP. All Rights Reserved.