|
|||||||||
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
Modified to use SWT paths instead of normal paths
Nested Class Summary |
---|
Nested classes/interfaces inherited from class edu.umd.cs.piccolox.event.PSelectionEventHandler |
---|
edu.umd.cs.piccolox.event.PSelectionEventHandler.BoundsFilter |
Field Summary | |
---|---|
(package private) java.awt.geom.Point2D |
canvasPressPt
|
(package private) PSWTPath |
marquee
|
(package private) edu.umd.cs.piccolo.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(edu.umd.cs.piccolo.PNode marqueeParent,
java.util.List selectableParents)
Creates a selection event handler. |
|
PSWTSelectionEventHandler(edu.umd.cs.piccolo.PNode marqueeParent,
edu.umd.cs.piccolo.PNode selectableParent)
Creates a selection event handler. |
Method Summary | |
---|---|
void |
decorateSelectedNode(edu.umd.cs.piccolo.PNode node)
|
protected void |
dragActivityStep(edu.umd.cs.piccolo.event.PInputEvent aEvent)
This gets called continuously during the drag, and is used to animate the marquee |
protected void |
endMarqueeSelection(edu.umd.cs.piccolo.event.PInputEvent e)
|
protected edu.umd.cs.piccolo.util.PBounds |
getMarqueeBounds()
|
protected void |
initializeMarquee(edu.umd.cs.piccolo.event.PInputEvent e)
|
protected void |
initializeSelection(edu.umd.cs.piccolo.event.PInputEvent pie)
|
void |
undecorateSelectedNode(edu.umd.cs.piccolo.PNode node)
|
protected void |
updateMarquee(edu.umd.cs.piccolo.event.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, 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
edu.umd.cs.piccolo.PNode marqueeParent
java.awt.geom.Point2D pressPt
java.awt.geom.Point2D canvasPressPt
Constructor Detail |
---|
public PSWTSelectionEventHandler(edu.umd.cs.piccolo.PNode marqueeParent, edu.umd.cs.piccolo.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(edu.umd.cs.piccolo.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(edu.umd.cs.piccolo.PNode node)
decorateSelectedNode
in class edu.umd.cs.piccolox.event.PSelectionEventHandler
public void undecorateSelectedNode(edu.umd.cs.piccolo.PNode node)
undecorateSelectedNode
in class edu.umd.cs.piccolox.event.PSelectionEventHandler
protected void initializeSelection(edu.umd.cs.piccolo.event.PInputEvent pie)
initializeSelection
in class edu.umd.cs.piccolox.event.PSelectionEventHandler
protected void initializeMarquee(edu.umd.cs.piccolo.event.PInputEvent e)
initializeMarquee
in class edu.umd.cs.piccolox.event.PSelectionEventHandler
protected void updateMarquee(edu.umd.cs.piccolo.event.PInputEvent pie)
updateMarquee
in class edu.umd.cs.piccolox.event.PSelectionEventHandler
protected edu.umd.cs.piccolo.util.PBounds getMarqueeBounds()
getMarqueeBounds
in class edu.umd.cs.piccolox.event.PSelectionEventHandler
protected void endMarqueeSelection(edu.umd.cs.piccolo.event.PInputEvent e)
endMarqueeSelection
in class edu.umd.cs.piccolox.event.PSelectionEventHandler
protected void dragActivityStep(edu.umd.cs.piccolo.event.PInputEvent aEvent)
dragActivityStep
in class edu.umd.cs.piccolox.event.PSelectionEventHandler
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |