public class AnimatedPickingGraphMousePlugin<V,E> extends AbstractGraphMousePlugin implements java.awt.event.MouseListener, java.awt.event.MouseMotionListener
| Modifier and Type | Field and Description |
|---|---|
protected V |
vertex
the picked Vertex
|
cursor, down, modifiers| Constructor and Description |
|---|
AnimatedPickingGraphMousePlugin()
create an instance with default modifiers
|
AnimatedPickingGraphMousePlugin(int selectionModifiers)
create an instance, overriding the default modifiers
|
| Modifier and Type | Method and Description |
|---|---|
void |
mouseClicked(java.awt.event.MouseEvent e) |
void |
mouseDragged(java.awt.event.MouseEvent arg0) |
void |
mouseEntered(java.awt.event.MouseEvent e)
show a special cursor while the mouse is inside the window
|
void |
mouseExited(java.awt.event.MouseEvent e)
revert to the default cursor when the mouse leaves this window
|
void |
mouseMoved(java.awt.event.MouseEvent e) |
void |
mousePressed(java.awt.event.MouseEvent e)
If the event occurs on a Vertex, pick that single Vertex
|
void |
mouseReleased(java.awt.event.MouseEvent e)
If a Vertex was picked in the mousePressed event, start a Thread
to animate the translation of the graph so that the picked Vertex
moves to the center of the view
|
checkModifiers, getCursor, getModifiers, setCursor, setModifiersprotected V vertex
public AnimatedPickingGraphMousePlugin()
public AnimatedPickingGraphMousePlugin(int selectionModifiers)
selectionModifiers - public void mousePressed(java.awt.event.MouseEvent e)
mousePressed in interface java.awt.event.MouseListenere - the eventpublic void mouseReleased(java.awt.event.MouseEvent e)
mouseReleased in interface java.awt.event.MouseListenere - the eventpublic void mouseClicked(java.awt.event.MouseEvent e)
mouseClicked in interface java.awt.event.MouseListenerpublic void mouseEntered(java.awt.event.MouseEvent e)
mouseEntered in interface java.awt.event.MouseListenerpublic void mouseExited(java.awt.event.MouseEvent e)
mouseExited in interface java.awt.event.MouseListenerpublic void mouseMoved(java.awt.event.MouseEvent e)
mouseMoved in interface java.awt.event.MouseMotionListenerpublic void mouseDragged(java.awt.event.MouseEvent arg0)
mouseDragged in interface java.awt.event.MouseMotionListener