|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Control
Listener interface for processing user interface events on a Display.
Field Summary | |
---|---|
static int |
LEFT_MOUSE_BUTTON
Represents the use of the left mouse button |
static int |
MIDDLE_MOUSE_BUTTON
Represents the use of the middle mouse button |
static int |
RIGHT_MOUSE_BUTTON
Represents the use of the right mouse button |
Method Summary | |
---|---|
boolean |
isEnabled()
Indicates if this Control is currently enabled. |
void |
itemClicked(VisualItem item,
java.awt.event.MouseEvent e)
Invoked when the mouse button has been clicked (pressed and released) on a VisualItem. |
void |
itemDragged(VisualItem item,
java.awt.event.MouseEvent e)
Invoked when a mouse button is pressed on a VisualItem and then dragged. |
void |
itemEntered(VisualItem item,
java.awt.event.MouseEvent e)
Invoked when the mouse enters a VisualItem. |
void |
itemExited(VisualItem item,
java.awt.event.MouseEvent e)
Invoked when the mouse exits a VisualItem. |
void |
itemKeyPressed(VisualItem item,
java.awt.event.KeyEvent e)
Invoked when a key has been pressed, while the mouse is over a VisualItem. |
void |
itemKeyReleased(VisualItem item,
java.awt.event.KeyEvent e)
Invoked when a key has been released, while the mouse is over a VisualItem. |
void |
itemKeyTyped(VisualItem item,
java.awt.event.KeyEvent e)
Invoked when a key has been typed, while the mouse is over a VisualItem. |
void |
itemMoved(VisualItem item,
java.awt.event.MouseEvent e)
Invoked when the mouse cursor has been moved onto a VisualItem but no buttons have been pushed. |
void |
itemPressed(VisualItem item,
java.awt.event.MouseEvent e)
Invoked when a mouse button has been pressed on a VisualItem. |
void |
itemReleased(VisualItem item,
java.awt.event.MouseEvent e)
Invoked when a mouse button has been released on a VisualItem. |
void |
itemWheelMoved(VisualItem item,
java.awt.event.MouseWheelEvent e)
Invoked when the mouse wheel is rotated while the mouse is over a VisualItem. |
void |
keyPressed(java.awt.event.KeyEvent e)
Invoked when a key has been pressed, while the mouse is NOT over a VisualItem. |
void |
keyReleased(java.awt.event.KeyEvent e)
Invoked when a key has been released, while the mouse is NOT over a VisualItem. |
void |
keyTyped(java.awt.event.KeyEvent e)
Invoked when a key has been typed, while the mouse is NOT over a VisualItem. |
void |
mouseClicked(java.awt.event.MouseEvent e)
Invoked when the mouse button has been clicked (pressed and released) on the Display, but NOT on a VisualItem. |
void |
mouseDragged(java.awt.event.MouseEvent e)
Invoked when a mouse button is pressed on the Display (but NOT a VisualItem) and then dragged. |
void |
mouseEntered(java.awt.event.MouseEvent e)
Invoked when the mouse enters the Display. |
void |
mouseExited(java.awt.event.MouseEvent e)
Invoked when the mouse exits the Display. |
void |
mouseMoved(java.awt.event.MouseEvent e)
Invoked when the mouse cursor has been moved on the Display (but NOT a VisualItem) and no buttons have been pushed. |
void |
mousePressed(java.awt.event.MouseEvent e)
Invoked when a mouse button has been pressed on the Display but NOT on a VisualItem. |
void |
mouseReleased(java.awt.event.MouseEvent e)
Invoked when a mouse button has been released on the Display but NOT on a VisualItem. |
void |
mouseWheelMoved(java.awt.event.MouseWheelEvent e)
Invoked when the mouse wheel is rotated while the mouse is over the Display (but NOT a VisualItem). |
void |
setEnabled(boolean enabled)
Sets the enabled status of this control. |
Field Detail |
---|
static final int LEFT_MOUSE_BUTTON
static final int MIDDLE_MOUSE_BUTTON
static final int RIGHT_MOUSE_BUTTON
Method Detail |
---|
boolean isEnabled()
void setEnabled(boolean enabled)
enabled
- true to enable the control, false to disable itvoid itemDragged(VisualItem item, java.awt.event.MouseEvent e)
void itemMoved(VisualItem item, java.awt.event.MouseEvent e)
void itemWheelMoved(VisualItem item, java.awt.event.MouseWheelEvent e)
void itemClicked(VisualItem item, java.awt.event.MouseEvent e)
void itemPressed(VisualItem item, java.awt.event.MouseEvent e)
void itemReleased(VisualItem item, java.awt.event.MouseEvent e)
void itemEntered(VisualItem item, java.awt.event.MouseEvent e)
void itemExited(VisualItem item, java.awt.event.MouseEvent e)
void itemKeyPressed(VisualItem item, java.awt.event.KeyEvent e)
void itemKeyReleased(VisualItem item, java.awt.event.KeyEvent e)
void itemKeyTyped(VisualItem item, java.awt.event.KeyEvent e)
void mouseEntered(java.awt.event.MouseEvent e)
mouseEntered
in interface java.awt.event.MouseListener
void mouseExited(java.awt.event.MouseEvent e)
mouseExited
in interface java.awt.event.MouseListener
void mousePressed(java.awt.event.MouseEvent e)
mousePressed
in interface java.awt.event.MouseListener
void mouseReleased(java.awt.event.MouseEvent e)
mouseReleased
in interface java.awt.event.MouseListener
void mouseClicked(java.awt.event.MouseEvent e)
mouseClicked
in interface java.awt.event.MouseListener
void mouseDragged(java.awt.event.MouseEvent e)
mouseDragged
in interface java.awt.event.MouseMotionListener
void mouseMoved(java.awt.event.MouseEvent e)
mouseMoved
in interface java.awt.event.MouseMotionListener
void mouseWheelMoved(java.awt.event.MouseWheelEvent e)
mouseWheelMoved
in interface java.awt.event.MouseWheelListener
void keyPressed(java.awt.event.KeyEvent e)
keyPressed
in interface java.awt.event.KeyListener
void keyReleased(java.awt.event.KeyEvent e)
keyReleased
in interface java.awt.event.KeyListener
void keyTyped(java.awt.event.KeyEvent e)
keyTyped
in interface java.awt.event.KeyListener
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |