public class ChartDataContext extends Object
Constructor and Description |
---|
ChartDataContext(RadChartViewBase chart,
List<DataPointInfo> infos,
List<DataPoint> dataPoints,
DataPointInfo closestPoint)
Creates a new instance of the
ChartDataContext class. |
Modifier and Type | Method and Description |
---|---|
RadChartViewBase |
chart()
Returns the chart that created this context.
|
DataPointInfo |
getClosestDataPoint()
Gets an object that contains the closest data point to the tap lastLocation
and the series object to which the data point belongs.
|
List<DataPointInfo> |
getDataPointInfos()
Gets a list of data point infos each of which contains the closest data
point to the tap lastLocation and the point's corresponding series.
|
List<DataPoint> |
getDataPoints() |
Point |
getTouchLocation()
Gets the physical point (in coordinates, relative to the chart surface) this
context is associated with.
|
void |
setClosestDataPoint(DataPointInfo value)
Sets an object that contains the closest data point to the tap lastLocation
and the series object to which the data point belongs.
|
void |
setDataPointInfos(List<DataPointInfo> value)
Sets a list of data point infos each of which contains the closest data
point to the tap lastLocation and the point's corresponding series.
|
void |
setTouchLocation(Point value)
Sets the physical point (in coordinates, relative to the chart surface) this
context is associated with.
|
public ChartDataContext(RadChartViewBase chart, List<DataPointInfo> infos, List<DataPoint> dataPoints, DataPointInfo closestPoint)
ChartDataContext
class.infos
- set of data point infos.closestPoint
- the closest data point.public RadChartViewBase chart()
public Point getTouchLocation()
Point
public void setTouchLocation(Point value)
value
- the new touch point.Point
public DataPointInfo getClosestDataPoint()
DataPointInfo
public void setClosestDataPoint(DataPointInfo value)
value
- the new closest data point.DataPointInfo
public List<DataPointInfo> getDataPointInfos()
public void setDataPointInfos(List<DataPointInfo> value)
value
- the new set of data point infos.