edu.ucla.stat.SOCR.touchgraph.graphlayout.interaction
Class TGAbstractDragUI
java.lang.Object
edu.ucla.stat.SOCR.touchgraph.graphlayout.interaction.TGUserInterface
edu.ucla.stat.SOCR.touchgraph.graphlayout.interaction.TGSelfDeactivatingUI
edu.ucla.stat.SOCR.touchgraph.graphlayout.interaction.TGAbstractDragUI
- Direct Known Subclasses:
- DragAddUI, DragMultiselectUI, DragNodeUI, HVRotateDragUI
public abstract class TGAbstractDragUI
- extends TGSelfDeactivatingUI
TGAbstractDragUI allows one to write user interfaces that handle
what happends when a mouse is pressed, dragged, and released.
- Version:
- 1.22-jre1.1 $Id: TGAbstractDragUI.java,v 1.1 2010/01/20 20:38:32 jiecui Exp $
- Author:
- Alexander Shapiro
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
tgPanel
public TGPanel tgPanel
mouseWasDragged
public boolean mouseWasDragged
TGAbstractDragUI
public TGAbstractDragUI(TGPanel tgp)
- Constructor with TGPanel tgp.
activate
public final void activate()
- Specified by:
activate
in class TGUserInterface
activate
public final void activate(java.awt.event.MouseEvent e)
deactivate
public final void deactivate()
- Overrides:
deactivate
in class TGUserInterface
preActivate
public abstract void preActivate()
preDeactivate
public abstract void preDeactivate()
mousePressed
public abstract void mousePressed(java.awt.event.MouseEvent e)
mouseDragged
public abstract void mouseDragged(java.awt.event.MouseEvent e)
mouseReleased
public abstract void mouseReleased(java.awt.event.MouseEvent e)