public class IlvChartObjectSelectedFinder extends Object implements IlvObjectSelectedFinder, IlvChartConstants
AUTO_REFRESH, CHART, DATA_SOURCE, DATA_SOURCE_ID, DATABASE_DRIVER, DATABASE_PASSWORD, DATABASE_QUERY, DATABASE_RESULT_SET, DATABASE_URL, DATABASE_USER, FILENAME, INTERACTOR, INTERACTOR_ID, ITEM_PICKING, KEEP_VISIBLE_WINDOW, LABEL_COLUMN_MAPPING, LAYOUT, LEGEND_LAYOUT, MESSAGEBOX, NEAREST_ITEM_PICKING, NEAREST_POINT_PICKING, OVERVIEW_ACTION_NAME, PAN_ACTION_NAME, PICKING_MODE, REFRESH_DATA, SESSION_ID_PREFIX, STATE_URL, STYLE_SHEET, STYLE_SHEETS, TYPE, UPDATE_INTERVAL, X_COLUMN_MAPPING, X_PAN_ALLOWED, X_ZOOM_ALLOWED, X_ZOOM_FACTOR, Y_COLUMN_MAPPING, Y_PAN_ALLOWED, Y_ZOOM_ALLOWED, Y_ZOOM_FACTOR, ZOOM_ACTION_NAME| Constructor and Description |
|---|
IlvChartObjectSelectedFinder()
Creates a new
IlvChartObjectSelectedFinder instance. |
IlvChartObjectSelectedFinder(int mode)
Creates a new
IlvChartObjectSelectedFinder instance. |
IlvChartObjectSelectedFinder(String mode)
Creates a new
IlvChartObjectSelectedFinder instance. |
| Modifier and Type | Method and Description |
|---|---|
Object |
computeObjectSelected(IlvBasicView view,
String[] params)
Returns the clicked object from the view and the parameters of this clicked object.
|
Object |
computeObjectSelected(IlvChart chart,
String[] params,
String chartId)
Retrieves the selected object from the parameters.
|
protected IlvChartDataPicker |
createDataPicker(int x,
int y)
Create the data picker that will be used to find the picked data set point.
|
int |
getMode()
Returns the picking mode.
|
IlvDataSetPoint |
pickObject(IlvChart chart,
String[] params)
Returns the data set point picked according to the picking mode.
|
void |
setMode(int mode)
Sets the picking mode.
|
public IlvChartObjectSelectedFinder()
IlvChartObjectSelectedFinder instance.public IlvChartObjectSelectedFinder(int mode)
IlvChartObjectSelectedFinder instance.mode - The picking mode.IlvChartConstants.ITEM_PICKING,
IlvChartConstants.NEAREST_ITEM_PICKING,
IlvChartConstants.NEAREST_POINT_PICKINGpublic IlvChartObjectSelectedFinder(String mode)
IlvChartObjectSelectedFinder instance.mode - The picking mode. Valid values are "ITEM", "NEAREST_ITEM, and
"NEAREST_POINT".public void setMode(int mode)
IlvChart.getNearestPoint(picker)
method is used.IlvChart.getNearestPoint(picker, result)
method is used.IlvChart.getNearestPoint(picker)
method is used.mode - The picking mode.public int getMode()
setMode(int)public IlvDataSetPoint pickObject(IlvChart chart, String[] params)
chart - The chart from which the display point is to be retrieved.params - The parameters for this action:
null otherwise.public Object computeObjectSelected(IlvBasicView view, String[] params)
IlvObjectSelectedFinderIlvDHTMLObjectSelectInteractor subclass must define how
to access to the model from the view and what are the parameters necessary
to find the object and set a default instance of this class.computeObjectSelected in interface IlvObjectSelectedFinderview - The view that contains the object clicked.params - An array of parameters.public Object computeObjectSelected(IlvChart chart, String[] params, String chartId)
chart - The chart instance.params - The array of parameters.chartId - The ID of the JSF chart view component.null.protected IlvChartDataPicker createDataPicker(int x, int y)
Create the data picker that will be used to find the picked data set point.
This implementation returns an IlvDefaultChartDataPicker instance.
x - x coordinate of the point clicked on the image.y - y coordinate of the point clicked on the image.© Copyright 2024 Rogue Wave Software, Inc., a Perforce company.. All Rights Reserved.