com.touchgraph.graphlayout.interaction
Class DragAddUI
java.lang.Object
com.touchgraph.graphlayout.interaction.TGUserInterface
com.touchgraph.graphlayout.interaction.TGSelfDeactivatingUI
com.touchgraph.graphlayout.interaction.TGAbstractDragUI
com.touchgraph.graphlayout.interaction.DragAddUI
- All Implemented Interfaces:
- TGPaintListener, EventListener
public class DragAddUI
- extends TGAbstractDragUI
- implements TGPaintListener
DragAddUI contains code for adding nodes + edges by dragging.
- Version:
- 1.21 $Id: DragAddUI.java,v 3.0 2004/07/24 13:21:21 altheim Exp $
- Author:
- Alexander Shapiro
|
Constructor Summary |
DragAddUI(TGPanel tgp)
Constructor with provided TGPanel tgp. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DragAddUI
public DragAddUI(TGPanel tgp)
- Constructor with provided 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
paintFirst
public void paintFirst(Graphics g)
- Specified by:
paintFirst in interface TGPaintListener
paintLast
public void paintLast(Graphics g)
- Specified by:
paintLast in interface TGPaintListener
paintAfterEdges
public void paintAfterEdges(Graphics g)
- Specified by:
paintAfterEdges in interface TGPaintListener
paintArrow
public static void paintArrow(Graphics g,
int x1,
int y1,
int x2,
int y2,
Color c)
The Ceryle Project. Copyright ©2001-2007 Murray Altheim, All Rights Reserved. See LICENSE included with distribution.