|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object prefuse.controls.ControlAdapter prefuse.controls.AnchorUpdateControl
public class AnchorUpdateControl
Follows the mouse cursor, updating the anchor parameter for any number of layout instances to match the current cursor position. Will also run a given activity in response to cursor updates.
Field Summary |
---|
Fields inherited from interface prefuse.controls.Control |
---|
LEFT_MOUSE_BUTTON, MIDDLE_MOUSE_BUTTON, RIGHT_MOUSE_BUTTON |
Constructor Summary | |
---|---|
AnchorUpdateControl(Layout layout)
Create a new AnchorUpdateControl. |
|
AnchorUpdateControl(Layout[] layout,
java.lang.String action)
Create a new AnchorUpdateControl. |
|
AnchorUpdateControl(Layout[] layout,
java.lang.String action,
boolean overItem)
Create a new AnchorUpdateControl. |
|
AnchorUpdateControl(Layout layout,
java.lang.String action)
Create a new AnchorUpdateControl. |
|
AnchorUpdateControl(Layout layout,
java.lang.String action,
boolean overItem)
Create a new AnchorUpdateControl. |
Method Summary | |
---|---|
void |
itemDragged(VisualItem item,
java.awt.event.MouseEvent e)
Invoked when a mouse button is pressed on a VisualItem and then dragged. |
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 |
mouseDragged(java.awt.event.MouseEvent e)
Invoked when a mouse button is pressed on the Display (but NOT a VisualItem) and then dragged. |
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 |
moveEvent(java.awt.event.MouseEvent e)
Registers a mouse move event, updating the anchor point for all registered layout instances. |
Methods inherited from class prefuse.controls.ControlAdapter |
---|
isEnabled, itemClicked, itemEntered, itemExited, itemKeyPressed, itemKeyReleased, itemKeyTyped, itemPressed, itemReleased, itemWheelMoved, keyPressed, keyReleased, keyTyped, mouseClicked, mouseEntered, mousePressed, mouseReleased, mouseWheelMoved, setEnabled |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AnchorUpdateControl(Layout layout)
layout
- the layout for which to update the anchor pointpublic AnchorUpdateControl(Layout layout, java.lang.String action)
layout
- the layout for which to update the anchor pointaction
- the name of an action to run upon anchor updatespublic AnchorUpdateControl(Layout layout, java.lang.String action, boolean overItem)
layout
- the layout for which to update the anchor pointaction
- the name of an action to run upon anchor updatesoverItem
- indicates if anchor update events should be processed
while the mouse cursor is hovered over a VisualItem.public AnchorUpdateControl(Layout[] layout, java.lang.String action)
layout
- the layouts for which to update the anchor pointaction
- the name of an action to run upon anchor updatespublic AnchorUpdateControl(Layout[] layout, java.lang.String action, boolean overItem)
layout
- the layouts for which to update the anchor pointaction
- the name of an action to run upon anchor updatesoverItem
- indicates if anchor update events should be processed
while the mouse cursor is hovered over a VisualItem.Method Detail |
---|
public void mouseExited(java.awt.event.MouseEvent e)
Control
mouseExited
in interface java.awt.event.MouseListener
mouseExited
in interface Control
mouseExited
in class ControlAdapter
MouseListener.mouseExited(java.awt.event.MouseEvent)
public void mouseMoved(java.awt.event.MouseEvent e)
Control
mouseMoved
in interface java.awt.event.MouseMotionListener
mouseMoved
in interface Control
mouseMoved
in class ControlAdapter
MouseMotionListener.mouseMoved(java.awt.event.MouseEvent)
public void mouseDragged(java.awt.event.MouseEvent e)
Control
mouseDragged
in interface java.awt.event.MouseMotionListener
mouseDragged
in interface Control
mouseDragged
in class ControlAdapter
MouseMotionListener.mouseDragged(java.awt.event.MouseEvent)
public void itemDragged(VisualItem item, java.awt.event.MouseEvent e)
Control
itemDragged
in interface Control
itemDragged
in class ControlAdapter
Control.itemDragged(prefuse.visual.VisualItem, java.awt.event.MouseEvent)
public void itemMoved(VisualItem item, java.awt.event.MouseEvent e)
Control
itemMoved
in interface Control
itemMoved
in class ControlAdapter
Control.itemMoved(prefuse.visual.VisualItem, java.awt.event.MouseEvent)
public void moveEvent(java.awt.event.MouseEvent e)
e
- the MouseEvent
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |