Package de.alpharogroup.layout
Class LayoutExtensions
- java.lang.Object
-
- de.alpharogroup.layout.LayoutExtensions
-
public final class LayoutExtensions extends java.lang.ObjectThe classLayoutExtensionshelps with method for simplify the live with Layouts.
-
-
Constructor Summary
Constructors Constructor Description LayoutExtensions()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidadd(GridBagLayoutModel layoutModel)static voidaddComponent(java.awt.GridBagLayout gbl, java.awt.GridBagConstraints gbc, int gridx, int gridy, java.awt.Component component, java.awt.Container panelToAdd)Adds the component.static voidaddComponent(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 voidaddComponent(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 voidaddComponentWithHorizontalStrutInBox(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 voidaddComponentWithVerticalStrutInBox(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.
-
-
-
Method Detail
-
add
public static void add(GridBagLayoutModel layoutModel)
-
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 gblgbc- the gbcgridx- the gridxgridy- the gridycomponent- the componentpanelToAdd- 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 gblgbc- the gbcanchor- the anchorfill- the fillinsets- the insetsgridx- the gridxgridy- the gridygridwidth- the gridwidthgridheight- the gridheightweightx- the weightxweighty- the weightyaddComponentToPanel- the add component to panelpanelToAdd- 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 gblgbc- the gbcanchor- the anchorfill- the fillinsets- the insetsgridx- the gridxgridy- the gridygridwidth- the gridwidthgridheight- the gridheightweightx- the weightxweighty- the weightyipadx- the ipadxipady- the ipadyaddComponentToPanel- the add component to panelpanelToAdd- 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 gblgbc- the gbcanchor- the anchorfill- the fillinsets- the insetsgridx- the gridxgridy- the gridygridwidth- the gridwidthgridheight- the gridheightweightx- the weightxweighty- the weightyhorizontalStrut- the horizontal strutaddComponentToPanel- the add component to panelpanelToAdd- 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 gblgbc- the gbcanchor- the anchorfill- the fillinsets- the insetsgridx- the gridxgridy- the gridygridwidth- the gridwidthgridheight- the gridheightweightx- the weightxweighty- the weightyverticalStrut- the vertical strutaddComponentToPanel- the add component to panelpanelToAdd- the panel to add
-
-