Class ScientificNumberFormatter

java.lang.Object
java.text.Format
java.text.NumberFormat
io.deephaven.plot.axisformatters.ScientificNumberFormatter
All Implemented Interfaces:
Serializable, Cloneable

public class ScientificNumberFormatter extends NumberFormat
NumberFormat which formats numbers in scientific notation if they are outside the given range.
See Also:
  • Constructor Details

    • ScientificNumberFormatter

      public ScientificNumberFormatter()
      Creates a ScientificNumberFormatter instance with the default number of decimals, lower limit, and upper limit.
    • ScientificNumberFormatter

      public ScientificNumberFormatter(int numDecimals, double lowerLimit, double upperLimit)
      Creates a ScientificNumberFormatter instance.
      Parameters:
      numDecimals - the max number of decimals to display
      lowerLimit - gives a range around 0 [-lowerLimit, lowerLimit] for which each number inside the range excluding 0 will be formatted with scientific notation
      upperLimit - gives a range around 0 [-upperLimit, upperLimit] for which each number outside the range will be formatted with scientific notation
  • Method Details