|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object prefuse.controls.ControlAdapter
public class ControlAdapter
Adapter class for processing prefuse interface events. Subclasses can override the desired methods to perform user interface event handling.
Field Summary |
---|
Fields inherited from interface prefuse.controls.Control |
---|
LEFT_MOUSE_BUTTON, MIDDLE_MOUSE_BUTTON, RIGHT_MOUSE_BUTTON |
Constructor Summary | |
---|---|
ControlAdapter()
|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ControlAdapter()
Method Detail |
---|
public boolean isEnabled()
Control
isEnabled
in interface Control
Control.isEnabled()
public void setEnabled(boolean enabled)
Control
setEnabled
in interface Control
enabled
- true to enable the control, false to disable itControl.setEnabled(boolean)
public void itemDragged(VisualItem item, java.awt.event.MouseEvent e)
Control
itemDragged
in interface Control
Control.itemDragged(prefuse.visual.VisualItem, java.awt.event.MouseEvent)
public void itemMoved(VisualItem item, java.awt.event.MouseEvent e)
Control
itemMoved
in interface Control
Control.itemMoved(prefuse.visual.VisualItem, java.awt.event.MouseEvent)
public void itemWheelMoved(VisualItem item, java.awt.event.MouseWheelEvent e)
Control
itemWheelMoved
in interface Control
Control.itemWheelMoved(prefuse.visual.VisualItem, java.awt.event.MouseWheelEvent)
public void itemClicked(VisualItem item, java.awt.event.MouseEvent e)
Control
itemClicked
in interface Control
Control.itemClicked(prefuse.visual.VisualItem, java.awt.event.MouseEvent)
public void itemPressed(VisualItem item, java.awt.event.MouseEvent e)
Control
itemPressed
in interface Control
Control.itemPressed(prefuse.visual.VisualItem, java.awt.event.MouseEvent)
public void itemReleased(VisualItem item, java.awt.event.MouseEvent e)
Control
itemReleased
in interface Control
Control.itemReleased(prefuse.visual.VisualItem, java.awt.event.MouseEvent)
public void itemEntered(VisualItem item, java.awt.event.MouseEvent e)
Control
itemEntered
in interface Control
Control.itemEntered(prefuse.visual.VisualItem, java.awt.event.MouseEvent)
public void itemExited(VisualItem item, java.awt.event.MouseEvent e)
Control
itemExited
in interface Control
Control.itemExited(prefuse.visual.VisualItem, java.awt.event.MouseEvent)
public void itemKeyPressed(VisualItem item, java.awt.event.KeyEvent e)
Control
itemKeyPressed
in interface Control
Control.itemKeyPressed(prefuse.visual.VisualItem, java.awt.event.KeyEvent)
public void itemKeyReleased(VisualItem item, java.awt.event.KeyEvent e)
Control
itemKeyReleased
in interface Control
Control.itemKeyReleased(prefuse.visual.VisualItem, java.awt.event.KeyEvent)
public void itemKeyTyped(VisualItem item, java.awt.event.KeyEvent e)
Control
itemKeyTyped
in interface Control
Control.itemKeyTyped(prefuse.visual.VisualItem, java.awt.event.KeyEvent)
public void mouseEntered(java.awt.event.MouseEvent e)
Control
mouseEntered
in interface java.awt.event.MouseListener
mouseEntered
in interface Control
Control.mouseEntered(java.awt.event.MouseEvent)
public void mouseExited(java.awt.event.MouseEvent e)
Control
mouseExited
in interface java.awt.event.MouseListener
mouseExited
in interface Control
Control.mouseExited(java.awt.event.MouseEvent)
public void mousePressed(java.awt.event.MouseEvent e)
Control
mousePressed
in interface java.awt.event.MouseListener
mousePressed
in interface Control
Control.mousePressed(java.awt.event.MouseEvent)
public void mouseReleased(java.awt.event.MouseEvent e)
Control
mouseReleased
in interface java.awt.event.MouseListener
mouseReleased
in interface Control
Control.mouseReleased(java.awt.event.MouseEvent)
public void mouseClicked(java.awt.event.MouseEvent e)
Control
mouseClicked
in interface java.awt.event.MouseListener
mouseClicked
in interface Control
Control.mouseClicked(java.awt.event.MouseEvent)
public void mouseDragged(java.awt.event.MouseEvent e)
Control
mouseDragged
in interface java.awt.event.MouseMotionListener
mouseDragged
in interface Control
Control.mouseDragged(java.awt.event.MouseEvent)
public void mouseMoved(java.awt.event.MouseEvent e)
Control
mouseMoved
in interface java.awt.event.MouseMotionListener
mouseMoved
in interface Control
Control.mouseMoved(java.awt.event.MouseEvent)
public void mouseWheelMoved(java.awt.event.MouseWheelEvent e)
Control
mouseWheelMoved
in interface java.awt.event.MouseWheelListener
mouseWheelMoved
in interface Control
Control.mouseWheelMoved(java.awt.event.MouseWheelEvent)
public void keyPressed(java.awt.event.KeyEvent e)
Control
keyPressed
in interface java.awt.event.KeyListener
keyPressed
in interface Control
Control.keyPressed(java.awt.event.KeyEvent)
public void keyReleased(java.awt.event.KeyEvent e)
Control
keyReleased
in interface java.awt.event.KeyListener
keyReleased
in interface Control
Control.keyReleased(java.awt.event.KeyEvent)
public void keyTyped(java.awt.event.KeyEvent e)
Control
keyTyped
in interface java.awt.event.KeyListener
keyTyped
in interface Control
Control.keyTyped(java.awt.event.KeyEvent)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |