public class DragRectangleToPick extends PickInteractionHandler implements PickHandler, XYZindices
currentInstance, pickedInstances, pickWhileDragging, selectedInstances_formatcommand, fixedScale, fixedTranslate, multiplyScale, multiplyTranslateX, Y, Z| Constructor and Description |
|---|
DragRectangleToPick() |
| Modifier and Type | Method and Description |
|---|---|
void |
changeCursor(RecordPlot plot,
InputEvent event)
Called to allow the InteractionHandler to change the cursor.
|
protected void |
clearShape(RecordPlot plot) |
String |
getDescription()
Returns a one line description.
|
Icon |
getIcon(int size)
Returns associated icon
|
boolean |
isRegionZoomable() |
void |
mouseButton1Clicked(RecordPlot plot,
MouseEvent event)
Called when mouse button 1 is clicked
|
void |
mouseButton1DragEnded(RecordPlot plot,
MouseEvent event)
Called when mouse button 1 is ending a drag
|
void |
mouseButton1Dragged(RecordPlot plot,
MouseEvent event)
Called when mouse button 1 is dragged
|
void |
mouseButton1DragStarted(RecordPlot plot,
MouseEvent event)
Called when mouse button 1 is starting a drag
|
void |
mouseEntered(RecordPlot plot,
MouseEvent event)
Called when the mouse is entering the component
|
void |
setSelected(RecordPlot plot,
boolean selected)
Called when underlying plot is selected/unselected.
|
void |
setSize(RecordPlot plot,
int width,
int height)
Sets the size of the wired plot on the handler, to be able to move/resize
objects drawn by the handler.
|
String |
toString() |
void |
update(RecordPlot plot)
Performs picking action based on current cursor location if possible,
decorates the plot and informs it of newly picked objects.
|
void |
zoomIntoRegion(RecordPlot plot) |
canSetPickWhileDragging, info, isPickedTranslateable, isPickWhileDragging, isSupportedBy, setPickWhileDragging, setRecord, setSelection, stateChanged, translateToPickedmouseExited, mouseMovedgetInstance, getLastScale, isControlMetaDown, isMac, mouseWheelMoved, otherKeyPressedaltKeyPressed, altKeyReleased, ctrlKeyPressed, ctrlKeyReleased, ctrlMetaKeyPressed, ctrlMetaKeyReleased, equals, escKeyPressed, escKeyReleased, getHeight, getID, getName, getWidth, hashCode, keyTyped, metaKeyPressed, metaKeyReleased, mouseButton1Pressed, mouseButton1Released, otherKeyReleased, reset, restore, save, shiftKeyPressed, shiftKeyReleasedclone, finalize, getClass, notify, notifyAll, wait, wait, waitcanSetPickWhileDragging, isPickedTranslateable, isPickWhileDragging, setPickWhileDragging, setSelection, translateToPickedpublic void update(RecordPlot plot)
PickInteractionHandlerupdate in interface PickHandlerupdate in class PickInteractionHandlerpublic boolean isRegionZoomable()
isRegionZoomable in interface PickHandlerpublic void zoomIntoRegion(RecordPlot plot)
zoomIntoRegion in interface PickHandlerpublic void setSelected(RecordPlot plot, boolean selected)
DefaultWiredInteractionHandlersetSelected in interface InteractionHandlersetSelected in class PickInteractionHandlerpublic void setSize(RecordPlot plot, int width, int height)
InteractionHandlersetSize in interface InteractionHandlersetSize in class AbstractInteractionHandlerpublic Icon getIcon(int size)
InteractionHandlergetIcon in interface InteractionHandlergetIcon in class AbstractInteractionHandlerpublic String getDescription()
InteractionHandlergetDescription in interface InteractionHandlergetDescription in class DefaultInteractionHandlerpublic void changeCursor(RecordPlot plot, InputEvent event)
InteractionHandlerchangeCursor in interface InteractionHandlerchangeCursor in class DefaultInteractionHandlerpublic void mouseButton1Clicked(RecordPlot plot, MouseEvent event)
InteractionHandlermouseButton1Clicked in interface InteractionHandlermouseButton1Clicked in class AbstractInteractionHandlerpublic void mouseButton1DragStarted(RecordPlot plot, MouseEvent event)
InteractionHandlermouseButton1DragStarted in interface InteractionHandlermouseButton1DragStarted in class AbstractInteractionHandlerpublic void mouseButton1Dragged(RecordPlot plot, MouseEvent event)
InteractionHandlermouseButton1Dragged in interface InteractionHandlermouseButton1Dragged in class AbstractInteractionHandlerpublic void mouseButton1DragEnded(RecordPlot plot, MouseEvent event)
InteractionHandlermouseButton1DragEnded in interface InteractionHandlermouseButton1DragEnded in class AbstractInteractionHandlerpublic void mouseEntered(RecordPlot plot, MouseEvent event)
InteractionHandlermouseEntered in interface InteractionHandlermouseEntered in class DefaultInteractionHandlerprotected void clearShape(RecordPlot plot)
clearShape in class PickInteractionHandlerCopyright © 1996-2014 FreeHEP. All Rights Reserved.