Package com.helger.commons.dimension
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 Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default booleanisLandscape()default booleanisPortrait()default booleanisQuadratic()-
Methods inherited from interface com.helger.commons.dimension.IHasHeightDouble
getHeight
-
Methods inherited from interface com.helger.commons.dimension.IHasWidthDouble
getWidth
-
-
-
-
Method Detail
-
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
-
-