at.tuwien.ifs.somtoolbox.apps.viewer.handlers
Class MyRectangleSelectionEventHandler

java.lang.Object
  extended by edu.umd.cs.piccolo.event.PBasicInputEventHandler
      extended by edu.umd.cs.piccolo.event.PDragSequenceEventHandler
          extended by edu.umd.cs.piccolox.event.PSelectionEventHandler
              extended by at.tuwien.ifs.somtoolbox.apps.viewer.handlers.OrderedPSelectionEventHandler
                  extended by at.tuwien.ifs.somtoolbox.apps.viewer.handlers.MyRectangleSelectionEventHandler
All Implemented Interfaces:
edu.umd.cs.piccolo.event.PInputEventListener, EventListener

public class MyRectangleSelectionEventHandler
extends OrderedPSelectionEventHandler

EventHandler for selecting by rectangle.

Version:
$Id: MyRectangleSelectionEventHandler.java 3589 2010-05-21 10:42:01Z mayer $
Author:
Robert Neumayer

Nested Class Summary
 
Nested classes/interfaces inherited from class edu.umd.cs.piccolox.event.PSelectionEventHandler
edu.umd.cs.piccolox.event.PSelectionEventHandler.BoundsFilter
 
Field Summary
private  String selectionStatusString
           
 
Fields inherited from class at.tuwien.ifs.somtoolbox.apps.viewer.handlers.OrderedPSelectionEventHandler
currentSelection
 
Fields inherited from class edu.umd.cs.piccolox.event.PSelectionEventHandler
SELECTION_CHANGED_NOTIFICATION
 
Constructor Summary
MyRectangleSelectionEventHandler(edu.umd.cs.piccolo.PNode marqueeParent, edu.umd.cs.piccolo.PNode selectableParents)
           
 
Method Summary
 void decorateSelectedNode(edu.umd.cs.piccolo.PNode node)
           
protected  void drag(edu.umd.cs.piccolo.event.PInputEvent arg0)
           
protected  boolean isMarqueeSelection(edu.umd.cs.piccolo.event.PInputEvent arg0)
           
 void mouseClicked(edu.umd.cs.piccolo.event.PInputEvent event)
           
 void undecorateSelectedNode(edu.umd.cs.piccolo.PNode node)
           
 
Methods inherited from class at.tuwien.ifs.somtoolbox.apps.viewer.handlers.OrderedPSelectionEventHandler
alreadySelected, getSelection, init, select, select, select, startDrag, unselect, unselect, unselectAll
 
Methods inherited from class edu.umd.cs.piccolox.event.PSelectionEventHandler
addSelectableParent, computeMarqueeSelection, computeOptionMarqueeSelection, createNodeFilter, dragActivityStep, dragStandardSelection, endDrag, endMarqueeSelection, endStandardSelection, getMarqueeBounds, getMarqueePaint, getMarqueePaintTransparency, getSelectableParents, getSelectionReference, getSupportDeleteKey, initializeMarquee, initializeSelection, isDeleteKeyActive, isOptionSelection, isSelectable, isSelected, keyPressed, removeSelectableParent, setDeleteKeyActive, setMarqueePaint, setMarqueePaintTransparency, setSelectableParent, setSelectableParents, startMarqueeSelection, startOptionMarqueeSelection, startStandardOptionSelection, startStandardSelection, updateMarquee
 
Methods inherited from class edu.umd.cs.piccolo.event.PDragSequenceEventHandler
dragActivityFinalStep, dragActivityFirstStep, getDragActivity, getMinDragStartDistance, getMousePressedCanvasPoint, isDragging, mouseDragged, mousePressed, mouseReleased, paramString, setIsDragging, setMinDragStartDistance, shouldStartDragInteraction, startDragActivity, stopDragActivity
 
Methods inherited from class edu.umd.cs.piccolo.event.PBasicInputEventHandler
acceptsEvent, getEventFilter, keyboardFocusGained, keyboardFocusLost, keyReleased, keyTyped, 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

selectionStatusString

private String selectionStatusString
Constructor Detail

MyRectangleSelectionEventHandler

public MyRectangleSelectionEventHandler(edu.umd.cs.piccolo.PNode marqueeParent,
                                        edu.umd.cs.piccolo.PNode selectableParents)
Method Detail

decorateSelectedNode

public void decorateSelectedNode(edu.umd.cs.piccolo.PNode node)
Overrides:
decorateSelectedNode in class edu.umd.cs.piccolox.event.PSelectionEventHandler

undecorateSelectedNode

public void undecorateSelectedNode(edu.umd.cs.piccolo.PNode node)
Overrides:
undecorateSelectedNode in class edu.umd.cs.piccolox.event.PSelectionEventHandler

isMarqueeSelection

protected boolean isMarqueeSelection(edu.umd.cs.piccolo.event.PInputEvent arg0)
Overrides:
isMarqueeSelection in class edu.umd.cs.piccolox.event.PSelectionEventHandler

drag

protected void drag(edu.umd.cs.piccolo.event.PInputEvent arg0)
Overrides:
drag in class edu.umd.cs.piccolox.event.PSelectionEventHandler

mouseClicked

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