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

Method buildRelativeConstraints

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

Set up GridBag Constraints in a relative pattern. Components must be added in order row by row. @param gbc The gridbagconstraints to set up @param gw cols wide @param gh rows high @param wx weight of x, I typically put in percentile, only need to specify this once for each column,

(GridBagConstraints gbc, int gw, int gh, double wx, double wy, int fill,
		int anchor)

Source from the content-addressed store, hash-verified

114 * @param anchor Where should the component be placed if smaller than the space.
115 */
116 public static void buildRelativeConstraints(GridBagConstraints gbc, int gw, int gh, double wx, double wy, int fill,
117 int anchor)
118 {
119 buildConstraints(gbc, GridBagConstraints.RELATIVE, GridBagConstraints.RELATIVE, gw, gh, wx, wy);
120 gbc.fill = fill;
121 gbc.anchor = anchor;
122 }
123
124 /**
125 * Set up GridBag Constraints in a relative pattern. Components must be

Callers 7

ConvertPanelMethod · 0.95
setupDisplayMethod · 0.95
setupDisplayMethod · 0.95
setupDisplayMethod · 0.95
setupDisplayMethod · 0.95
initComponentsMethod · 0.95
initComponentsMethod · 0.95

Calls 1

buildConstraintsMethod · 0.95

Tested by

no test coverage detected