Package com.helger.commons.dimension
Interface IHasDimensionFloat
-
- All Superinterfaces:
IHasHeightFloat,IHasWidthFloat
- All Known Implementing Classes:
SizeFloat
public interface IHasDimensionFloat extends IHasWidthFloat, IHasHeightFloat
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.IHasHeightFloat
getHeight
-
Methods inherited from interface com.helger.commons.dimension.IHasWidthFloat
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
-
-