public abstract class PickInteractionHandler extends DefaultWiredInteractionHandler implements PickHandler, XYZindices, ChangeListener
Modifier and Type | Field and Description |
---|---|
protected hep.graphics.heprep.HepRepInstance |
currentInstance |
protected Set |
pickedInstances |
protected boolean |
pickWhileDragging |
protected Set |
selectedInstances |
_format
command, fixedScale, fixedTranslate, multiplyScale, multiplyTranslate
X, 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) |
void |
setPickWhileDragging(boolean state) |
void |
setRecord(RecordPlot plot,
Object record) |
void |
setSelected(RecordPlot plot,
boolean selected)
Called when underlying plot is selected/unselected.
|
void |
setSelection(RecordPlot plot,
Set<hep.graphics.heprep.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, mouseMoved
changeCursor, getDescription, getInstance, getLastScale, isControlMetaDown, isMac, mouseEntered, mouseWheelMoved, otherKeyPressed
altKeyPressed, 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, shiftKeyReleased
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
isRegionZoomable, zoomIntoRegion
protected transient hep.graphics.heprep.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)
isSupportedBy
in interface InteractionHandler
isSupportedBy
in class DefaultInteractionHandler
public void setRecord(RecordPlot plot, Object record)
setRecord
in interface InteractionHandler
setRecord
in class AbstractInteractionHandler
public void setSelected(RecordPlot plot, boolean selected)
DefaultWiredInteractionHandler
setSelected
in interface InteractionHandler
setSelected
in class DefaultWiredInteractionHandler
public void setSelection(RecordPlot plot, Set<hep.graphics.heprep.HepRepInstance> selectedInstances)
setSelection
in interface PickHandler
public void update(RecordPlot plot)
update
in interface PickHandler
public boolean canSetPickWhileDragging()
canSetPickWhileDragging
in interface PickHandler
public void setPickWhileDragging(boolean state)
setPickWhileDragging
in interface PickHandler
public boolean isPickWhileDragging()
isPickWhileDragging
in interface PickHandler
public boolean isPickedTranslateable(RecordPlot plot)
isPickedTranslateable
in interface PickHandler
public void translateToPicked(RecordPlot plot)
translateToPicked
in interface PickHandler
protected abstract void clearShape(RecordPlot plot)
public void stateChanged(ChangeEvent e)
stateChanged
in interface ChangeListener
Copyright © 1996-2014 FreeHEP. All Rights Reserved.