java.lang.Object
com.iamsoft.util.ui.swing.DimensionUtil
Utility methods for Dimensions.
-
Method Summary
Modifier and TypeMethodDescriptionstatic Dimension
Accepts an array of Dimensions and returns a new Dimension whose width and height are the largest of each width/height in argument dimensions.static Dimension
Accepts an array of Dimensions and returns a new Dimension whose width and height are the smallest of each width/height in argument dimensions.
-
Method Details
-
min
Accepts an array of Dimensions and returns a new Dimension whose width and height are the smallest of each width/height in argument dimensions.- Parameters:
pDimensions
- Dimension to be constrained.- Returns:
- Dimension whose width and height are the minimum of all argument dimensions.
-
max
Accepts an array of Dimensions and returns a new Dimension whose width and height are the largest of each width/height in argument dimensions.- Parameters:
pDimensions
- Dimension to be constrained.- Returns:
- Dimension whose width and height are the minimum of all argument dimensions.
-