public class OrderedPSelectionEventHandler
extends edu.umd.cs.piccolox.event.PSelectionEventHandler
| Modifier and Type | Field and Description |
|---|---|
protected java.util.Set<GeneralUnitPNode> |
currentSelection |
| Constructor and Description |
|---|
OrderedPSelectionEventHandler(edu.umd.cs.piccolo.PNode marqueeParent,
java.util.List selectableParents) |
OrderedPSelectionEventHandler(edu.umd.cs.piccolo.PNode marqueeParent,
edu.umd.cs.piccolo.PNode selectableParent) |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
alreadySelected(java.lang.Object o)
check if an object has already been selected or not
|
java.util.Collection<GeneralUnitPNode> |
getSelection()
Returns a copy of the currently selected nodes.
|
protected void |
init() |
void |
select(java.util.Collection items) |
void |
select(java.util.Map items) |
void |
select(edu.umd.cs.piccolo.PNode node) |
protected void |
startDrag(edu.umd.cs.piccolo.event.PInputEvent e) |
void |
unselect(java.util.Collection items) |
void |
unselect(edu.umd.cs.piccolo.PNode node) |
void |
unselectAll() |
addSelectableParent, computeMarqueeSelection, computeOptionMarqueeSelection, createNodeFilter, decorateSelectedNode, drag, dragActivityStep, dragStandardSelection, endDrag, endMarqueeSelection, endStandardSelection, getMarqueeBounds, getMarqueePaint, getMarqueePaintTransparency, getSelectableParents, getSelectionReference, getSupportDeleteKey, initializeMarquee, initializeSelection, isDeleteKeyActive, isMarqueeSelection, isOptionSelection, isSelectable, isSelected, keyPressed, removeSelectableParent, setDeleteKeyActive, setMarqueePaint, setMarqueePaintTransparency, setSelectableParent, setSelectableParents, startMarqueeSelection, startOptionMarqueeSelection, startStandardOptionSelection, startStandardSelection, undecorateSelectedNode, updateMarqueedragActivityFinalStep, dragActivityFirstStep, getDragActivity, getMinDragStartDistance, getMousePressedCanvasPoint, isDragging, mouseDragged, mousePressed, mouseReleased, paramString, setIsDragging, setMinDragStartDistance, shouldStartDragInteraction, startDragActivity, stopDragActivityacceptsEvent, getEventFilter, keyboardFocusGained, keyboardFocusLost, keyReleased, keyTyped, mouseClicked, mouseEntered, mouseExited, mouseMoved, mouseWheelRotated, mouseWheelRotatedByBlock, processEvent, setEventFilter, toStringprotected java.util.Set<GeneralUnitPNode> currentSelection
public OrderedPSelectionEventHandler(edu.umd.cs.piccolo.PNode marqueeParent,
edu.umd.cs.piccolo.PNode selectableParent)
public OrderedPSelectionEventHandler(edu.umd.cs.piccolo.PNode marqueeParent,
java.util.List selectableParents)
protected void init()
init in class edu.umd.cs.piccolox.event.PSelectionEventHandlerpublic java.util.Collection<GeneralUnitPNode> getSelection()
getSelection in class edu.umd.cs.piccolox.event.PSelectionEventHandlerpublic void select(java.util.Collection items)
select in class edu.umd.cs.piccolox.event.PSelectionEventHandlerpublic void unselect(java.util.Collection items)
unselect in class edu.umd.cs.piccolox.event.PSelectionEventHandlerprotected void startDrag(edu.umd.cs.piccolo.event.PInputEvent e)
startDrag in class edu.umd.cs.piccolox.event.PSelectionEventHandlerprotected boolean alreadySelected(java.lang.Object o)
o - - object to search for in the current selectionpublic void select(edu.umd.cs.piccolo.PNode node)
select in class edu.umd.cs.piccolox.event.PSelectionEventHandlerpublic void unselect(edu.umd.cs.piccolo.PNode node)
unselect in class edu.umd.cs.piccolox.event.PSelectionEventHandlerpublic void unselectAll()
unselectAll in class edu.umd.cs.piccolox.event.PSelectionEventHandlerpublic void select(java.util.Map items)
select in class edu.umd.cs.piccolox.event.PSelectionEventHandler