Package com.helger.commons.dimension
Interface IHasDimensionLong
- All Superinterfaces:
IHasHeightLong,IHasWidthLong
- All Known Implementing Classes:
SizeLong
Interface for objects having a width and a height.
- Author:
- Philip Helger
-
Method Summary
Modifier and TypeMethodDescriptiondefault booleandefault booleandefault booleanMethods inherited from interface com.helger.commons.dimension.IHasHeightLong
getHeightMethods inherited from interface com.helger.commons.dimension.IHasWidthLong
getWidth
-
Method Details
-
isLandscape
default boolean isLandscape()- Returns:
trueif width > height,falseotherwise.- Since:
- 9.2.1
-
isPortrait
default boolean isPortrait()- Returns:
trueif height > width,falseotherwise.- Since:
- 9.2.1
-
isQuadratic
default boolean isQuadratic()- Returns:
trueif width equals height,falseotherwise.- Since:
- 9.2.1
-