net.sourceforge.jaulp.layout
Class LayoutUtils

java.lang.Object
  extended by net.sourceforge.jaulp.layout.LayoutUtils

public final class LayoutUtils
extends java.lang.Object

The Class LayoutUtils helps with method for simplify the live with Layouts.


Constructor Summary
LayoutUtils()
           
 
Method Summary
static void addComponent(java.awt.GridBagLayout gbl, java.awt.GridBagConstraints gbc, int gridx, int gridy, java.awt.Component component, java.awt.Container panelToAdd)
          Adds the component.
static void addComponent(java.awt.GridBagLayout gbl, java.awt.GridBagConstraints gbc, int anchor, int fill, java.awt.Insets insets, int gridx, int gridy, int gridwidth, int gridheight, double weightx, double weighty, java.awt.Component addComponentToPanel, java.awt.Container panelToAdd)
          Adds the component.
static void addComponent(java.awt.GridBagLayout gbl, java.awt.GridBagConstraints gbc, int anchor, int fill, java.awt.Insets insets, int gridx, int gridy, int gridwidth, int gridheight, double weightx, double weighty, int ipadx, int ipady, java.awt.Component addComponentToPanel, java.awt.Container panelToAdd)
          Adds the component.
static void addComponentWithHorizontalStrutInBox(java.awt.GridBagLayout gbl, java.awt.GridBagConstraints gbc, int anchor, int fill, java.awt.Insets insets, int gridx, int gridy, int gridwidth, int gridheight, double weightx, double weighty, int horizontalStrut, java.awt.Component addComponentToPanel, java.awt.Container panelToAdd)
          Adds the component with horizontal strut in box.
static void addComponentWithVerticalStrutInBox(java.awt.GridBagLayout gbl, java.awt.GridBagConstraints gbc, int anchor, int fill, java.awt.Insets insets, int gridx, int gridy, int gridwidth, int gridheight, double weightx, double weighty, int verticalStrut, java.awt.Component addComponentToPanel, java.awt.Container panelToAdd)
          Adds the component with vertical strut in box.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LayoutUtils

public LayoutUtils()
Method Detail

addComponent

public static void addComponent(java.awt.GridBagLayout gbl,
                                java.awt.GridBagConstraints gbc,
                                int gridx,
                                int gridy,
                                java.awt.Component component,
                                java.awt.Container panelToAdd)
Adds the component.

Parameters:
gbl - the gbl
gbc - the gbc
gridx - the gridx
gridy - the gridy
component - the component
panelToAdd - the panel to add

addComponent

public static void addComponent(java.awt.GridBagLayout gbl,
                                java.awt.GridBagConstraints gbc,
                                int anchor,
                                int fill,
                                java.awt.Insets insets,
                                int gridx,
                                int gridy,
                                int gridwidth,
                                int gridheight,
                                double weightx,
                                double weighty,
                                int ipadx,
                                int ipady,
                                java.awt.Component addComponentToPanel,
                                java.awt.Container panelToAdd)
Adds the component.

Parameters:
gbl - the gbl
gbc - the gbc
anchor - the anchor
fill - the fill
insets - the insets
gridx - the gridx
gridy - the gridy
gridwidth - the gridwidth
gridheight - the gridheight
weightx - the weightx
weighty - the weighty
ipadx - the ipadx
ipady - the ipady
addComponentToPanel - the add component to panel
panelToAdd - the panel to add

addComponent

public static void addComponent(java.awt.GridBagLayout gbl,
                                java.awt.GridBagConstraints gbc,
                                int anchor,
                                int fill,
                                java.awt.Insets insets,
                                int gridx,
                                int gridy,
                                int gridwidth,
                                int gridheight,
                                double weightx,
                                double weighty,
                                java.awt.Component addComponentToPanel,
                                java.awt.Container panelToAdd)
Adds the component.

Parameters:
gbl - the gbl
gbc - the gbc
anchor - the anchor
fill - the fill
insets - the insets
gridx - the gridx
gridy - the gridy
gridwidth - the gridwidth
gridheight - the gridheight
weightx - the weightx
weighty - the weighty
addComponentToPanel - the add component to panel
panelToAdd - the panel to add

addComponentWithVerticalStrutInBox

public static void addComponentWithVerticalStrutInBox(java.awt.GridBagLayout gbl,
                                                      java.awt.GridBagConstraints gbc,
                                                      int anchor,
                                                      int fill,
                                                      java.awt.Insets insets,
                                                      int gridx,
                                                      int gridy,
                                                      int gridwidth,
                                                      int gridheight,
                                                      double weightx,
                                                      double weighty,
                                                      int verticalStrut,
                                                      java.awt.Component addComponentToPanel,
                                                      java.awt.Container panelToAdd)
Adds the component with vertical strut in box.

Parameters:
gbl - the gbl
gbc - the gbc
anchor - the anchor
fill - the fill
insets - the insets
gridx - the gridx
gridy - the gridy
gridwidth - the gridwidth
gridheight - the gridheight
weightx - the weightx
weighty - the weighty
verticalStrut - the vertical strut
addComponentToPanel - the add component to panel
panelToAdd - the panel to add

addComponentWithHorizontalStrutInBox

public static void addComponentWithHorizontalStrutInBox(java.awt.GridBagLayout gbl,
                                                        java.awt.GridBagConstraints gbc,
                                                        int anchor,
                                                        int fill,
                                                        java.awt.Insets insets,
                                                        int gridx,
                                                        int gridy,
                                                        int gridwidth,
                                                        int gridheight,
                                                        double weightx,
                                                        double weighty,
                                                        int horizontalStrut,
                                                        java.awt.Component addComponentToPanel,
                                                        java.awt.Container panelToAdd)
Adds the component with horizontal strut in box.

Parameters:
gbl - the gbl
gbc - the gbc
anchor - the anchor
fill - the fill
insets - the insets
gridx - the gridx
gridy - the gridy
gridwidth - the gridwidth
gridheight - the gridheight
weightx - the weightx
weighty - the weighty
horizontalStrut - the horizontal strut
addComponentToPanel - the add component to panel
panelToAdd - the panel to add


Copyright © 2010. All Rights Reserved.