public class HoverToPick extends PickInteractionHandler
currentInstance, pickedInstances, pickWhileDragging, selectedInstances
_format
command, fixedScale, fixedTranslate, multiplyScale, multiplyTranslate
X, Y, Z
Constructor and Description |
---|
HoverToPick() |
Modifier and Type | Method and Description |
---|---|
void |
changeCursor(RecordPlot plot,
InputEvent event) |
protected void |
clearShape(RecordPlot plot) |
String |
getDescription() |
Icon |
getIcon(int size) |
boolean |
isRegionZoomable() |
void |
mouseButton1Clicked(RecordPlot plot,
MouseEvent event) |
void |
mouseEntered(RecordPlot plot,
MouseEvent event) |
void |
mouseExited(RecordPlot plot,
MouseEvent event) |
void |
mouseMoved(RecordPlot plot,
MouseEvent event) |
void |
mouseWheelMoved(RecordPlot plot,
MouseWheelEvent event) |
void |
setRecord(RecordPlot plot,
Object record) |
void |
setSelected(RecordPlot plot,
boolean selected)
Called when underlying plot is selected/unselected.
|
String |
toString() |
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.
|
void |
zoomIntoRegion(RecordPlot plot) |
canSetPickWhileDragging, info, isPickedTranslateable, isPickWhileDragging, isSupportedBy, setPickWhileDragging, setSelection, stateChanged
getInstance, getLastScale, isControlMetaDown, isMac, otherKeyPressed
altKeyPressed, altKeyReleased, ctrlKeyPressed, ctrlKeyReleased, ctrlMetaKeyPressed, ctrlMetaKeyReleased, equals, escKeyPressed, escKeyReleased, getHeight, getID, getName, getWidth, hashCode, keyTyped, metaKeyPressed, metaKeyReleased, mouseButton1DragEnded, mouseButton1Dragged, mouseButton1DragStarted, mouseButton1Pressed, mouseButton1Released, otherKeyReleased, reset, restore, save, setSize, shiftKeyPressed, shiftKeyReleased
public Icon getIcon(int size)
getIcon
in interface InteractionHandler
getIcon
in class AbstractInteractionHandler
public boolean isRegionZoomable()
public String getDescription()
getDescription
in interface InteractionHandler
getDescription
in class DefaultInteractionHandler
public void update(RecordPlot plot)
update
in interface PickHandler
update
in class PickInteractionHandler
public void zoomIntoRegion(RecordPlot plot)
public void translateToPicked(RecordPlot plot)
translateToPicked
in interface PickHandler
translateToPicked
in class PickInteractionHandler
protected void clearShape(RecordPlot plot)
clearShape
in class PickInteractionHandler
public void setSelected(RecordPlot plot, boolean selected)
DefaultWiredInteractionHandler
setSelected
in interface InteractionHandler
setSelected
in class PickInteractionHandler
public void setRecord(RecordPlot plot, Object record)
setRecord
in interface InteractionHandler
setRecord
in class PickInteractionHandler
public void changeCursor(RecordPlot plot, InputEvent event)
changeCursor
in interface InteractionHandler
changeCursor
in class DefaultInteractionHandler
public void mouseMoved(RecordPlot plot, MouseEvent event)
mouseMoved
in interface InteractionHandler
mouseMoved
in class DefaultWiredInteractionHandler
public void mouseButton1Clicked(RecordPlot plot, MouseEvent event)
mouseButton1Clicked
in interface InteractionHandler
mouseButton1Clicked
in class AbstractInteractionHandler
public void mouseEntered(RecordPlot plot, MouseEvent event)
mouseEntered
in interface InteractionHandler
mouseEntered
in class DefaultInteractionHandler
public void mouseExited(RecordPlot plot, MouseEvent event)
mouseExited
in interface InteractionHandler
mouseExited
in class DefaultWiredInteractionHandler
public void mouseWheelMoved(RecordPlot plot, MouseWheelEvent event)
mouseWheelMoved
in interface InteractionHandler
mouseWheelMoved
in class DefaultInteractionHandler
Copyright © 1996-2014 FreeHEP. All Rights Reserved.