public abstract class IlvChartDataInteractor extends IlvChartInteractor
IlvChartDataPicker
.IlvChartInteractor
,
Serialized FormModifier and Type | Class and Description |
---|---|
class |
IlvChartDataInteractor.DataPicker
An
IlvDefaultChartDataPicker subclass which filters the
renderers according to the interactor y-axis index. |
Modifier and Type | Field and Description |
---|---|
static int |
ITEM_PICKING
The constant describing the precise item picking mode.
|
static int |
NEARESTITEM_PICKING
The constant describing the nearest item picking mode.
|
static int |
NEARESTPOINT_PICKING
The constant describing the nearest point picking mode.
|
INTERNAL_HIGH, INTERNAL_LOW, NORMAL
Constructor and Description |
---|
IlvChartDataInteractor(int yAxisIndex,
int eventMask)
Creates a new
IlvChartDataInteractor object associated
with the given axis with the given action key event mask. |
Modifier and Type | Method and Description |
---|---|
protected IlvChartDataPicker |
createDataPicker(MouseEvent event)
Creates a new
IlvChartDataPicker object. |
int |
getPickingMode()
Returns the picking mode.
|
protected IlvDisplayPoint |
pickData(IlvChartDataPicker picker)
Returns a display point depending on the given data picker and the
current picking mode.
|
protected IlvDisplayPoint |
pickData(MouseEvent event)
Returns a display point corresponding to this picking event
that fulfills the default data picker criteria.
|
void |
setPickingMode(int mode)
Sets the interactor picking mode.
|
abort, addChartInteractionListener, chartConnected, create, create, disableEvents, drawGhost, drawGhost, enableEvents, endOperation, 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, processKeyEvent, processMouseEvent, processMouseMotionEvent, register, removeChartInteractionListener, setAborted, setAllowDrawGhost, setChart, setConsumeEvents, setCursor, setEventMask, setGhostColor, setInOperation, setPriority, setXORColor, setXORGhost, setYAxisIndex, startOperation, toDisplay
public static final int ITEM_PICKING
public static final int NEARESTITEM_PICKING
setPickingMode(int)
,
IlvChart.getNearestItem(ilog.views.chart.IlvChartDataPicker, double[])
,
Constant Field Valuespublic static final int NEARESTPOINT_PICKING
public IlvChartDataInteractor(int yAxisIndex, int eventMask)
IlvChartDataInteractor
object associated
with the given axis with the given action key event mask.public final int getPickingMode()
setPickingMode(int)
public void setPickingMode(int mode)
pickData()
method.
If the mode is ITEM_PICKING
, the display point is retrieved
by calling IlvChart.getDisplayItem(ilog.views.chart.IlvChartDataPicker)
.
If the mode is NEARESTITEM_PICKING
, the display point is
retrieved by calling IlvChart.getNearestItem(ilog.views.chart.IlvChartDataPicker, double[])
.
If the mode is NEARESTPOINT_PICKING
, the display point is
retrieved by calling IlvChart.getNearestPoint(ilog.views.chart.IlvChartDataPicker)
.
The default value is NEARESTPOINT_PICKING
.protected IlvChartDataPicker createDataPicker(MouseEvent event)
IlvChartDataPicker
object. By default returns
an instance of IlvChartDataInteractor.DataPicker
. This
method is called by pickData(MouseEvent)
.IlvDefaultChartDataPicker
protected final IlvDisplayPoint pickData(MouseEvent event)
pickData(IlvChartDataPicker)
.protected IlvDisplayPoint pickData(IlvChartDataPicker picker)
IlvChartDataPicker
,
setPickingMode(int)
© Copyright Rogue Wave Software, Inc. 1997, 2018. All Rights Reserved.