Class RMGraphSection


  • public class RMGraphSection
    extends java.lang.Object
    Represents the data in the sections of a merged or separated graph.
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      class  RMGraphSection.Item
      An inner class for a section item.
    • Constructor Summary

      Constructors 
      Constructor Description
      RMGraphSection​(RMGraphRPG aGraphRPG, int anIndex)
      Creates a new graph section.
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void addItem​(int aSeriesIndex, int anItemIndex)
      Adds an item for the given series and series item.
      RMRect getBounds()
      Returns the bounds of the section.
      RMGraphSection.Item getItem​(int anIndex)
      Returns the specific item at the given index.
      int getItemCount()
      Returns the number of section items
      float getMaxValue()
      Returns section maximum value.
      float getMinValue()
      Returns section minimum value.
      static java.util.List getSections​(RMGraphRPG aGraphRPG)
      Returns the list of sections for the graph.
      float getSectionTotal()
      Returns the total for all values in series.
      • Methods inherited from class java.lang.Object

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

      • RMGraphSection

        public RMGraphSection​(RMGraphRPG aGraphRPG,
                              int anIndex)
        Creates a new graph section.
    • Method Detail

      • getItemCount

        public int getItemCount()
        Returns the number of section items
      • getItem

        public RMGraphSection.Item getItem​(int anIndex)
        Returns the specific item at the given index.
      • addItem

        public void addItem​(int aSeriesIndex,
                            int anItemIndex)
        Adds an item for the given series and series item.
      • getMinValue

        public float getMinValue()
        Returns section minimum value.
      • getMaxValue

        public float getMaxValue()
        Returns section maximum value.
      • getSectionTotal

        public float getSectionTotal()
        Returns the total for all values in series.
      • getBounds

        public RMRect getBounds()
        Returns the bounds of the section.
      • getSections

        public static java.util.List getSections​(RMGraphRPG aGraphRPG)
        Returns the list of sections for the graph.