Class RMGraphSection
- java.lang.Object
-
- com.inductiveautomation.rm.graphing.RMGraphSection
-
public class RMGraphSection extends java.lang.ObjectRepresents the data in the sections of a merged or separated graph.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description classRMGraphSection.ItemAn 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 voidaddItem(int aSeriesIndex, int anItemIndex)Adds an item for the given series and series item.RMRectgetBounds()Returns the bounds of the section.RMGraphSection.ItemgetItem(int anIndex)Returns the specific item at the given index.intgetItemCount()Returns the number of section itemsfloatgetMaxValue()Returns section maximum value.floatgetMinValue()Returns section minimum value.static java.util.ListgetSections(RMGraphRPG aGraphRPG)Returns the list of sections for the graph.floatgetSectionTotal()Returns the total for all values in series.
-
-
-
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.
-
-