public class DragToTranslate extends DefaultInteractionHandler
command, fixedScale, fixedTranslate, multiplyScale, multiplyTranslate
Constructor and Description |
---|
DragToTranslate()
Create a drag handler to generate translate edits.
|
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.
|
Icon |
getIcon(int size)
Returns associated icon
|
boolean |
isSupportedBy(GraphicsPanel panel)
Returns true if this Interaction Handler is supported by this Graphics
Panel.
|
void |
mouseButton1Clicked(RecordPlot plot,
MouseEvent event)
Centers the point you clicked on.
|
void |
mouseButton1DragEnded(RecordPlot plot,
MouseEvent event)
Called when mouse button 1 is ending a drag
|
void |
mouseButton1Dragged(RecordPlot plot,
MouseEvent event)
Called when mouse button 1 is dragged
|
void |
mouseButton1DragStarted(RecordPlot plot,
MouseEvent event)
Called when mouse button 1 is starting a drag
|
void |
mouseEntered(RecordPlot plot,
MouseEvent event)
Called when the mouse is entering the component
|
void |
reset(RecordPlot plot,
InputEvent event)
Called to reset the interaction handler in its initial state.
|
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, mouseButton1Pressed, mouseButton1Released, mouseExited, mouseMoved, otherKeyReleased, restore, save, setRecord, setSelected, setSize, shiftKeyPressed, shiftKeyReleased
public DragToTranslate()
public Icon getIcon(int size)
InteractionHandler
getIcon
in interface InteractionHandler
getIcon
in class AbstractInteractionHandler
public String getDescription()
InteractionHandler
getDescription
in interface InteractionHandler
getDescription
in class DefaultInteractionHandler
public boolean isSupportedBy(GraphicsPanel panel)
InteractionHandler
isSupportedBy
in interface InteractionHandler
isSupportedBy
in class DefaultInteractionHandler
public void reset(RecordPlot plot, InputEvent event)
InteractionHandler
reset
in interface InteractionHandler
reset
in class AbstractInteractionHandler
public void changeCursor(RecordPlot plot, InputEvent event)
InteractionHandler
changeCursor
in interface InteractionHandler
changeCursor
in class DefaultInteractionHandler
public void mouseEntered(RecordPlot plot, MouseEvent event)
InteractionHandler
mouseEntered
in interface InteractionHandler
mouseEntered
in class DefaultInteractionHandler
public void mouseButton1DragStarted(RecordPlot plot, MouseEvent event)
InteractionHandler
mouseButton1DragStarted
in interface InteractionHandler
mouseButton1DragStarted
in class AbstractInteractionHandler
public void mouseButton1DragEnded(RecordPlot plot, MouseEvent event)
InteractionHandler
mouseButton1DragEnded
in interface InteractionHandler
mouseButton1DragEnded
in class AbstractInteractionHandler
public void mouseButton1Dragged(RecordPlot plot, MouseEvent event)
InteractionHandler
mouseButton1Dragged
in interface InteractionHandler
mouseButton1Dragged
in class AbstractInteractionHandler
public void mouseButton1Clicked(RecordPlot plot, MouseEvent event)
mouseButton1Clicked
in interface InteractionHandler
mouseButton1Clicked
in class AbstractInteractionHandler
Copyright © 1996-2014 FreeHEP. All Rights Reserved.