public class AnchorUpdateControl extends ControlAdapter
LEFT_MOUSE_BUTTON, MIDDLE_MOUSE_BUTTON, RIGHT_MOUSE_BUTTON| Constructor and Description |
|---|
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.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
isEnabled, itemClicked, itemEntered, itemExited, itemKeyPressed, itemKeyReleased, itemKeyTyped, itemPressed, itemReleased, itemWheelMoved, keyPressed, keyReleased, keyTyped, mouseClicked, mouseEntered, mousePressed, mouseReleased, mouseWheelMoved, setEnabledpublic 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.public void mouseExited(java.awt.event.MouseEvent e)
ControlmouseExited 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)
ControlmouseMoved 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)
ControlmouseDragged 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)
ControlitemDragged in interface ControlitemDragged in class ControlAdapterControl.itemDragged(prefuse.visual.VisualItem, java.awt.event.MouseEvent)public void itemMoved(VisualItem item, java.awt.event.MouseEvent e)
ControlitemMoved 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