MCPcopy Create free account
hub / github.com/PCGen/pcgen / buildConstraints

Method buildConstraints

code/src/java/pcgen/gui2/tools/Utility.java:71–79  ·  view source on GitHub ↗

Set up GridBag Constraints. @param gbc The gridbagconstraints to set up @param gx cols from left (left-most col for multi-column cell) @param gy rows from top (top-most row for multi-row cell) @param gw cols wide @param gh rows high @param wx weight of x, I typically put in percentile,

(GridBagConstraints gbc, int gx, int gy, int gw, int gh, double wx, double wy)

Source from the content-addressed store, hash-verified

69 * @param wy weight of y, same as weight for cols, just specify a non-zero value for one cell in each row.
70 */
71 public static void buildConstraints(GridBagConstraints gbc, int gx, int gy, int gw, int gh, double wx, double wy)
72 {
73 gbc.gridx = gx;
74 gbc.gridy = gy;
75 gbc.gridwidth = gw;
76 gbc.gridheight = gh;
77 gbc.weightx = wx;
78 gbc.weighty = wy;
79 }
80
81 /**
82 * Set up GridBag Constraints.

Callers 5

initializeMethod · 0.95
initializeMethod · 0.95
initComponentsMethod · 0.95
initComponentsMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected