Class RMGraphSeries


  • public class RMGraphSeries
    extends java.lang.Object
    A class to represent a graph series, contains a list of series items.
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static class  RMGraphSeries.Item
      A class to represent an individual item inside a graph series, including its key, group, value and bar/wedge shape.
    • Constructor Summary

      Constructors 
      Constructor Description
      RMGraphSeries​(java.lang.String aTitle, java.lang.String aKey, RMGroup aGroupList)
      Creates a new series.
    • Constructor Detail

      • RMGraphSeries

        public RMGraphSeries​(java.lang.String aTitle,
                             java.lang.String aKey,
                             RMGroup aGroupList)
        Creates a new series.
    • Method Detail

      • getTitle

        public java.lang.String getTitle()
        Returns the title for this series.
      • getKey

        public java.lang.String getKey()
        Returns the key for this series.
      • addItem

        public void addItem​(RMGroup aGroup)
        Add item for given key/group.
      • getItemCount

        public int getItemCount()
        Returns the number of items in this series.
      • getItem

        public RMGraphSeries.Item getItem​(int anIndex)
        Returns the individual series item at the given index.
      • getSeriesTotal

        public float getSeriesTotal()
        Returns the total for all values in series.
      • getSeries

        public static java.util.List<RMGraphSeries> getSeries​(RMGraphRPG aGraphRPG)
        Returns the graph series for a given graph.