Class StandardTickUnitSource

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object obj)
      Tests this instance for equality with an arbitrary object.
      TickUnit getCeilingTickUnit​(double size)
      Returns the tick unit in the collection 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 a tick unit that is larger than the supplied unit.
      int hashCode()
      Returns a hash code for this instance.
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • getCeilingTickUnit

        public TickUnit getCeilingTickUnit​(double size)
        Returns the tick unit in the collection that is greater than or equal to the specified size.
        Specified by:
        getCeilingTickUnit in interface TickUnitSource
        Parameters:
        size - the size.
        Returns:
        A unit from the collection.
      • equals

        public boolean equals​(java.lang.Object obj)
        Tests this instance for equality with an arbitrary object.
        Overrides:
        equals in class java.lang.Object
        Parameters:
        obj - the object (null permitted).
        Returns:
        A boolean.
      • hashCode

        public int hashCode()
        Returns a hash code for this instance.
        Overrides:
        hashCode in class java.lang.Object
        Returns:
        A hash code.