edu.umd.cs.piccolox.swt
Class PSWTSelectionEventHandler

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 edu.umd.cs.piccolox.swt.PSWTSelectionEventHandler
All Implemented Interfaces:
PInputEventListener, java.util.EventListener

public class PSWTSelectionEventHandler
extends PSelectionEventHandler

Modified to use SWT paths instead of normal paths

Version:
1.0
Author:
Lance Good

Nested Class Summary
 
Nested classes/interfaces inherited from class edu.umd.cs.piccolox.event.PSelectionEventHandler
PSelectionEventHandler.BoundsFilter
 
Field Summary
 
Fields inherited from class edu.umd.cs.piccolox.event.PSelectionEventHandler
SELECTION_CHANGED_NOTIFICATION
 
Constructor Summary
PSWTSelectionEventHandler(PNode marqueeParent, java.util.List selectableParents)
          Creates a selection event handler.
PSWTSelectionEventHandler(PNode marqueeParent, PNode selectableParent)
          Creates a selection event handler.
 
Method Summary
 void decorateSelectedNode(PNode node)
           
protected  void dragActivityStep(PInputEvent aEvent)
          This gets called continuously during the drag, and is used to animate the marquee
protected  void endMarqueeSelection(PInputEvent e)
           
protected  PBounds getMarqueeBounds()
           
protected  void initializeMarquee(PInputEvent e)
           
protected  void initializeSelection(PInputEvent pie)
           
 void undecorateSelectedNode(PNode node)
           
protected  void updateMarquee(PInputEvent pie)
           
 
Methods inherited from class edu.umd.cs.piccolox.event.PSelectionEventHandler
addSelectableParent, computeMarqueeSelection, computeOptionMarqueeSelection, createNodeFilter, drag, dragStandardSelection, endDrag, endStandardSelection, getMarqueePaint, getMarqueePaintTransparency, getSelectableParents, getSelection, getSelectionReference, getSupportDeleteKey, init, isDeleteKeyActive, isMarqueeSelection, isOptionSelection, isSelectable, isSelected, keyPressed, removeSelectableParent, select, select, select, setDeleteKeyActive, setMarqueePaint, setMarqueePaintTransparency, setSelectableParent, setSelectableParents, startDrag, startMarqueeSelection, startOptionMarqueeSelection, startStandardOptionSelection, startStandardSelection, unselect, unselect, unselectAll
 
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, 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
 

Constructor Detail

PSWTSelectionEventHandler

public PSWTSelectionEventHandler(PNode marqueeParent,
                                 PNode selectableParent)
Creates a selection event handler.

Parameters:
marqueeParent - The node to which the event handler dynamically adds a marquee (temporarily) to represent the area being selected.
selectableParent - The node whose children will be selected by this event handler.

PSWTSelectionEventHandler

public PSWTSelectionEventHandler(PNode marqueeParent,
                                 java.util.List selectableParents)
Creates a selection event handler.

Parameters:
marqueeParent - The node to which the event handler dynamically adds a marquee (temporarily) to represent the area being selected.
selectableParents - A list of nodes whose children will be selected by this event handler.
Method Detail

decorateSelectedNode

public void decorateSelectedNode(PNode node)
Overrides:
decorateSelectedNode in class PSelectionEventHandler

undecorateSelectedNode

public void undecorateSelectedNode(PNode node)
Overrides:
undecorateSelectedNode in class PSelectionEventHandler

initializeSelection

protected void initializeSelection(PInputEvent pie)
Overrides:
initializeSelection in class PSelectionEventHandler

initializeMarquee

protected void initializeMarquee(PInputEvent e)
Overrides:
initializeMarquee in class PSelectionEventHandler

updateMarquee

protected void updateMarquee(PInputEvent pie)
Overrides:
updateMarquee in class PSelectionEventHandler

getMarqueeBounds

protected PBounds getMarqueeBounds()
Overrides:
getMarqueeBounds in class PSelectionEventHandler

endMarqueeSelection

protected void endMarqueeSelection(PInputEvent e)
Overrides:
endMarqueeSelection in class PSelectionEventHandler

dragActivityStep

protected void dragActivityStep(PInputEvent aEvent)
This gets called continuously during the drag, and is used to animate the marquee

Overrides:
dragActivityStep in class PSelectionEventHandler


Copyright © 2008 by University of Maryland, College Park, MD 20742, USA All rights reserved.