|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjavax.swing.event.MouseInputAdapter
org.ceryle.graph.tm.TMNavigateUI.AssociationSwapListener
public class TMNavigateUI.AssociationSwapListener
MouseMotionListener extension to handle dragging of an existing Association to a new one. See the individual method descriptions for more details.
| Constructor Summary | |
|---|---|
TMNavigateUI.AssociationSwapListener(TNode fromNode,
TNode toNode,
MouseEvent e)
|
|
| Method Summary | |
|---|---|
void |
disableListener()
Disables the listener and returns the graph to normal functioning. |
void |
initializeDrag(MouseEvent e)
Upon initialization, temporarily fixes the moused over TNode, then creates a phantom (marked provisional) TNode linked by an arrow-style GraphEdge. |
void |
mouseDragged(MouseEvent e)
Drags the phantom TNode. |
void |
mouseExited(MouseEvent e)
|
void |
mouseReleased(MouseEvent e)
|
void |
releaseDrag(MouseEvent e)
Reverts the graph back to its pre-phantom state. |
| Methods inherited from class javax.swing.event.MouseInputAdapter |
|---|
mouseClicked, mouseEntered, mouseMoved, mousePressed |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TMNavigateUI.AssociationSwapListener(TNode fromNode,
TNode toNode,
MouseEvent e)
| Method Detail |
|---|
public void initializeDrag(MouseEvent e)
public void releaseDrag(MouseEvent e)
public void mouseDragged(MouseEvent e)
mouseDragged in interface MouseMotionListenermouseDragged in class MouseInputAdapterpublic void mouseReleased(MouseEvent e)
mouseReleased in interface MouseListenermouseReleased in class MouseInputAdapterpublic void mouseExited(MouseEvent e)
mouseExited in interface MouseListenermouseExited in class MouseInputAdapterpublic void disableListener()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||