ReportMill 11 API

com.reportmill.graphing
Class RMGraphIntervals

java.lang.Object
  extended by com.reportmill.graphing.RMGraphIntervals

public class RMGraphIntervals
extends java.lang.Object

Returns a list of graph intervals given a range and count. If count is zero, this class will determine a proper count.


Constructor Summary
RMGraphIntervals(float minValue, float maxValue, int aCount)
          Return well-chosen intervals given a min/max value.
 
Method Summary
static RMGraphIntervals getGraphIntervals(RMGraph aGraph)
          Returns graph intervals for a given graph.
 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.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RMGraphIntervals

public RMGraphIntervals(float minValue,
                        float maxValue,
                        int aCount)
Return well-chosen intervals given a min/max value. For instance, (1,4) would return (1,2,3,4,5), while (17,242) would return (50,100,150,200,250). Useful methods for graphing.

Method Detail

getGraphIntervals

public static RMGraphIntervals getGraphIntervals(RMGraph aGraph)
Returns graph intervals for a given graph.


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.


ReportMill 11 API