Class RMGraphRPGBar
- java.lang.Object
-
- com.inductiveautomation.rm.graphing.RMGraphRPG
-
- com.inductiveautomation.rm.graphing.RMGraphRPGBar
-
- Direct Known Subclasses:
RMGraphRPGLine
public class RMGraphRPGBar extends RMGraphRPG
This class generates (and represents) a RPG'd bar graph area.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
RMGraphRPGBar.BarGraphShape
An interface for a shape that renders a bar graph from bar graph pieces.static class
RMGraphRPGBar.BarGraphShape2D
A BarGraphShape implementation.-
Nested classes/interfaces inherited from class com.inductiveautomation.rm.graphing.RMGraphRPG
RMGraphRPG.GraphShape
-
-
Constructor Summary
Constructors Constructor Description RMGraphRPGBar(RMGraph aGraph, ReportOwner anRptOwner)
Creates a bar graph maker.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addBars()
Adds the bars to the graph area.void
addLabel(RMTextShape aLabel, RMGraphPartSeries.LabelPos aPosition, RMGraphSeries.Item seriesItem)
Adds an individual label.protected RMParentShape
createGraphShape()
Creates the graph shape.RMRect
getBarBounds(int aSeriesIndex, int anItemIndex)
Returns the bar bounds for bar at given series and item.RMShape
getBarPrototype()
Returns the shape used to represent the basic attributes of bars & wedges.java.lang.Float
getInterval(int anIndex)
Returns the individual interval at a given index as a float value.int
getIntervalCount()
Returns the number of intervals for this filled graph.java.lang.Float
getIntervalLast()
Returns the last interval as a float value.int
getMinorTickCount()
Returns the number of suggested ticks between the intervals of the RPG'd graph.boolean
isVertical()
Returns whether graph is vertical.-
Methods inherited from class com.inductiveautomation.rm.graphing.RMGraphRPG
getGraph, getGraphShape, getObjects, getReportOwner, getSection, getSectionCount, getSections, getSeries, getSeries, getSeriesCount, isMeshed
-
-
-
-
Constructor Detail
-
RMGraphRPGBar
public RMGraphRPGBar(RMGraph aGraph, ReportOwner anRptOwner)
Creates a bar graph maker.
-
-
Method Detail
-
createGraphShape
protected RMParentShape createGraphShape()
Creates the graph shape.- Specified by:
createGraphShape
in classRMGraphRPG
-
getIntervalCount
public int getIntervalCount()
Returns the number of intervals for this filled graph.
-
getInterval
public java.lang.Float getInterval(int anIndex)
Returns the individual interval at a given index as a float value.
-
getIntervalLast
public java.lang.Float getIntervalLast()
Returns the last interval as a float value.
-
getMinorTickCount
public int getMinorTickCount()
Returns the number of suggested ticks between the intervals of the RPG'd graph.
-
isVertical
public boolean isVertical()
Returns whether graph is vertical.
-
addBars
public void addBars()
Adds the bars to the graph area.
-
getBarBounds
public RMRect getBarBounds(int aSeriesIndex, int anItemIndex)
Returns the bar bounds for bar at given series and item.
-
addLabel
public void addLabel(RMTextShape aLabel, RMGraphPartSeries.LabelPos aPosition, RMGraphSeries.Item seriesItem)
Adds an individual label.
-
getBarPrototype
public RMShape getBarPrototype()
Returns the shape used to represent the basic attributes of bars & wedges.
-
-