com.jidesoft.chart.event
Class PointSelection
java.lang.Object
com.jidesoft.chart.event.PointSelection
public class PointSelection
- extends Object
A value class to indicate which Chartable
object shown by the Chart has been selected.
PointSelection
public PointSelection()
PointSelection
public PointSelection(Chartable chartable,
Double distance)
PointSelection
public PointSelection(Chartable chartable,
Double distance,
int index)
getSelected
public Chartable getSelected()
setSelected
public void setSelected(Chartable selected)
getDistance
public Double getDistance()
- Returns the distance in pixel coordinates from the selected point
- Returns:
- The distance in pixel coordinates from the selected point
setDistance
public void setDistance(Double distance)
getIndex
public int getIndex()
setIndex
public void setIndex(int index)
toString
public String toString()
- Overrides:
toString
in class Object