Interface IHasDimensionLong

All Superinterfaces:
IHasHeightLong, IHasWidthLong
All Known Implementing Classes:
SizeLong

public interface IHasDimensionLong extends IHasWidthLong, IHasHeightLong
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