Class GraphUtils


  • public final class GraphUtils
    extends Object
    A utility class that computes the scale factor for a given number array to scale the numbers into a predefined height.
    Version:
    $Revision: 1.3 $ $Date: 2007-01-15 04:49:21 $
    Author:
    Larry Ogrodnek
    • Method Detail

      • getDivisor

        public static float getDivisor​(Number[] data,
                                       int height)
        Computes the scale factor to scale the given numeric data into the target height.
        Parameters:
        data - the numeric data.
        height - the target height of the graph.
        Returns:
        the scale factor.
      • getAxe

        public static float getAxe​(Number[] data)