Interface AxisFormat

All Known Implementing Classes:
DecimalAxisFormat, NanosAxisFormat

public interface AxisFormat
Format for axis tick labels. For time values, this would be how the dates are formatted. For numerical values, this would be the number of significant digits, etc.
  • Method Summary

    Modifier and Type
    Method
    Description
    Gets the formatter for given pattern.
    void
    setPattern(String pattern)
    Set the pattern used for formatting values.
  • Method Details

    • setPattern

      void setPattern(String pattern)
      Set the pattern used for formatting values.
      Parameters:
      pattern - string indicating how values should be formatted.
    • getNumberFormatter

      NumberFormat getNumberFormatter()
      Gets the formatter for given pattern.

      Note that as time values are expressed as numbers, a number formatter is still suitable for dates.

      Returns:
      formatter