public class DragToMeasure extends DefaultWiredInteractionHandler implements XYZindices
_formatcommand, fixedScale, fixedTranslate, multiplyScale, multiplyTranslateX, Y, Z| Constructor and Description |
|---|
DragToMeasure()
Create a rectangle 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)
Update end point of line, translate and scale, and remove rectangle.
|
void |
mouseButton1Dragged(RecordPlot plot,
MouseEvent event)
Update moving point of line and draw.
|
void |
mouseButton1DragStarted(RecordPlot plot,
MouseEvent event)
Store starting point of line.
|
void |
mouseEntered(RecordPlot plot,
MouseEvent event) |
void |
mouseWheelMoved(RecordPlot plot,
MouseWheelEvent event) |
void |
reset(RecordPlot plot,
InputEvent event) |
boolean |
shiftKeyPressed(RecordPlot plot,
KeyEvent event) |
boolean |
shiftKeyReleased(RecordPlot plot,
KeyEvent event) |
String |
toString() |
mouseExited, mouseMoved, setSelectedgetInstance, getLastScale, isControlMetaDown, isMac, otherKeyPressedaltKeyPressed, altKeyReleased, ctrlKeyPressed, ctrlKeyReleased, ctrlMetaKeyPressed, ctrlMetaKeyReleased, equals, escKeyPressed, escKeyReleased, getHeight, getID, getName, getWidth, hashCode, keyTyped, metaKeyPressed, metaKeyReleased, mouseButton1Clicked, mouseButton1Pressed, mouseButton1Released, otherKeyReleased, restore, save, setRecord, setSizepublic DragToMeasure()
public Icon getIcon(int size)
getIcon in interface InteractionHandlergetIcon in class AbstractInteractionHandlerpublic String getDescription()
getDescription in interface InteractionHandlergetDescription in class DefaultInteractionHandlerpublic boolean isSupportedBy(GraphicsPanel panel)
isSupportedBy in interface InteractionHandlerisSupportedBy in class DefaultInteractionHandlerpublic void changeCursor(RecordPlot plot, InputEvent event)
changeCursor in interface InteractionHandlerchangeCursor in class DefaultInteractionHandlerpublic void reset(RecordPlot plot, InputEvent event)
reset in interface InteractionHandlerreset in class AbstractInteractionHandlerpublic void mouseEntered(RecordPlot plot, MouseEvent event)
mouseEntered in interface InteractionHandlermouseEntered in class DefaultInteractionHandlerpublic void mouseWheelMoved(RecordPlot plot, MouseWheelEvent event)
mouseWheelMoved in interface InteractionHandlermouseWheelMoved in class DefaultInteractionHandlerpublic void mouseButton1DragStarted(RecordPlot plot, MouseEvent event)
mouseButton1DragStarted in interface InteractionHandlermouseButton1DragStarted in class AbstractInteractionHandlerpublic void mouseButton1Dragged(RecordPlot plot, MouseEvent event)
mouseButton1Dragged in interface InteractionHandlermouseButton1Dragged in class AbstractInteractionHandlerpublic void mouseButton1DragEnded(RecordPlot plot, MouseEvent event)
mouseButton1DragEnded in interface InteractionHandlermouseButton1DragEnded in class AbstractInteractionHandlerpublic boolean shiftKeyPressed(RecordPlot plot, KeyEvent event)
shiftKeyPressed in interface InteractionHandlershiftKeyPressed in class AbstractInteractionHandlerpublic boolean shiftKeyReleased(RecordPlot plot, KeyEvent event)
shiftKeyReleased in interface InteractionHandlershiftKeyReleased in class AbstractInteractionHandlerCopyright © 1996-2014 FreeHEP. All Rights Reserved.