|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecthep.wired.interaction.AbstractInteractionHandler
hep.wired.interaction.DefaultInteractionHandler
hep.wired.interaction.DragAngledRectangleToScale
public class DragAngledRectangleToScale
Drag/click mouse to define an (angled) rectangle to scale, rotate and translate plot. Implements: 1. CMCMC - Click, Move, Click, Move, Click 2. CMD - Click, Move, Drag 3. DMC - Drag, Move, Click 4. DMD - Drag, Move, Drag
Field Summary |
---|
Fields inherited from class hep.wired.interaction.DefaultInteractionHandler |
---|
command, fixedScale, fixedTranslate, multiplyScale, multiplyTranslate |
Constructor Summary | |
---|---|
DragAngledRectangleToScale()
Create a angled rectangle handler to generate scal edits. |
Method Summary | |
---|---|
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()
|
Methods inherited from class hep.wired.interaction.DefaultInteractionHandler |
---|
getInstance, getLastScale, isControlMetaDown, isMac, mouseWheelMoved, otherKeyPressed |
Methods inherited from class hep.wired.interaction.AbstractInteractionHandler |
---|
altKeyPressed, altKeyReleased, ctrlKeyPressed, ctrlKeyReleased, equals, escKeyPressed, escKeyReleased, getHeight, getID, getName, getWidth, hashCode, keyTyped, metaKeyPressed, metaKeyReleased, mouseButton1Pressed, mouseButton1Released, mouseExited, otherKeyReleased, restore, save, setRecord, setSelected, setSize |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public DragAngledRectangleToScale()
Method Detail |
---|
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
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |