org.apache.pivot.charts
Class ChartView.Element
java.lang.Object
org.apache.pivot.charts.ChartView.Element
- Enclosing class:
- ChartView
public static class ChartView.Element
- extends Object
Represents an element of a chart, such as a bar or a pie wedge.
ChartView.Element
public ChartView.Element(int seriesIndex,
int elementIndex)
getSeriesIndex
public int getSeriesIndex()
- Returns the element's series index.
- Returns:
- The element's series index.
getElementIndex
public int getElementIndex()
- Returns the element's index within its series. For a category series,
the element index represents the index of the category in the
category sequence. Otherwise, it represents the index of the item
within the series.
- Returns:
- The element index.
toString
public String toString()
- Overrides:
toString
in class Object