com.touchgraph.graphlayout.interaction
Class DragMultiselectUI

java.lang.Object
  extended by com.touchgraph.graphlayout.interaction.TGUserInterface
      extended by com.touchgraph.graphlayout.interaction.TGSelfDeactivatingUI
          extended by com.touchgraph.graphlayout.interaction.TGAbstractDragUI
              extended by com.touchgraph.graphlayout.interaction.DragMultiselectUI
All Implemented Interfaces:
TGPaintListener, EventListener
Direct Known Subclasses:
GraphMultiselectUI

public class DragMultiselectUI
extends TGAbstractDragUI
implements TGPaintListener

DragMultiselectUI contains code for selecting a group on nodes by enclosing them in a dotted box.

Version:
1.21 $Id: DragMultiselectUI.java,v 3.0 2004/07/24 13:21:21 altheim Exp $
Author:
Alexander Shapiro

Field Summary
protected  Point2D.Double mousePos
           
protected  Point2D.Double startPos
           
 
Fields inherited from class com.touchgraph.graphlayout.interaction.TGAbstractDragUI
mouseWasDragged, tgPanel
 
Constructor Summary
DragMultiselectUI(TGPanel tgp)
           
 
Method Summary
 void mouseDragged(MouseEvent e)
           
 void mousePressed(MouseEvent e)
           
 void mouseReleased(MouseEvent e)
           
 void paintAfterEdges(Graphics g)
           
 void paintFirst(Graphics g)
           
 void paintLast(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
 

Field Detail

mousePos

protected Point2D.Double mousePos

startPos

protected Point2D.Double startPos
Constructor Detail

DragMultiselectUI

public DragMultiselectUI(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(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

paintAfterEdges

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

paintLast

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


The Ceryle Project. Copyright ©2001-2007 Murray Altheim, All Rights Reserved. See LICENSE included with distribution.