|
||||||||||
| 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.GuessSelectionEventHandler
GuessSelectionEventHandler provides standard interaction for selection. Clicking
selects the object under the cursor. Shift-clicking allows multiple objects to be
selected. Dragging offers marquee selection. Pressing the delete key deletes
the selection by default.
| Field Summary | |
static String |
SELECTION_CHANGED_NOTIFICATION
|
| Constructor Summary | |
GuessSelectionEventHandler(PNode marqueeParent,
List selectableParents)
Creates a selection event handler. |
|
GuessSelectionEventHandler(PNode marqueeParent,
PNode selectableParent)
Creates a selection event handler. |
|
| Method Summary | |
void |
addSelectableParent(PNode node)
|
void |
decorateSelectedNode(PNode node)
|
Paint |
getMarqueePaint()
Indicates the color used to paint the marquee. |
float |
getMarqueePaintTransparency()
Indicates the transparency level for the interior of the marquee. |
Collection |
getSelectableParents()
|
Collection |
getSelection()
Returns a copy of the currently selected nodes. |
Collection |
getSelectionReference()
Gets a reference to the currently selected nodes. |
boolean |
getSupportDeleteKey()
|
boolean |
isDeleteKeyActive()
|
boolean |
isOptionSelection(PInputEvent pie)
|
boolean |
isSelected(PNode node)
|
void |
keyPressed(PInputEvent e)
Delete selection when delete key is pressed (if enabled) |
void |
removeSelectableParent(PNode node)
|
void |
select(Collection items)
|
void |
select(Map items)
|
void |
select(PNode node)
|
void |
setDeleteKeyActive(boolean deleteKeyActive)
Specifies if the DELETE key should delete the selection |
void |
setMarqueePaint(Paint paint)
Sets the color used to paint the marquee. |
void |
setMarqueePaintTransparency(float marqueePaintTransparency)
Sets the transparency level for the interior of the marquee. |
void |
setSelectableParent(PNode node)
|
void |
setSelectableParents(Collection c)
|
void |
switchTo(PNode selectableParent)
|
void |
undecorateSelectedNode(PNode node)
|
void |
unselect(Collection items)
|
void |
unselect(PNode node)
|
void |
unselectAll()
|
| Methods inherited from class edu.umd.cs.piccolo.event.PDragSequenceEventHandler |
getMinDragStartDistance, getMousePressedCanvasPoint, isDragging, mouseDragged, mousePressed, mouseReleased, setIsDragging, setMinDragStartDistance |
| 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 |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
public static final String SELECTION_CHANGED_NOTIFICATION
| Constructor Detail |
public GuessSelectionEventHandler(PNode marqueeParent,
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 GuessSelectionEventHandler(PNode marqueeParent,
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 switchTo(PNode selectableParent)
public void select(Collection items)
public void select(Map items)
public void select(PNode node)
public void decorateSelectedNode(PNode node)
public void unselect(Collection items)
public void unselect(PNode node)
public void undecorateSelectedNode(PNode node)
public void unselectAll()
public boolean isSelected(PNode node)
public Collection getSelection()
public Collection getSelectionReference()
public void addSelectableParent(PNode node)
public void removeSelectableParent(PNode node)
public void setSelectableParent(PNode node)
public void setSelectableParents(Collection c)
public Collection getSelectableParents()
public boolean isOptionSelection(PInputEvent pie)
public void keyPressed(PInputEvent e)
public boolean getSupportDeleteKey()
public boolean isDeleteKeyActive()
public void setDeleteKeyActive(boolean deleteKeyActive)
public Paint getMarqueePaint()
public void setMarqueePaint(Paint paint)
paint - the paint colorpublic float getMarqueePaintTransparency()
public void setMarqueePaintTransparency(float marqueePaintTransparency)
marqueePaintTransparency - The marquee paint transparency to set.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||