com.jidesoft.chart.event
Class PointDescriptor
java.lang.Object
com.jidesoft.chart.event.PointDescriptor
public class PointDescriptor
- extends Object
Provides a description of a Chartable point and the shape that was used to render it.
PointDescriptor
public PointDescriptor(Chartable chartable,
int pointIndex,
ChartModel model)
getChartable
public Chartable getChartable()
getModel
public ChartModel getModel()
getShape
public Shape getShape()
setShape
public void setShape(Shape shape)
getIndex
public int getIndex()
- Returns:
- the index of the Chartable in the ChartModel
getSubPoint
public PointDescriptor getSubPoint()
setSubPoint
public void setSubPoint(PointDescriptor subPoint)
getModelXSum
public double getModelXSum()
- Returns:
- the sum of the x points in the model for which the chartable is a member
getModelYSum
public double getModelYSum()
- Returns:
- the sum of the y points in the model for which the chartable is a member
getChartableYPercent
public double getChartableYPercent()
- A convenience method to return the percentage of the model total for the chartable's y coordinate
- Returns:
- the percentage of the model total for the chartable's y coordinate
getChartableXPercent
public double getChartableXPercent()
- A convenience method to return the percentage of the model total for the chartable's x coordinate
- Returns:
- the percentage of the model total for the chartable's x coordinate
equals
public boolean equals(Object o)
- Overrides:
equals
in class Object
hashCode
public int hashCode()
- Overrides:
hashCode
in class Object
toString
public String toString()
- Overrides:
toString
in class Object