|
||||||||||
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
at.tuwien.ifs.somtoolbox.apps.viewer.handlers.OrderedPSelectionEventHandler
public class OrderedPSelectionEventHandler
A Selection Event Handler that stores the selected items in the selection (insertion) order.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class edu.umd.cs.piccolox.event.PSelectionEventHandler |
---|
edu.umd.cs.piccolox.event.PSelectionEventHandler.BoundsFilter |
Field Summary | |
---|---|
protected Set<GeneralUnitPNode> |
currentSelection
|
Fields inherited from class edu.umd.cs.piccolox.event.PSelectionEventHandler |
---|
SELECTION_CHANGED_NOTIFICATION |
Constructor Summary | |
---|---|
OrderedPSelectionEventHandler(edu.umd.cs.piccolo.PNode marqueeParent,
List selectableParents)
|
|
OrderedPSelectionEventHandler(edu.umd.cs.piccolo.PNode marqueeParent,
edu.umd.cs.piccolo.PNode selectableParent)
|
Method Summary | |
---|---|
protected boolean |
alreadySelected(Object o)
check if an object has already been selected or not |
Collection<GeneralUnitPNode> |
getSelection()
Returns a copy of the currently selected nodes. |
protected void |
init()
|
void |
select(Collection items)
|
void |
select(Map items)
|
void |
select(edu.umd.cs.piccolo.PNode node)
|
protected void |
startDrag(edu.umd.cs.piccolo.event.PInputEvent e)
|
void |
unselect(Collection items)
|
void |
unselect(edu.umd.cs.piccolo.PNode node)
|
void |
unselectAll()
|
Methods inherited from class edu.umd.cs.piccolox.event.PSelectionEventHandler |
---|
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 |
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 |
Field Detail |
---|
protected Set<GeneralUnitPNode> currentSelection
Constructor Detail |
---|
public OrderedPSelectionEventHandler(edu.umd.cs.piccolo.PNode marqueeParent, edu.umd.cs.piccolo.PNode selectableParent)
public OrderedPSelectionEventHandler(edu.umd.cs.piccolo.PNode marqueeParent, List selectableParents)
Method Detail |
---|
protected void init()
init
in class edu.umd.cs.piccolox.event.PSelectionEventHandler
public Collection<GeneralUnitPNode> getSelection()
getSelection
in class edu.umd.cs.piccolox.event.PSelectionEventHandler
public void select(Collection items)
select
in class edu.umd.cs.piccolox.event.PSelectionEventHandler
public void unselect(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(Object o)
o
- - object to search for in the current selection
public 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(Map items)
select
in class edu.umd.cs.piccolox.event.PSelectionEventHandler
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |