com.touchgraph.graphlayout.interaction
Class TGAbstractDragUI

java.lang.Object
  extended bycom.touchgraph.graphlayout.interaction.TGUserInterface
      extended bycom.touchgraph.graphlayout.interaction.TGSelfDeactivatingUI
          extended bycom.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.21 $Id: TGAbstractDragUI.java,v 1.1.1.1 2004/02/06 08:44:07 keesj 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 com.touchgraph.graphlayout.interaction.TGSelfDeactivatingUI
setSelfDeactivate
 
Methods inherited from class com.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)


Copyright © 2003-2004 SourceForge. All Rights Reserved.