Class ChartView.Element

  • Direct Known Subclasses:
    HistogramView.HistogramBin
    Enclosing class:
    ChartView

    public static class ChartView.Element
    extends java.lang.Object
    Represents an element of a chart, such as a bar or a pie wedge.
    • Constructor Summary

      Constructors 
      Constructor Description
      Element​(int seriesIndex, int elementIndex)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int getElementIndex()
      Returns the element's index within its series.
      int getSeriesIndex()
      Returns the element's series index.
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • Element

        public Element​(int seriesIndex,
                       int elementIndex)
    • Method Detail

      • 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 java.lang.String toString()
        Overrides:
        toString in class java.lang.Object