|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.umd.cs.piccolo.event.PBasicInputEventHandler
edu.umd.cs.piccolo.event.PDragSequenceEventHandler
edu.umd.cs.piccolox.event.PSelectionEventHandler
edu.umd.cs.piccolox.swt.PSWTSelectionEventHandler
public class PSWTSelectionEventHandler
Selection event handler modified to use SWT paths instead of normal paths.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class edu.umd.cs.piccolox.event.PSelectionEventHandler |
---|
PSelectionEventHandler.BoundsFilter |
Field Summary | |
---|---|
(package private) java.awt.geom.Point2D |
canvasPressPt
|
(package private) PSWTPath |
marquee
|
(package private) PNode |
marqueeParent
|
(package private) java.awt.geom.Point2D |
pressPt
|
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)
Modifies the provided node so that it is displayed as selected. |
protected void |
dragActivityStep(PInputEvent aEvent)
|
protected void |
endMarqueeSelection(PInputEvent e)
|
protected PBounds |
getMarqueeBounds()
|
protected void |
initializeMarquee(PInputEvent e)
|
protected void |
initializeSelection(PInputEvent pie)
|
void |
undecorateSelectedNode(PNode node)
Undoes any modifications to the provided node so that it is not displayed as selected. |
protected void |
updateMarquee(PInputEvent pie)
|
Methods inherited from class edu.umd.cs.piccolo.event.PDragSequenceEventHandler |
---|
dragActivityFinalStep, dragActivityFirstStep, getDragActivity, getMinDragStartDistance, getMousePressedCanvasPoint, isDragging, mouseDragged, mousePressed, mouseReleased, 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, paramString, processEvent, setEventFilter |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
PSWTPath marquee
PNode marqueeParent
java.awt.geom.Point2D pressPt
java.awt.geom.Point2D canvasPressPt
Constructor Detail |
---|
public PSWTSelectionEventHandler(PNode marqueeParent, PNode selectableParent)
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.public PSWTSelectionEventHandler(PNode marqueeParent, java.util.List selectableParents)
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 |
---|
public void decorateSelectedNode(PNode node)
decorateSelectedNode
in class PSelectionEventHandler
node
- node to be decoratedpublic void undecorateSelectedNode(PNode node)
undecorateSelectedNode
in class PSelectionEventHandler
node
- node to be undecoratedprotected void initializeSelection(PInputEvent pie)
initializeSelection
in class PSelectionEventHandler
protected void initializeMarquee(PInputEvent e)
initializeMarquee
in class PSelectionEventHandler
protected void updateMarquee(PInputEvent pie)
updateMarquee
in class PSelectionEventHandler
protected PBounds getMarqueeBounds()
getMarqueeBounds
in class PSelectionEventHandler
protected void endMarqueeSelection(PInputEvent e)
endMarqueeSelection
in class PSelectionEventHandler
protected void dragActivityStep(PInputEvent aEvent)
dragActivityStep
in class PSelectionEventHandler
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |