Class DimensionFactory


  • public class DimensionFactory
    extends java.lang.Object
    A factory DimensionFactory provides factory methods for create Dimension objects
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.awt.Dimension getPreferredSize​(javax.swing.JComponent first, javax.swing.JComponent second)
      Factory method for creating the new preferred size Dimension of the given two component
      static java.awt.Dimension newDimension​(int width, int height)
      Factory method for creating the new Dimension
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • DimensionFactory

        public DimensionFactory()
    • Method Detail

      • newDimension

        public static java.awt.Dimension newDimension​(int width,
                                                      int height)
        Factory method for creating the new Dimension
        Parameters:
        width - the width
        height - 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 size Dimension of the given two component
        Parameters:
        first - the first component
        second - the second component
        Returns:
        the new preferred size Dimension