public class IlvDefaultChartDataPicker extends Object implements IlvChartDataPicker
Constructor and Description |
---|
IlvDefaultChartDataPicker(int pickX,
int pickY,
int pickDist)
Creates a default data picker with the specified picking point and
picking distance.
|
Modifier and Type | Method and Description |
---|---|
boolean |
accept(IlvChartRenderer renderer)
Tells whether the specified renderer must be considered, when
searching among several renderers.
|
double |
computeDistance(double x1,
double y1,
double x2,
double y2)
Returns the Euclidian distance between two points.
|
int |
getPickDistance()
Returns the picking distance.
|
int |
getPickX()
Returns the x-coordinate of the picking point.
|
int |
getPickY()
Returns the y-coordinate of the picking point.
|
boolean |
useDataSpace()
Tells whether the picker computes the distance in the data space.
|
public IlvDefaultChartDataPicker(int pickX, int pickY, int pickDist)
public int getPickX()
getPickX
in interface IlvChartDataPicker
public int getPickY()
getPickY
in interface IlvChartDataPicker
public int getPickDistance()
getPickDistance
in interface IlvChartDataPicker
public boolean useDataSpace()
false
, as this picker computes an Euclidian
distance in projected space.useDataSpace
in interface IlvChartDataPicker
IlvChartDataPicker.computeDistance(double, double, double, double)
public boolean accept(IlvChartRenderer renderer)
true
.accept
in interface IlvChartDataPicker
public double computeDistance(double x1, double y1, double x2, double y2)
computeDistance
in interface IlvChartDataPicker
© Copyright Rogue Wave Software, Inc. 1997, 2018. All Rights Reserved.