|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.uci.ics.jung.visualization.control.AbstractGraphMousePlugin
edu.uci.ics.jung.visualization.control.AnimatedPickingGraphMousePlugin<V,E>
public class AnimatedPickingGraphMousePlugin<V,E>
AnimatedPickingGraphMousePlugin supports the picking of one Graph Vertex. When the mouse is released, the graph is translated so that the picked Vertex is moved to the center of the view. This translateion is conducted in an animation Thread so that the graph slides to its new position
| Field Summary | |
|---|---|
protected V |
vertex
the picked Vertex |
| Fields inherited from class edu.uci.ics.jung.visualization.control.AbstractGraphMousePlugin |
|---|
cursor, down, modifiers |
| Constructor Summary | |
|---|---|
AnimatedPickingGraphMousePlugin()
create an instance with default modifiers |
|
AnimatedPickingGraphMousePlugin(int selectionModifiers)
create an instance, overriding the default modifiers |
|
| Method Summary | |
|---|---|
void |
mouseClicked(MouseEvent e)
|
void |
mouseDragged(MouseEvent arg0)
|
void |
mouseEntered(MouseEvent e)
show a special cursor while the mouse is inside the window |
void |
mouseExited(MouseEvent e)
revert to the default cursor when the mouse leaves this window |
void |
mouseMoved(MouseEvent e)
|
void |
mousePressed(MouseEvent e)
If the event occurs on a Vertex, pick that single Vertex |
void |
mouseReleased(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 |
| Methods inherited from class edu.uci.ics.jung.visualization.control.AbstractGraphMousePlugin |
|---|
checkModifiers, getCursor, getModifiers, setCursor, setModifiers |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected V vertex
| Constructor Detail |
|---|
public AnimatedPickingGraphMousePlugin()
public AnimatedPickingGraphMousePlugin(int selectionModifiers)
selectionModifiers - | Method Detail |
|---|
public void mousePressed(MouseEvent e)
mousePressed in interface MouseListenere - the eventpublic void mouseReleased(MouseEvent e)
mouseReleased in interface MouseListenere - the eventpublic void mouseClicked(MouseEvent e)
mouseClicked in interface MouseListenerpublic void mouseEntered(MouseEvent e)
mouseEntered in interface MouseListenerpublic void mouseExited(MouseEvent e)
mouseExited in interface MouseListenerpublic void mouseMoved(MouseEvent e)
mouseMoved in interface MouseMotionListenerpublic void mouseDragged(MouseEvent arg0)
mouseDragged in interface MouseMotionListener
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||