|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectprefuse.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 point
public 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 updates
public 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 updates
public 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.MouseListenermouseExited in interface ControlmouseExited in class ControlAdapterMouseListener.mouseExited(java.awt.event.MouseEvent)public void mouseMoved(java.awt.event.MouseEvent e)
Control
mouseMoved in interface java.awt.event.MouseMotionListenermouseMoved in interface ControlmouseMoved in class ControlAdapterMouseMotionListener.mouseMoved(java.awt.event.MouseEvent)public void mouseDragged(java.awt.event.MouseEvent e)
Control
mouseDragged in interface java.awt.event.MouseMotionListenermouseDragged in interface ControlmouseDragged in class ControlAdapterMouseMotionListener.mouseDragged(java.awt.event.MouseEvent)
public void itemDragged(VisualItem item,
java.awt.event.MouseEvent e)
Control
itemDragged in interface ControlitemDragged in class ControlAdapterControl.itemDragged(prefuse.visual.VisualItem, java.awt.event.MouseEvent)
public void itemMoved(VisualItem item,
java.awt.event.MouseEvent e)
Control
itemMoved in interface ControlitemMoved in class ControlAdapterControl.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 | |||||||||