public abstract class PickInteractionHandler extends DefaultWiredInteractionHandler implements PickHandler, XYZindices, ChangeListener
| Modifier and Type | Field and Description |
|---|---|
protected HepRepInstance |
currentInstance |
protected Set |
pickedInstances |
protected boolean |
pickWhileDragging |
protected Set |
selectedInstances |
_formatcommand, fixedScale, fixedTranslate, multiplyScale, multiplyTranslateX, Y, Z| Constructor and Description |
|---|
PickInteractionHandler(String name,
boolean pickWhileDragging) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canSetPickWhileDragging() |
protected abstract void |
clearShape(RecordPlot plot) |
protected HepRepInfoPanel |
info()
Deprecated.
|
boolean |
isPickedTranslateable(RecordPlot plot) |
boolean |
isPickWhileDragging() |
boolean |
isSupportedBy(GraphicsPanel panel)
Returns true if this Interaction Handler is supported by this Graphics
Panel.
|
void |
setPickWhileDragging(boolean state) |
void |
setRecord(RecordPlot plot,
Object record)
Sets the Record which is displayed in the GraphicsPanel.
|
void |
setSelected(RecordPlot plot,
boolean selected)
Called when underlying plot is selected/unselected.
|
void |
setSelection(RecordPlot plot,
Set<HepRepInstance> selectedInstances)
Informs the plot of new set of picked instances.
|
void |
stateChanged(ChangeEvent e)
Updates plot in response to picking options changes.
|
void |
translateToPicked(RecordPlot plot) |
void |
update(RecordPlot plot)
Performs picking action based on current cursor location if possible,
decorates the plot and informs it of newly picked objects.
|
mouseExited, mouseMovedchangeCursor, getDescription, getInstance, getLastScale, isControlMetaDown, isMac, mouseEntered, mouseWheelMoved, otherKeyPressedaltKeyPressed, altKeyReleased, ctrlKeyPressed, ctrlKeyReleased, ctrlMetaKeyPressed, ctrlMetaKeyReleased, equals, escKeyPressed, escKeyReleased, getHeight, getIcon, getID, getName, getWidth, hashCode, keyTyped, metaKeyPressed, metaKeyReleased, mouseButton1Clicked, mouseButton1DragEnded, mouseButton1Dragged, mouseButton1DragStarted, mouseButton1Pressed, mouseButton1Released, otherKeyReleased, reset, restore, save, setSize, shiftKeyPressed, shiftKeyReleasedclone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitisRegionZoomable, zoomIntoRegionprotected transient HepRepInstance currentInstance
protected transient Set pickedInstances
protected transient Set selectedInstances
protected boolean pickWhileDragging
public PickInteractionHandler(String name, boolean pickWhileDragging)
@Deprecated protected HepRepInfoPanel info()
public boolean isSupportedBy(GraphicsPanel panel)
InteractionHandlerisSupportedBy in interface InteractionHandlerisSupportedBy in class DefaultInteractionHandlerpublic void setRecord(RecordPlot plot, Object record)
InteractionHandlersetRecord in interface InteractionHandlersetRecord in class AbstractInteractionHandlerpublic void setSelected(RecordPlot plot, boolean selected)
DefaultWiredInteractionHandlersetSelected in interface InteractionHandlersetSelected in class DefaultWiredInteractionHandlerpublic void setSelection(RecordPlot plot, Set<HepRepInstance> selectedInstances)
setSelection in interface PickHandlerpublic void update(RecordPlot plot)
update in interface PickHandlerpublic boolean canSetPickWhileDragging()
canSetPickWhileDragging in interface PickHandlerpublic void setPickWhileDragging(boolean state)
setPickWhileDragging in interface PickHandlerpublic boolean isPickWhileDragging()
isPickWhileDragging in interface PickHandlerpublic boolean isPickedTranslateable(RecordPlot plot)
isPickedTranslateable in interface PickHandlerpublic void translateToPicked(RecordPlot plot)
translateToPicked in interface PickHandlerprotected abstract void clearShape(RecordPlot plot)
public void stateChanged(ChangeEvent e)
stateChanged in interface ChangeListenerCopyright © 1996-2014 FreeHEP. All Rights Reserved.