anl.aida.viz
Class EdgeSelectionHandler

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

public class EdgeSelectionHandler
extends edu.umd.cs.piccolo.event.PBasicInputEventHandler

Date: Mar 2, 2009 10:23:57 AM


Field Summary
private  java.awt.Paint defaultNodePaint
           
private  edu.umd.cs.piccolo.nodes.PPath edge
           
private  edu.umd.cs.piccolo.PLayer edgeLayer
           
private  edu.umd.cs.piccolo.PLayer nodeLayer
           
private  java.awt.Paint selectedEdgePaint
           
private  java.awt.Paint selectedNodePaint
           
private  SelectionManager<DocumentContainer> selection
           
private  edu.umd.cs.piccolo.PLayer selectionLayer
           
 
Constructor Summary
EdgeSelectionHandler(java.awt.Paint defaultNodePaint, edu.umd.cs.piccolo.PLayer nodeLayer, edu.umd.cs.piccolo.PLayer edgeLayer)
           
 
Method Summary
 void addSelectionManager(SelectionManager<DocumentContainer> selection)
           
private  java.lang.String createTooltipText(edu.umd.cs.piccolo.nodes.PPath edge, edu.umd.cs.piccolo.nodes.PPath node1, edu.umd.cs.piccolo.nodes.PPath node2)
           
 void mousePressed(edu.umd.cs.piccolo.event.PInputEvent evt)
           
 void mouseReleased(edu.umd.cs.piccolo.event.PInputEvent evt)
           
 
Methods inherited from class edu.umd.cs.piccolo.event.PBasicInputEventHandler
acceptsEvent, getEventFilter, keyboardFocusGained, keyboardFocusLost, keyPressed, keyReleased, keyTyped, mouseClicked, mouseDragged, mouseEntered, mouseExited, mouseMoved, mouseWheelRotated, mouseWheelRotatedByBlock, paramString, processEvent, setEventFilter, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

edge

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

selectedEdgePaint

private java.awt.Paint selectedEdgePaint

selectedNodePaint

private java.awt.Paint selectedNodePaint

nodeLayer

private edu.umd.cs.piccolo.PLayer nodeLayer

edgeLayer

private edu.umd.cs.piccolo.PLayer edgeLayer

selectionLayer

private edu.umd.cs.piccolo.PLayer selectionLayer

defaultNodePaint

private java.awt.Paint defaultNodePaint

selection

private SelectionManager<DocumentContainer> selection
Constructor Detail

EdgeSelectionHandler

public EdgeSelectionHandler(java.awt.Paint defaultNodePaint,
                            edu.umd.cs.piccolo.PLayer nodeLayer,
                            edu.umd.cs.piccolo.PLayer edgeLayer)
Method Detail

mousePressed

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

createTooltipText

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

mouseReleased

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

addSelectionManager

public void addSelectionManager(SelectionManager<DocumentContainer> selection)