- java.lang.Object
-
- com.iamsoft.util.ui.swing.DimensionUtil
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Dimension
max(Dimension... pDimensions)
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
min(Dimension... pDimensions)
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 Detail
-
min
public static Dimension min(Dimension... pDimensions)
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
public static Dimension max(Dimension... pDimensions)
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.
-
-