public class IlvPickPointAction extends Object implements IlvChartServerAction
IlvChartPickInteractor DHTML
interactor, and expects the following parameters:
int)int)| Modifier and Type | Field and Description |
|---|---|
static int |
ITEM_PICKING
The constant describing the item picking mode.
|
static int |
NEAREST_ITEM_PICKING
The constant describing the nearest item picking mode.
|
static int |
NEAREST_POINT_PICKING
The constant describing the nearest point picking mode.
|
REQUEST_THREAD, SWING_EVENT_THREAD| Constructor and Description |
|---|
IlvPickPointAction()
Creates a new
PickPointAction object. |
| Modifier and Type | Method and Description |
|---|---|
void |
actionPerformed(IlvChartServerActionEvent event)
Performs the action requested from the client side.
|
protected IlvChartDataPicker |
createDataPicker(int x,
int y)
Creates a new
IlvChartDataPicker object. |
int |
getExecutionThread()
Returns the action execution thread.
|
int |
getPickingMode()
Returns the picking mode.
|
protected IlvDisplayPoint |
pickData(IlvChart chart,
int x,
int y)
Returns a display point depending on the current picking mode.
|
protected void |
pointSelected(IlvDisplayPoint pickedPoint)
Called when a display point has been picked.
|
void |
setPickingMode(int mode)
Sets the picking mode.
|
public static final int ITEM_PICKING
setPickingMode(int),
Constant Field Valuespublic static final int NEAREST_ITEM_PICKING
setPickingMode(int),
Constant Field Valuespublic static final int NEAREST_POINT_PICKING
setPickingMode(int),
Constant Field Valuespublic IlvPickPointAction()
PickPointAction object.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 NEAREST_ITEM_PICKING, the display point is
retrieved by calling IlvChart.getNearestItem(ilog.views.chart.IlvChartDataPicker, double[]).
If the mode is NEAREST_POINT_PICKING, the display point is
retrieved by calling IlvChart.getNearestPoint(ilog.views.chart.IlvChartDataPicker).
The default value is NEAREST_POINT_PICKING.ITEM_PICKING,
NEAREST_ITEM_PICKING,
NEAREST_POINT_PICKINGprotected IlvChartDataPicker createDataPicker(int x, int y)
IlvChartDataPicker object. By default it returns
an instance of IlvDefaultChartDataPicker. This method is
called by pickData(ilog.views.chart.IlvChart, int, int).IlvDefaultChartDataPickerpublic void actionPerformed(IlvChartServerActionEvent event) throws jakarta.servlet.ServletException
getExecutionThread() method.actionPerformed in interface IlvChartServerActionevent - The server action event.jakarta.servlet.ServletException - Some request parameters are missing.protected IlvDisplayPoint pickData(IlvChart chart, int x, int y)
createDataPicker(int, int),
setPickingMode(int)protected void pointSelected(IlvDisplayPoint pickedPoint)
public int getExecutionThread()
IlvChartServerAction.SWING_EVENT_THREAD.getExecutionThread in interface IlvChartServerAction© Copyright 2024 Rogue Wave Software, Inc., a Perforce company.. All Rights Reserved.