public final class LayoutUtils extends Object
| Constructor and Description |
|---|
LayoutUtils() |
| Modifier and Type | Method and Description |
|---|---|
static void |
addComponent(GridBagLayout gbl,
GridBagConstraints gbc,
int gridx,
int gridy,
Component component,
Container panelToAdd)
Adds the component.
|
static void |
addComponent(GridBagLayout gbl,
GridBagConstraints gbc,
int anchor,
int fill,
Insets insets,
int gridx,
int gridy,
int gridwidth,
int gridheight,
double weightx,
double weighty,
Component addComponentToPanel,
Container panelToAdd)
Adds the component.
|
static void |
addComponent(GridBagLayout gbl,
GridBagConstraints gbc,
int anchor,
int fill,
Insets insets,
int gridx,
int gridy,
int gridwidth,
int gridheight,
double weightx,
double weighty,
int ipadx,
int ipady,
Component addComponentToPanel,
Container panelToAdd)
Adds the component.
|
static void |
addComponentWithHorizontalStrutInBox(GridBagLayout gbl,
GridBagConstraints gbc,
int anchor,
int fill,
Insets insets,
int gridx,
int gridy,
int gridwidth,
int gridheight,
double weightx,
double weighty,
int horizontalStrut,
Component addComponentToPanel,
Container panelToAdd)
Adds the component with horizontal strut in box.
|
static void |
addComponentWithVerticalStrutInBox(GridBagLayout gbl,
GridBagConstraints gbc,
int anchor,
int fill,
Insets insets,
int gridx,
int gridy,
int gridwidth,
int gridheight,
double weightx,
double weighty,
int verticalStrut,
Component addComponentToPanel,
Container panelToAdd)
Adds the component with vertical strut in box.
|
public static void addComponent(GridBagLayout gbl, GridBagConstraints gbc, int gridx, int gridy, Component component, Container panelToAdd)
gbl - the gblgbc - the gbcgridx - the gridxgridy - the gridycomponent - the componentpanelToAdd - the panel to addpublic static void addComponent(GridBagLayout gbl, GridBagConstraints gbc, int anchor, int fill, Insets insets, int gridx, int gridy, int gridwidth, int gridheight, double weightx, double weighty, Component addComponentToPanel, Container panelToAdd)
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 addpublic static void addComponent(GridBagLayout gbl, GridBagConstraints gbc, int anchor, int fill, Insets insets, int gridx, int gridy, int gridwidth, int gridheight, double weightx, double weighty, int ipadx, int ipady, Component addComponentToPanel, Container panelToAdd)
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 addpublic static void addComponentWithHorizontalStrutInBox(GridBagLayout gbl, GridBagConstraints gbc, int anchor, int fill, Insets insets, int gridx, int gridy, int gridwidth, int gridheight, double weightx, double weighty, int horizontalStrut, Component addComponentToPanel, Container panelToAdd)
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 addpublic static void addComponentWithVerticalStrutInBox(GridBagLayout gbl, GridBagConstraints gbc, int anchor, int fill, Insets insets, int gridx, int gridy, int gridwidth, int gridheight, double weightx, double weighty, int verticalStrut, Component addComponentToPanel, Container panelToAdd)
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 addCopyright © 2007–2015 Alpha Ro Group UG (haftungsbeschrÀngt). All rights reserved.