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, setEnabled
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.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 MouseEventCopyright ? 2013 Regents of the University of California