JIDE 3.5.15

com.jidesoft.chart.event
Class PointSelection

java.lang.Object
  extended by 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.


Constructor Summary
PointSelection()
           
PointSelection(Chartable chartable, Double distance)
           
PointSelection(Chartable chartable, Double distance, int index)
           
 
Method Summary
 Double getDistance()
          Returns the distance in pixel coordinates from the selected point
 int getIndex()
           
 Chartable getSelected()
           
 void setDistance(Double distance)
           
 void setIndex(int index)
           
 void setSelected(Chartable selected)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PointSelection

public PointSelection()

PointSelection

public PointSelection(Chartable chartable,
                      Double distance)

PointSelection

public PointSelection(Chartable chartable,
                      Double distance,
                      int index)
Method Detail

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

JIDE 3.5.15