Class FastNumberTickUnit

    • Constructor Summary

      Constructors 
      Constructor Description
      FastNumberTickUnit​(double size)
      Creates a new number tick unit.
      FastNumberTickUnit​(double size, org.pentaho.reporting.libraries.formatting.FastDecimalFormat formatter)
      Creates a new number tick unit.
      FastNumberTickUnit​(double size, org.pentaho.reporting.libraries.formatting.FastDecimalFormat formatter, int minorTickCount)
      Creates a new number tick unit.
    • Constructor Detail

      • FastNumberTickUnit

        public FastNumberTickUnit​(double size)
        Creates a new number tick unit.
        Parameters:
        size - the size of the tick unit.
      • FastNumberTickUnit

        public FastNumberTickUnit​(double size,
                                  org.pentaho.reporting.libraries.formatting.FastDecimalFormat formatter)
        Creates a new number tick unit.
        Parameters:
        size - the size of the tick unit.
        formatter - a number formatter for the tick unit (null not permitted).
      • FastNumberTickUnit

        public FastNumberTickUnit​(double size,
                                  org.pentaho.reporting.libraries.formatting.FastDecimalFormat formatter,
                                  int minorTickCount)
        Creates a new number tick unit.
        Parameters:
        size - the size of the tick unit.
        formatter - a number formatter for the tick unit (null not permitted).
        minorTickCount - the number of minor ticks.
        Since:
        1.0.7
    • Method Detail

      • valueToString

        public String valueToString​(double value)
        Converts a value to a string.
        Overrides:
        valueToString in class org.jfree.chart.axis.NumberTickUnit
        Parameters:
        value - the value.
        Returns:
        The formatted string.
      • equals

        public boolean equals​(Object obj)
        Tests this formatter for equality with an arbitrary object.
        Overrides:
        equals in class org.jfree.chart.axis.NumberTickUnit
        Parameters:
        obj - the object (null permitted).
        Returns:
        A boolean.
      • toString

        public String toString()
        Returns a string representing this unit.
        Overrides:
        toString in class org.jfree.chart.axis.NumberTickUnit
        Returns:
        A string.
      • hashCode

        public int hashCode()
        Returns a hash code for this instance.
        Overrides:
        hashCode in class org.jfree.chart.axis.NumberTickUnit
        Returns:
        A hash code.