com.touchgraph.graphlayout.interaction
Class DragNodeUI
java.lang.Object
com.touchgraph.graphlayout.interaction.TGUserInterface
com.touchgraph.graphlayout.interaction.TGSelfDeactivatingUI
com.touchgraph.graphlayout.interaction.TGAbstractDragUI
com.touchgraph.graphlayout.interaction.DragNodeUI
- Direct Known Subclasses:
- MultiDragNodeUI
public class DragNodeUI
- extends TGAbstractDragUI
DragNodeUI contains code for dragging nodes.
Parts of this code build upon Sun's Graph Layout example.
http://java.sun.com/applets/jdk/1.1/demo/GraphLayout/Graph.java
- Version:
- 1.21 $Id: DragNodeUI.java,v 3.1 2005/04/03 01:55:20 altheim Exp $
- Author:
- Alexander Shapiro
|
Field Summary |
Point |
dragOffs
Stores the distance between the cursor and the center of the node
when dragging occurs so that the cursor remains at the same position
on the node otherwise, the cursor jumps to the center of the node. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
dragOffs
public Point dragOffs
- Stores the distance between the cursor and the center of the node
when dragging occurs so that the cursor remains at the same position
on the node otherwise, the cursor jumps to the center of the node.
DragNodeUI
public DragNodeUI(TGPanel tgp)
- Constructor with TGPanel tgp.
preActivate
public void preActivate()
- Specified by:
preActivate in class TGAbstractDragUI
preDeactivate
public void preDeactivate()
- Specified by:
preDeactivate in class TGAbstractDragUI
mousePressed
public void mousePressed(MouseEvent e)
- Specified by:
mousePressed in class TGAbstractDragUI
mouseReleased
public void mouseReleased(MouseEvent e)
- Specified by:
mouseReleased in class TGAbstractDragUI
mouseDragged
public void mouseDragged(MouseEvent e)
- Specified by:
mouseDragged in class TGAbstractDragUI
The Ceryle Project. Copyright ©2001-2007 Murray Altheim, All Rights Reserved. See LICENSE included with distribution.