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, otherKeyPressedaltKeyPressed, altKeyReleased, ctrlKeyPressed, ctrlKeyReleased, equals, escKeyPressed, escKeyReleased, getHeight, getID, getName, getWidth, hashCode, keyTyped, metaKeyPressed, metaKeyReleased, mouseButton1Pressed, mouseButton1Released, mouseExited, otherKeyReleased, restore, save, setRecord, setSelected, setSizepublic DragAngledRectangleToScale()
public Icon getIcon(int size)
InteractionHandlergetIcon in interface InteractionHandlergetIcon in class AbstractInteractionHandlerpublic String getDescription()
InteractionHandlergetDescription in interface InteractionHandlergetDescription in class DefaultInteractionHandlerpublic boolean isSupportedBy(GraphicsPanel panel)
InteractionHandlerisSupportedBy in interface InteractionHandlerisSupportedBy in class DefaultInteractionHandlerpublic void changeCursor(RecordPlot plot, InputEvent event)
InteractionHandlerchangeCursor in interface InteractionHandlerchangeCursor in class DefaultInteractionHandlerpublic void reset(RecordPlot plot, InputEvent event)
InteractionHandlerreset in interface InteractionHandlerreset in class AbstractInteractionHandlerpublic void mouseEntered(RecordPlot plot, MouseEvent event)
InteractionHandlermouseEntered in interface InteractionHandlermouseEntered in class DefaultInteractionHandlerpublic void mouseButton1Clicked(RecordPlot plot, MouseEvent event)
InteractionHandlermouseButton1Clicked in interface InteractionHandlermouseButton1Clicked in class AbstractInteractionHandlerpublic void mouseButton1DragStarted(RecordPlot plot, MouseEvent event)
InteractionHandlermouseButton1DragStarted in interface InteractionHandlermouseButton1DragStarted in class AbstractInteractionHandlerpublic void mouseButton1Dragged(RecordPlot plot, MouseEvent event)
InteractionHandlermouseButton1Dragged in interface InteractionHandlermouseButton1Dragged in class AbstractInteractionHandlerpublic void mouseButton1DragEnded(RecordPlot plot, MouseEvent event)
InteractionHandlermouseButton1DragEnded in interface InteractionHandlermouseButton1DragEnded in class AbstractInteractionHandlerpublic void mouseMoved(RecordPlot plot, MouseEvent event)
InteractionHandlermouseMoved in interface InteractionHandlermouseMoved in class AbstractInteractionHandlerpublic boolean shiftKeyPressed(RecordPlot plot, KeyEvent event)
InteractionHandlershiftKeyPressed in interface InteractionHandlershiftKeyPressed in class AbstractInteractionHandlerpublic boolean shiftKeyReleased(RecordPlot plot, KeyEvent event)
InteractionHandlershiftKeyReleased in interface InteractionHandlershiftKeyReleased in class AbstractInteractionHandlerpublic boolean ctrlMetaKeyPressed(RecordPlot plot, KeyEvent event)
InteractionHandlerctrlMetaKeyPressed in interface InteractionHandlerctrlMetaKeyPressed in class AbstractInteractionHandlerpublic boolean ctrlMetaKeyReleased(RecordPlot plot, KeyEvent event)
InteractionHandlerctrlMetaKeyReleased in interface InteractionHandlerctrlMetaKeyReleased in class AbstractInteractionHandlerCopyright © 1996-2014 FreeHEP. All Rights Reserved.