public interface InteractionHandler extends WiredRegistry.ID, org.freehep.xml.io.XMLIO
Modifier and Type | Method and Description |
---|---|
boolean |
altKeyPressed(RecordPlot plot,
KeyEvent event)
Called when the alt key is pressed.
|
boolean |
altKeyReleased(RecordPlot plot,
KeyEvent event)
Called when the alt key is released.
|
void |
changeCursor(RecordPlot plot,
InputEvent event)
Called to allow the InteractionHandler to change the cursor.
|
boolean |
ctrlKeyPressed(RecordPlot plot,
KeyEvent event)
Called when the ctrl key is pressed.
|
boolean |
ctrlKeyReleased(RecordPlot plot,
KeyEvent event)
Called when the ctrl key is released.
|
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.
|
boolean |
escKeyPressed(RecordPlot plot,
KeyEvent event)
Called when the esc key is pressed.
|
boolean |
escKeyReleased(RecordPlot plot,
KeyEvent event)
Called when the esc key is released.
|
String |
getDescription()
Returns a one line description.
|
int |
getHeight()
Returns the height of the interaction panel.
|
Icon |
getIcon(int size)
Returns associated icon
|
String |
getName()
Returns the name of the Interaction Handler.
|
int |
getWidth()
Returns the width of the interaction panel.
|
boolean |
isSupportedBy(GraphicsPanel panel)
Returns true if this Interaction Handler is supported by this Graphics
Panel.
|
boolean |
keyTyped(RecordPlot plot,
KeyEvent event)
Called when a key is typed.
|
boolean |
metaKeyPressed(RecordPlot plot,
KeyEvent event)
Called when the meta/option key is pressed.
|
boolean |
metaKeyReleased(RecordPlot plot,
KeyEvent event)
Called when the meta/option key is released.
|
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 |
mouseButton1Pressed(RecordPlot plot,
MouseEvent event)
Called when mouse button 1 is pressed
|
void |
mouseButton1Released(RecordPlot plot,
MouseEvent event)
Called when mouse button 1 is released
|
void |
mouseEntered(RecordPlot plot,
MouseEvent event)
Called when the mouse is entering the component
|
void |
mouseExited(RecordPlot plot,
MouseEvent event)
Called when the mouse is exitting the component
|
void |
mouseMoved(RecordPlot plot,
MouseEvent event)
Called when the mouse is moved
|
void |
mouseWheelMoved(RecordPlot plot,
MouseWheelEvent event)
Called when the mousewheel is moved
|
boolean |
otherKeyPressed(RecordPlot plot,
KeyEvent event)
Called when any other key is pressed.
|
boolean |
otherKeyReleased(RecordPlot plot,
KeyEvent event)
Called when any other key is released.
|
void |
reset(RecordPlot plot,
InputEvent event)
Called to reset the interaction handler in its initial state.
|
void |
setRecord(RecordPlot plot,
Object record)
Sets the Record which is displayed in the GraphicsPanel.
|
void |
setSelected(RecordPlot plot,
boolean selected)
Called when underlying plot is selected/unselected.
|
void |
setSize(RecordPlot plot,
int width,
int height)
Sets the size of the wired plot on the handler, to be able to move/resize
objects drawn by the handler.
|
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.
|
getID
String getName()
String getDescription()
boolean isSupportedBy(GraphicsPanel panel)
void setRecord(RecordPlot plot, Object record)
void setSelected(RecordPlot plot, boolean selected)
void setSize(RecordPlot plot, int width, int height)
int getWidth()
int getHeight()
Icon getIcon(int size)
void reset(RecordPlot plot, InputEvent event)
void changeCursor(RecordPlot plot, InputEvent event)
void mouseButton1Clicked(RecordPlot plot, MouseEvent event)
void mouseButton1Pressed(RecordPlot plot, MouseEvent event)
void mouseButton1Released(RecordPlot plot, MouseEvent event)
void mouseButton1DragStarted(RecordPlot plot, MouseEvent event)
void mouseButton1Dragged(RecordPlot plot, MouseEvent event)
void mouseButton1DragEnded(RecordPlot plot, MouseEvent event)
void mouseMoved(RecordPlot plot, MouseEvent event)
void mouseEntered(RecordPlot plot, MouseEvent event)
void mouseExited(RecordPlot plot, MouseEvent event)
void mouseWheelMoved(RecordPlot plot, MouseWheelEvent event)
boolean escKeyPressed(RecordPlot plot, KeyEvent event)
boolean escKeyReleased(RecordPlot plot, KeyEvent event)
boolean altKeyPressed(RecordPlot plot, KeyEvent event)
boolean altKeyReleased(RecordPlot plot, KeyEvent event)
boolean ctrlKeyPressed(RecordPlot plot, KeyEvent event)
boolean ctrlKeyReleased(RecordPlot plot, KeyEvent event)
boolean shiftKeyPressed(RecordPlot plot, KeyEvent event)
boolean shiftKeyReleased(RecordPlot plot, KeyEvent event)
boolean metaKeyPressed(RecordPlot plot, KeyEvent event)
boolean metaKeyReleased(RecordPlot plot, KeyEvent event)
boolean ctrlMetaKeyPressed(RecordPlot plot, KeyEvent event)
boolean ctrlMetaKeyReleased(RecordPlot plot, KeyEvent event)
boolean otherKeyPressed(RecordPlot plot, KeyEvent event)
boolean otherKeyReleased(RecordPlot plot, KeyEvent event)
boolean keyTyped(RecordPlot plot, KeyEvent event)
Copyright © 1996-2014 FreeHEP. All Rights Reserved.