public class IlvChartPickInteractor extends IlvChartDataInteractor
isPickingEvent() method, the picked point being memorized on
a MOUSE_PRESSED event.
By default, the picked point is retrieved using the
getDisplayItem() method (see
IlvChartDataInteractor.setPickingMode(int)).
The registered name of this interactor is "Pick".
IlvChartDataInteractor,
Serialized FormIlvChartDataInteractor.DataPickerITEM_PICKING, NEARESTITEM_PICKING, NEARESTPOINT_PICKINGINTERNAL_HIGH, INTERNAL_LOW, NORMAL| Constructor and Description |
|---|
IlvChartPickInteractor()
Creates a new
IlvChartPickInteractor associated with the
Y-axis of index 0 and with the BUTTON1 mouse button. |
IlvChartPickInteractor(int yAxisIdx,
int pickButtonEventMask)
Creates a new
IlvChartPickInteractor associated with the given
axis and with the given mouse button. |
| Modifier and Type | Method and Description |
|---|---|
protected void |
abort()
Called when the interaction has been aborted.
|
protected void |
endOperation(MouseEvent event)
Called when the interaction ends.
|
protected Cursor |
getCursor()
Returned the cursor used by the interactor.
|
static String |
getLocalizedName(Locale locale)
Returns a localized name for this interactor class.
|
protected boolean |
isPickingEvent(MouseEvent event)
Returns whether the given event is a picking event.
|
protected void |
pick(IlvDisplayPoint pickedPoint)
Called when a point has been picked.
|
void |
processKeyEvent(KeyEvent event)
Handles the key events.
|
void |
processMouseEvent(MouseEvent event)
Handles the mouse events.
|
protected void |
startOperation(MouseEvent event)
Called when the interaction starts.
|
createDataPicker, getPickingMode, pickData, pickData, setPickingModeaddChartInteractionListener, chartConnected, create, create, disableEvents, drawGhost, drawGhost, enableEvents, fireChartInteractionEvent, getAWTEventMask, getChart, getCoordinateSystem, getData, getData, getEventMask, getEventMaskEx, getGhostBounds, getGhostColor, getInteractorClassByName, getLocalizedName, getPriority, getRegisteredInteractorsByName, getShortName, getXAxis, getXORColor, getYAxis, getYAxisIndex, handleExpose, has3DSupport, initGhostGraphics, interactionStarted, isAborted, isAllowDrawGhost, isConsumeEvents, isHandling, isInOperation, isXORGhost, processMouseMotionEvent, register, removeChartInteractionListener, setAborted, setAllowDrawGhost, setChart, setConsumeEvents, setCursor, setEventMask, setGhostColor, setInOperation, setPriority, setXORColor, setXORGhost, setYAxisIndex, toDisplaypublic IlvChartPickInteractor()
IlvChartPickInteractor associated with the
Y-axis of index 0 and with the BUTTON1 mouse button.public IlvChartPickInteractor(int yAxisIdx,
int pickButtonEventMask)
IlvChartPickInteractor associated with the given
axis and with the given mouse button.public static String getLocalizedName(Locale locale)
protected Cursor getCursor()
protected boolean isPickingEvent(MouseEvent event)
ChartInteractionEvent to
all the listeners.
By default, returns true if the event is a MOUSE_RELEASED
event.public void processMouseEvent(MouseEvent event)
processMouseEvent in class IlvChartInteractorpublic void processKeyEvent(KeyEvent event)
processKeyEvent in class IlvChartInteractorprotected void pick(IlvDisplayPoint pickedPoint)
chartInteractorEvent.
see #isPickingEventprotected void startOperation(MouseEvent event)
startOperation in class IlvChartInteractorevent - The event that starts the interaction.IlvChartInteractor.interactionStarted(ilog.views.chart.IlvChartInteractor, java.awt.event.MouseEvent)protected void endOperation(MouseEvent event)
endOperation in class IlvChartInteractorevent - The event that ends the interaction.protected void abort()
abort in class IlvChartInteractor© Copyright 2024 Rogue Wave Software, Inc., a Perforce company.. All Rights Reserved.