public class ClusterSelectionEventHandler extends OrderedPSelectionEventHandler
Modifier and Type | Field and Description |
---|---|
private MapPNode |
mapPNode |
private java.util.ArrayList<GeneralUnitPNode> |
markedNodes |
private java.lang.String |
selectionStatusString |
currentSelection
Constructor and Description |
---|
ClusterSelectionEventHandler(edu.umd.cs.piccolo.PNode marqueeParent,
edu.umd.cs.piccolo.PNode selectableParents) |
Modifier and Type | Method and Description |
---|---|
void |
decorateSelectedNode(edu.umd.cs.piccolo.PNode node) |
protected void |
drag(edu.umd.cs.piccolo.event.PInputEvent e) |
protected boolean |
isMarqueeSelection(edu.umd.cs.piccolo.event.PInputEvent e) |
boolean |
isOptionSelection(edu.umd.cs.piccolo.event.PInputEvent pie) |
private void |
markCluster(edu.umd.cs.piccolo.event.PInputEvent event) |
void |
mouseClicked(edu.umd.cs.piccolo.event.PInputEvent event) |
void |
mouseReleased(edu.umd.cs.piccolo.event.PInputEvent e) |
void |
undecorateSelectedNode(edu.umd.cs.piccolo.PNode node) |
alreadySelected, getSelection, init, select, select, select, startDrag, unselect, unselect, unselectAll
addSelectableParent, computeMarqueeSelection, computeOptionMarqueeSelection, createNodeFilter, dragActivityStep, dragStandardSelection, endDrag, endMarqueeSelection, endStandardSelection, getMarqueeBounds, getMarqueePaint, getMarqueePaintTransparency, getSelectableParents, getSelectionReference, getSupportDeleteKey, initializeMarquee, initializeSelection, isDeleteKeyActive, isSelectable, isSelected, keyPressed, removeSelectableParent, setDeleteKeyActive, setMarqueePaint, setMarqueePaintTransparency, setSelectableParent, setSelectableParents, startMarqueeSelection, startOptionMarqueeSelection, startStandardOptionSelection, startStandardSelection, updateMarquee
dragActivityFinalStep, dragActivityFirstStep, getDragActivity, getMinDragStartDistance, getMousePressedCanvasPoint, isDragging, mouseDragged, mousePressed, paramString, setIsDragging, setMinDragStartDistance, shouldStartDragInteraction, startDragActivity, stopDragActivity
private java.lang.String selectionStatusString
private MapPNode mapPNode
private java.util.ArrayList<GeneralUnitPNode> markedNodes
public ClusterSelectionEventHandler(edu.umd.cs.piccolo.PNode marqueeParent, edu.umd.cs.piccolo.PNode selectableParents)
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 boolean isMarqueeSelection(edu.umd.cs.piccolo.event.PInputEvent e)
isMarqueeSelection
in class edu.umd.cs.piccolox.event.PSelectionEventHandler
protected void drag(edu.umd.cs.piccolo.event.PInputEvent e)
drag
in class edu.umd.cs.piccolox.event.PSelectionEventHandler
public void mouseReleased(edu.umd.cs.piccolo.event.PInputEvent e)
mouseReleased
in class edu.umd.cs.piccolo.event.PDragSequenceEventHandler
public void mouseClicked(edu.umd.cs.piccolo.event.PInputEvent event)
mouseClicked
in class edu.umd.cs.piccolo.event.PBasicInputEventHandler
public boolean isOptionSelection(edu.umd.cs.piccolo.event.PInputEvent pie)
isOptionSelection
in class edu.umd.cs.piccolox.event.PSelectionEventHandler
private void markCluster(edu.umd.cs.piccolo.event.PInputEvent event)