public class DragAngledRectangleToScale extends DefaultInteractionHandler
command, fixedScale, fixedTranslate, multiplyScale, multiplyTranslate
Constructor and Description |
---|
DragAngledRectangleToScale()
Create a angled rectangle handler to generate scal edits.
|
Modifier and Type | Method and Description |
---|---|
void |
changeCursor(RecordPlot plot,
InputEvent event)
Called to allow the InteractionHandler to change the cursor.
|
boolean |
ctrlMetaKeyPressed(RecordPlot plot,
KeyEvent event)
Called when the ctrl (other OSs) or meta (MacOS) key is pressed key is pressed.
|
boolean |
ctrlMetaKeyReleased(RecordPlot plot,
KeyEvent event)
Called when the ctrl (other OSs) or meta (MacOS) key is released.
|
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)
Called when mouse button 1 is clicked
|
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 |
mouseMoved(RecordPlot plot,
MouseEvent event)
Called when the mouse is moved
|
void |
reset(RecordPlot plot,
InputEvent event)
Called to reset the interaction handler in its initial state.
|
boolean |
shiftKeyPressed(RecordPlot plot,
KeyEvent event)
Called when the shift key is pressed.
|
boolean |
shiftKeyReleased(RecordPlot plot,
KeyEvent event)
Called when the esc key is released.
|
String |
toString() |
getInstance, getLastScale, isControlMetaDown, isMac, mouseWheelMoved, otherKeyPressed
altKeyPressed, altKeyReleased, ctrlKeyPressed, ctrlKeyReleased, equals, escKeyPressed, escKeyReleased, getHeight, getID, getName, getWidth, hashCode, keyTyped, metaKeyPressed, metaKeyReleased, mouseButton1Pressed, mouseButton1Released, mouseExited, otherKeyReleased, restore, save, setRecord, setSelected, setSize
public DragAngledRectangleToScale()
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 changeCursor(RecordPlot plot, InputEvent event)
InteractionHandler
changeCursor
in interface InteractionHandler
changeCursor
in class DefaultInteractionHandler
public void reset(RecordPlot plot, InputEvent event)
InteractionHandler
reset
in interface InteractionHandler
reset
in class AbstractInteractionHandler
public void mouseEntered(RecordPlot plot, MouseEvent event)
InteractionHandler
mouseEntered
in interface InteractionHandler
mouseEntered
in class DefaultInteractionHandler
public void mouseButton1Clicked(RecordPlot plot, MouseEvent event)
InteractionHandler
mouseButton1Clicked
in interface InteractionHandler
mouseButton1Clicked
in class AbstractInteractionHandler
public void mouseButton1DragStarted(RecordPlot plot, MouseEvent event)
InteractionHandler
mouseButton1DragStarted
in interface InteractionHandler
mouseButton1DragStarted
in class AbstractInteractionHandler
public void mouseButton1Dragged(RecordPlot plot, MouseEvent event)
InteractionHandler
mouseButton1Dragged
in interface InteractionHandler
mouseButton1Dragged
in class AbstractInteractionHandler
public void mouseButton1DragEnded(RecordPlot plot, MouseEvent event)
InteractionHandler
mouseButton1DragEnded
in interface InteractionHandler
mouseButton1DragEnded
in class AbstractInteractionHandler
public void mouseMoved(RecordPlot plot, MouseEvent event)
InteractionHandler
mouseMoved
in interface InteractionHandler
mouseMoved
in class AbstractInteractionHandler
public boolean shiftKeyPressed(RecordPlot plot, KeyEvent event)
InteractionHandler
shiftKeyPressed
in interface InteractionHandler
shiftKeyPressed
in class AbstractInteractionHandler
public boolean shiftKeyReleased(RecordPlot plot, KeyEvent event)
InteractionHandler
shiftKeyReleased
in interface InteractionHandler
shiftKeyReleased
in class AbstractInteractionHandler
public boolean ctrlMetaKeyPressed(RecordPlot plot, KeyEvent event)
InteractionHandler
ctrlMetaKeyPressed
in interface InteractionHandler
ctrlMetaKeyPressed
in class AbstractInteractionHandler
public boolean ctrlMetaKeyReleased(RecordPlot plot, KeyEvent event)
InteractionHandler
ctrlMetaKeyReleased
in interface InteractionHandler
ctrlMetaKeyReleased
in class AbstractInteractionHandler
Copyright © 1996-2014 FreeHEP. All Rights Reserved.