com.touchgraph.graphlayout.interaction
Class DragAddUI

java.lang.Object
  extended bycom.touchgraph.graphlayout.interaction.TGUserInterface
      extended bycom.touchgraph.graphlayout.interaction.TGSelfDeactivatingUI
          extended bycom.touchgraph.graphlayout.interaction.TGAbstractDragUI
              extended bycom.touchgraph.graphlayout.interaction.DragAddUI
All Implemented Interfaces:
java.util.EventListener, TGPaintListener

public class DragAddUI
extends TGAbstractDragUI
implements TGPaintListener

DragAddUI contains code for adding nodes + edges by dragging.

Version:
1.21 $Id: DragAddUI.java,v 1.1.1.1 2004/02/06 08:44:07 keesj Exp $
Author:
Alexander Shapiro

Field Summary
 
Fields inherited from class com.touchgraph.graphlayout.interaction.TGAbstractDragUI
mouseWasDragged, tgPanel
 
Constructor Summary
DragAddUI(TGPanel tgp)
          Constructor with provided TGPanel tgp.
 
Method Summary
 void mouseDragged(java.awt.event.MouseEvent e)
           
 void mousePressed(java.awt.event.MouseEvent e)
           
 void mouseReleased(java.awt.event.MouseEvent e)
           
 void paintAfterEdges(java.awt.Graphics g)
           
 void paintFirst(java.awt.Graphics g)
           
 void paintLast(java.awt.Graphics g)
           
 void preActivate()
           
 void preDeactivate()
           
 
Methods inherited from class com.touchgraph.graphlayout.interaction.TGAbstractDragUI
activate, activate, deactivate
 
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
 

Constructor Detail

DragAddUI

public DragAddUI(TGPanel tgp)
Constructor with provided TGPanel tgp.

Method Detail

preActivate

public void preActivate()
Specified by:
preActivate in class TGAbstractDragUI

preDeactivate

public void preDeactivate()
Specified by:
preDeactivate in class TGAbstractDragUI

mousePressed

public void mousePressed(java.awt.event.MouseEvent e)
Specified by:
mousePressed in class TGAbstractDragUI

mouseReleased

public void mouseReleased(java.awt.event.MouseEvent e)
Specified by:
mouseReleased in class TGAbstractDragUI

mouseDragged

public void mouseDragged(java.awt.event.MouseEvent e)
Specified by:
mouseDragged in class TGAbstractDragUI

paintFirst

public void paintFirst(java.awt.Graphics g)
Specified by:
paintFirst in interface TGPaintListener

paintLast

public void paintLast(java.awt.Graphics g)
Specified by:
paintLast in interface TGPaintListener

paintAfterEdges

public void paintAfterEdges(java.awt.Graphics g)
Specified by:
paintAfterEdges in interface TGPaintListener


Copyright © 2003-2004 SourceForge. All Rights Reserved.