Class DimensionFactory
- java.lang.Object
-
- de.alpharogroup.swing.components.factories.DimensionFactory
-
public class DimensionFactory extends java.lang.ObjectA factoryDimensionFactoryprovides factory methods for create Dimension objects
-
-
Constructor Summary
Constructors Constructor Description DimensionFactory()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.awt.DimensiongetPreferredSize(javax.swing.JComponent first, javax.swing.JComponent second)Factory method for creating the new preferred sizeDimensionof the given two componentstatic java.awt.DimensionnewDimension(int width, int height)Factory method for creating the newDimension
-
-
-
Method Detail
-
newDimension
public static java.awt.Dimension newDimension(int width, int height)Factory method for creating the newDimension- Parameters:
width- the widthheight- the height- Returns:
- the new
Dimension
-
getPreferredSize
public static java.awt.Dimension getPreferredSize(javax.swing.JComponent first, javax.swing.JComponent second)Factory method for creating the new preferred sizeDimensionof the given two component- Parameters:
first- the first componentsecond- the second component- Returns:
- the new preferred size
Dimension
-
-