anl.aida.viz
Class NodeDragSelectionHandler

java.lang.Object
  extended by edu.umd.cs.piccolo.event.PBasicInputEventHandler
      extended by edu.umd.cs.piccolo.event.PDragSequenceEventHandler
          extended by anl.aida.viz.NodeDragSelectionHandler
All Implemented Interfaces:
edu.umd.cs.piccolo.event.PInputEventListener, java.util.EventListener

public class NodeDragSelectionHandler
extends edu.umd.cs.piccolo.event.PDragSequenceEventHandler


Field Summary
private  Canvas2D canvas
           
private  java.awt.Paint defaultNodePaint
           
private  edu.umd.cs.piccolo.PLayer edgeLayer
           
private  Layout2D<TermNode> layout
           
private  edu.umd.cs.piccolo.nodes.PPath node
           
private  edu.umd.cs.piccolo.PLayer nodeLayer
           
private  java.awt.Paint paint
           
private  java.util.List<edu.umd.cs.piccolo.nodes.PPath> selectedEdges
           
private  java.awt.Paint selectedNodePaint
           
private  java.util.List<edu.umd.cs.piccolo.nodes.PPath> selectedNodes
           
private  java.awt.Paint selectedPathPaint
           
private  SelectionManager<DocumentContainer> selection
           
private  edu.umd.cs.piccolo.PLayer selectionLayer
           
 
Constructor Summary
NodeDragSelectionHandler(java.awt.Paint defNodePaint, edu.umd.cs.piccolo.PLayer nodeLayer, edu.umd.cs.piccolo.PLayer edgeLayer, Layout2D<TermNode> layout)
           
 
Method Summary
 void addSelectionManager(SelectionManager<DocumentContainer> selection)
           
private  java.lang.String createTooltipText(edu.umd.cs.piccolo.nodes.PPath node1)
           
 void drag(edu.umd.cs.piccolo.event.PInputEvent e)
           
 void endDrag(edu.umd.cs.piccolo.event.PInputEvent e)
           
 void mousePressed(edu.umd.cs.piccolo.event.PInputEvent evt)
           
 void mouseReleased(edu.umd.cs.piccolo.event.PInputEvent evt)
           
private  void selectPaths()
           
 void startDrag(edu.umd.cs.piccolo.event.PInputEvent e)
           
 
Methods inherited from class edu.umd.cs.piccolo.event.PDragSequenceEventHandler
dragActivityFinalStep, dragActivityFirstStep, dragActivityStep, getDragActivity, getMinDragStartDistance, getMousePressedCanvasPoint, isDragging, mouseDragged, paramString, setIsDragging, setMinDragStartDistance, shouldStartDragInteraction, startDragActivity, stopDragActivity
 
Methods inherited from class edu.umd.cs.piccolo.event.PBasicInputEventHandler
acceptsEvent, getEventFilter, keyboardFocusGained, keyboardFocusLost, keyPressed, keyReleased, keyTyped, mouseClicked, mouseEntered, mouseExited, mouseMoved, mouseWheelRotated, mouseWheelRotatedByBlock, processEvent, setEventFilter, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

paint

private java.awt.Paint paint

selectedNodePaint

private java.awt.Paint selectedNodePaint

selectedPathPaint

private java.awt.Paint selectedPathPaint

selectedNodes

private java.util.List<edu.umd.cs.piccolo.nodes.PPath> selectedNodes

selectedEdges

private java.util.List<edu.umd.cs.piccolo.nodes.PPath> selectedEdges

nodeLayer

private edu.umd.cs.piccolo.PLayer nodeLayer

edgeLayer

private edu.umd.cs.piccolo.PLayer edgeLayer

node

private edu.umd.cs.piccolo.nodes.PPath node

defaultNodePaint

private java.awt.Paint defaultNodePaint

selectionLayer

private edu.umd.cs.piccolo.PLayer selectionLayer

canvas

private Canvas2D canvas

selection

private SelectionManager<DocumentContainer> selection

layout

private Layout2D<TermNode> layout
Constructor Detail

NodeDragSelectionHandler

public NodeDragSelectionHandler(java.awt.Paint defNodePaint,
                                edu.umd.cs.piccolo.PLayer nodeLayer,
                                edu.umd.cs.piccolo.PLayer edgeLayer,
                                Layout2D<TermNode> layout)
Method Detail

mousePressed

public void mousePressed(edu.umd.cs.piccolo.event.PInputEvent evt)
Overrides:
mousePressed in class edu.umd.cs.piccolo.event.PDragSequenceEventHandler

selectPaths

private void selectPaths()

createTooltipText

private java.lang.String createTooltipText(edu.umd.cs.piccolo.nodes.PPath node1)

mouseReleased

public void mouseReleased(edu.umd.cs.piccolo.event.PInputEvent evt)
Overrides:
mouseReleased in class edu.umd.cs.piccolo.event.PDragSequenceEventHandler

startDrag

public void startDrag(edu.umd.cs.piccolo.event.PInputEvent e)
Overrides:
startDrag in class edu.umd.cs.piccolo.event.PDragSequenceEventHandler

endDrag

public void endDrag(edu.umd.cs.piccolo.event.PInputEvent e)
Overrides:
endDrag in class edu.umd.cs.piccolo.event.PDragSequenceEventHandler

drag

public void drag(edu.umd.cs.piccolo.event.PInputEvent e)
Overrides:
drag in class edu.umd.cs.piccolo.event.PDragSequenceEventHandler

addSelectionManager

public void addSelectionManager(SelectionManager<DocumentContainer> selection)