public class DragToChangeClock extends DefaultInteractionHandler
command, fixedScale, fixedTranslate, multiplyScale, multiplyTranslate
Constructor and Description |
---|
DragToChangeClock()
Create a drag handler to generate scale edits.
|
Modifier and Type | Method and Description |
---|---|
void |
changeCursor(RecordPlot plot,
InputEvent event) |
String |
getDescription() |
Icon |
getIcon(int size) |
boolean |
isSupportedBy(GraphicsPanel panel) |
void |
mouseButton1DragEnded(RecordPlot plot,
MouseEvent event) |
void |
mouseButton1Dragged(RecordPlot plot,
MouseEvent event) |
void |
mouseButton1DragStarted(RecordPlot plot,
MouseEvent event) |
void |
mouseButton1Released(RecordPlot plot,
MouseEvent event) |
void |
mouseEntered(RecordPlot plot,
MouseEvent event) |
void |
reset(RecordPlot plot,
InputEvent event) |
String |
toString() |
getInstance, getLastScale, isControlMetaDown, isMac, mouseWheelMoved, otherKeyPressed
altKeyPressed, altKeyReleased, ctrlKeyPressed, ctrlKeyReleased, ctrlMetaKeyPressed, ctrlMetaKeyReleased, equals, escKeyPressed, escKeyReleased, getHeight, getID, getName, getWidth, hashCode, keyTyped, metaKeyPressed, metaKeyReleased, mouseButton1Clicked, mouseButton1Pressed, mouseExited, mouseMoved, otherKeyReleased, restore, save, setRecord, setSelected, setSize, shiftKeyPressed, shiftKeyReleased
public DragToChangeClock()
public String getDescription()
getDescription
in interface InteractionHandler
getDescription
in class DefaultInteractionHandler
public boolean isSupportedBy(GraphicsPanel panel)
isSupportedBy
in interface InteractionHandler
isSupportedBy
in class DefaultInteractionHandler
public Icon getIcon(int size)
getIcon
in interface InteractionHandler
getIcon
in class AbstractInteractionHandler
public void changeCursor(RecordPlot plot, InputEvent event)
changeCursor
in interface InteractionHandler
changeCursor
in class DefaultInteractionHandler
public void reset(RecordPlot plot, InputEvent event)
reset
in interface InteractionHandler
reset
in class AbstractInteractionHandler
public void mouseEntered(RecordPlot plot, MouseEvent event)
mouseEntered
in interface InteractionHandler
mouseEntered
in class DefaultInteractionHandler
public void mouseButton1DragStarted(RecordPlot plot, MouseEvent event)
mouseButton1DragStarted
in interface InteractionHandler
mouseButton1DragStarted
in class AbstractInteractionHandler
public void mouseButton1Dragged(RecordPlot plot, MouseEvent event)
mouseButton1Dragged
in interface InteractionHandler
mouseButton1Dragged
in class AbstractInteractionHandler
public void mouseButton1DragEnded(RecordPlot plot, MouseEvent event)
mouseButton1DragEnded
in interface InteractionHandler
mouseButton1DragEnded
in class AbstractInteractionHandler
public void mouseButton1Released(RecordPlot plot, MouseEvent event)
mouseButton1Released
in interface InteractionHandler
mouseButton1Released
in class AbstractInteractionHandler
Copyright © 1996-2014 FreeHEP. All Rights Reserved.