org.jfree.chart.axis

## Interface TickUnitSource

- All Known Implementing Classes:
    NumberTickUnitSource, TickUnits

      public interface TickUnitSource

  An interface used by the `DateAxis` and `NumberAxis` classes to obtain a suitable `TickUnit`.

- - ### Method Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method and Description
    --- | ---
    `TickUnit` | `getCeilingTickUnit(double size)` Returns the smallest tick unit available in the source that is greater than or equal to the specified size.
    `TickUnit` | `getCeilingTickUnit(TickUnit unit)` Returns the tick unit in the collection that is greater than or equal to (in size) the specified unit.
    `TickUnit` | `getLargerTickUnit(TickUnit unit)` Returns the smallest tick unit available in the source that is larger than `unit` or, if there is no larger unit, returns `unit`.

- - ### Method Detail

    - #### getLargerTickUnit

          TickUnit getLargerTickUnit(TickUnit unit)

      Returns the smallest tick unit available in the source that is larger than `unit` or, if there is no larger unit, returns `unit`.
      Parameters:
        `unit` - the unit (`null` not permitted).
      Returns:
        A tick unit that is larger than the supplied unit.

    - #### getCeilingTickUnit

          TickUnit getCeilingTickUnit(TickUnit unit)

      Returns the tick unit in the collection that is greater than or equal to (in size) the specified unit.
      Parameters:
        `unit` - the unit.
      Returns:
        A unit from the collection.

    - #### getCeilingTickUnit

          TickUnit getCeilingTickUnit(double size)

      Returns the smallest tick unit available in the source that is greater than or equal to the specified size. If there is no such tick unit, the method should return the largest available tick in the source.
      Parameters:
        `size` - the size.
      Returns:
        A unit from the collection (never `null`).