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, updateMarquee
dragActivityFinalStep, dragActivityFirstStep, getDragActivity, getMinDragStartDistance, getMousePressedCanvasPoint, isDragging, mouseDragged, mousePressed, mouseReleased, paramString, setIsDragging, setMinDragStartDistance, shouldStartDragInteraction, startDragActivity, stopDragActivity
acceptsEvent, getEventFilter, keyboardFocusGained, keyboardFocusLost, keyReleased, keyTyped, mouseClicked, mouseEntered, mouseExited, mouseMoved, mouseWheelRotated, mouseWheelRotatedByBlock, processEvent, setEventFilter, toString
protected 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.PSelectionEventHandler
public java.util.Collection<GeneralUnitPNode> getSelection()
getSelection
in class edu.umd.cs.piccolox.event.PSelectionEventHandler
public void select(java.util.Collection items)
select
in class edu.umd.cs.piccolox.event.PSelectionEventHandler
public void unselect(java.util.Collection items)
unselect
in class edu.umd.cs.piccolox.event.PSelectionEventHandler
protected void startDrag(edu.umd.cs.piccolo.event.PInputEvent e)
startDrag
in class edu.umd.cs.piccolox.event.PSelectionEventHandler
protected 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.PSelectionEventHandler
public void unselect(edu.umd.cs.piccolo.PNode node)
unselect
in class edu.umd.cs.piccolox.event.PSelectionEventHandler
public void unselectAll()
unselectAll
in class edu.umd.cs.piccolox.event.PSelectionEventHandler
public void select(java.util.Map items)
select
in class edu.umd.cs.piccolox.event.PSelectionEventHandler