Interface IHasDimensionDouble

All Superinterfaces:
IHasHeightDouble, IHasWidthDouble
All Known Implementing Classes:
SizeDouble

public interface IHasDimensionDouble extends IHasWidthDouble, IHasHeightDouble
Interface for objects having a width and a height.
Author:
Philip Helger
  • Method Details

    • isLandscape

      default boolean isLandscape()
      Returns:
      true if width > height, false otherwise.
      Since:
      9.2.1
    • isPortrait

      default boolean isPortrait()
      Returns:
      true if height > width, false otherwise.
      Since:
      9.2.1
    • isQuadratic

      default boolean isQuadratic()
      Returns:
      true if width equals height, false otherwise.
      Since:
      9.2.1