|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecthep.wired.interaction.AbstractInteractionHandler
hep.wired.interaction.DefaultInteractionHandler
public class DefaultInteractionHandler
Default implementation of InteractionHandler
that handles mouse wheel
events to scroll, cursor keys to translate.
Field Summary | |
---|---|
static String |
command
|
protected static double |
fixedScale
|
protected static double |
fixedTranslate
|
protected static double |
multiplyScale
|
protected static double |
multiplyTranslate
|
Constructor Summary | |
---|---|
protected |
DefaultInteractionHandler(String name)
Creates a DefaultInteractionHandler. |
Method Summary | |
---|---|
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. |
Methods inherited from class hep.wired.interaction.AbstractInteractionHandler |
---|
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 |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
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
Constructor Detail |
---|
protected DefaultInteractionHandler(String name)
Method Detail |
---|
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()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |