public class DragToMeasure extends DefaultWiredInteractionHandler implements XYZindices
_format
command, fixedScale, fixedTranslate, multiplyScale, multiplyTranslate
X, 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, setSelected
getInstance, getLastScale, isControlMetaDown, isMac, otherKeyPressed
altKeyPressed, altKeyReleased, ctrlKeyPressed, ctrlKeyReleased, ctrlMetaKeyPressed, ctrlMetaKeyReleased, equals, escKeyPressed, escKeyReleased, getHeight, getID, getName, getWidth, hashCode, keyTyped, metaKeyPressed, metaKeyReleased, mouseButton1Clicked, mouseButton1Pressed, mouseButton1Released, otherKeyReleased, restore, save, setRecord, setSize
public DragToMeasure()
public Icon getIcon(int size)
getIcon
in interface InteractionHandler
getIcon
in class AbstractInteractionHandler
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 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 mouseWheelMoved(RecordPlot plot, MouseWheelEvent event)
mouseWheelMoved
in interface InteractionHandler
mouseWheelMoved
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 boolean shiftKeyPressed(RecordPlot plot, KeyEvent event)
shiftKeyPressed
in interface InteractionHandler
shiftKeyPressed
in class AbstractInteractionHandler
public boolean shiftKeyReleased(RecordPlot plot, KeyEvent event)
shiftKeyReleased
in interface InteractionHandler
shiftKeyReleased
in class AbstractInteractionHandler
Copyright © 1996-2014 FreeHEP. All Rights Reserved.