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_PICKING
protected 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)
.IlvDefaultChartDataPicker
public void actionPerformed(IlvChartServerActionEvent event) throws javax.servlet.ServletException
getExecutionThread()
method.actionPerformed
in interface IlvChartServerAction
event
- The server action event.javax.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 Rogue Wave Software, Inc. 1997, 2018. All Rights Reserved.