JIDE 3.5.15

com.jidesoft.chart.event
Class PointDescriptor

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


Constructor Summary
PointDescriptor(Chartable chartable, int pointIndex, ChartModel model)
           
 
Method Summary
 boolean equals(Object o)
           
 Chartable getChartable()
           
 double getChartableXPercent()
          A convenience method to return the percentage of the model total for the chartable's x coordinate
 double getChartableYPercent()
          A convenience method to return the percentage of the model total for the chartable's y coordinate
 int getIndex()
           
 ChartModel getModel()
           
 double getModelXSum()
           
 double getModelYSum()
           
 Shape getShape()
           
 PointDescriptor getSubPoint()
           
 int hashCode()
           
 void setShape(Shape shape)
           
 void setSubPoint(PointDescriptor subPoint)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PointDescriptor

public PointDescriptor(Chartable chartable,
                       int pointIndex,
                       ChartModel model)
Method Detail

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

JIDE 3.5.15