edu.ucla.stat.SOCR.touchgraph.graphlayout.interaction
Class TGAbstractDragUI

java.lang.Object
  extended by edu.ucla.stat.SOCR.touchgraph.graphlayout.interaction.TGUserInterface
      extended by edu.ucla.stat.SOCR.touchgraph.graphlayout.interaction.TGSelfDeactivatingUI
          extended by 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

Field Summary
 boolean mouseWasDragged
           
 TGPanel tgPanel
           
 
Constructor Summary
TGAbstractDragUI(TGPanel tgp)
          Constructor with TGPanel tgp.
 
Method Summary
 void activate()
           
 void activate(java.awt.event.MouseEvent e)
           
 void deactivate()
           
abstract  void mouseDragged(java.awt.event.MouseEvent e)
           
abstract  void mousePressed(java.awt.event.MouseEvent e)
           
abstract  void mouseReleased(java.awt.event.MouseEvent e)
           
abstract  void preActivate()
           
abstract  void preDeactivate()
           
 
Methods inherited from class edu.ucla.stat.SOCR.touchgraph.graphlayout.interaction.TGSelfDeactivatingUI
setSelfDeactivate
 
Methods inherited from class edu.ucla.stat.SOCR.touchgraph.graphlayout.interaction.TGUserInterface
activate, isActive
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

tgPanel

public TGPanel tgPanel

mouseWasDragged

public boolean mouseWasDragged
Constructor Detail

TGAbstractDragUI

public TGAbstractDragUI(TGPanel tgp)
Constructor with TGPanel tgp.

Method Detail

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)