org.ceryle.graph
Class GraphMultiselectUI

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
                  extended by org.ceryle.graph.GraphMultiselectUI
All Implemented Interfaces:
TGPaintListener, EventListener

public class GraphMultiselectUI
extends DragMultiselectUI
implements TGPaintListener

GraphMultiselectUI extends GraphMultiselectUI, for selecting a group of GraphNodes by enclosing them in a dotted box.

Version:
$Id: GraphMultiselectUI.java,v 3.4 2007-06-15 12:09:23 altheim Exp $
Author:
Murray Altheim
See Also:
DragMultiselectUI

Field Summary
 
Fields inherited from class com.touchgraph.graphlayout.interaction.DragMultiselectUI
mousePos, startPos
 
Fields inherited from class com.touchgraph.graphlayout.interaction.TGAbstractDragUI
mouseWasDragged, tgPanel
 
Constructor Summary
GraphMultiselectUI(GraphPanel gpanel)
          Constructor with the GraphPanel on which to operate.
 
Method Summary
 void mouseDragged(MouseEvent e)
           
 void mousePressed(MouseEvent e)
          Catches this message and passes it on, but not before informing the GraphPanel of the beginning of a mouse drag.
 void mouseReleased(MouseEvent e)
          Catches this message and passes it on, but not before informing the GraphPanel of the end of a mouse drag.
 void paintLast(Graphics g)
          Extends the superclass' method to use Java 2D's dashed lines.
 
Methods inherited from class com.touchgraph.graphlayout.interaction.DragMultiselectUI
paintAfterEdges, paintFirst, preActivate, 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
 
Methods inherited from interface com.touchgraph.graphlayout.TGPaintListener
paintAfterEdges, paintFirst
 

Constructor Detail

GraphMultiselectUI

public GraphMultiselectUI(GraphPanel gpanel)
Constructor with the GraphPanel on which to operate.

Method Detail

mousePressed

public void mousePressed(MouseEvent e)
Catches this message and passes it on, but not before informing the GraphPanel of the beginning of a mouse drag.

Overrides:
mousePressed in class DragMultiselectUI

mouseReleased

public void mouseReleased(MouseEvent e)
Catches this message and passes it on, but not before informing the GraphPanel of the end of a mouse drag.

Overrides:
mouseReleased in class DragMultiselectUI

mouseDragged

public void mouseDragged(MouseEvent e)
Overrides:
mouseDragged in class DragMultiselectUI

paintLast

public void paintLast(Graphics g)
Extends the superclass' method to use Java 2D's dashed lines.

Specified by:
paintLast in interface TGPaintListener
Overrides:
paintLast in class DragMultiselectUI


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