|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.awt.GridBagConstraints
megamek.client.ui.GBC
public class GBC
A helper class for setting line-wise GridBagLayouts Do not use this if you need a Component to span two rows
| Field Summary |
|---|
| Fields inherited from class java.awt.GridBagConstraints |
|---|
ABOVE_BASELINE, ABOVE_BASELINE_LEADING, ABOVE_BASELINE_TRAILING, anchor, BASELINE, BASELINE_LEADING, BASELINE_TRAILING, BELOW_BASELINE, BELOW_BASELINE_LEADING, BELOW_BASELINE_TRAILING, BOTH, CENTER, EAST, fill, FIRST_LINE_END, FIRST_LINE_START, gridheight, gridwidth, gridx, gridy, HORIZONTAL, insets, ipadx, ipady, LAST_LINE_END, LAST_LINE_START, LINE_END, LINE_START, NONE, NORTH, NORTHEAST, NORTHWEST, PAGE_END, PAGE_START, RELATIVE, REMAINDER, SOUTH, SOUTHEAST, SOUTHWEST, VERTICAL, weightx, weighty, WEST |
| Method Summary | |
|---|---|
GBC |
anchor(int a)
change the anchor of this GridBagConstraints |
static GBC |
eol()
|
static GBC |
eop()
|
GBC |
fill()
set this GridBagConstraints so that the corresponding
Component will fill horizontally and vertically. |
GBC |
fill(int value)
set this GridBagConstraints so that the corresponding
will fill according to the |
GBC |
gridheight(int height)
Set the gridheight of this GridBagConstraints |
GBC |
gridwidth(int width)
Set the gridwidth of this GridBagConstraints |
GBC |
gridx(int gridx)
Set the gridx of this GridBagConstraints |
GBC |
gridy(int gridy)
Set the gridy of this GridBagConstraints |
GBC |
insets(int left,
int top,
int right,
int bottom)
change the insets of this GridBagConstraints |
GBC |
pad(int padx,
int pady)
Set the padding of this GridBagConstraints |
static GBC |
std()
|
GBC |
weightx(double weight)
Set the weightx of this GridBagConstraints |
GBC |
weighty(double weight)
Set the weighty of this GridBagConstraints |
| Methods inherited from class java.awt.GridBagConstraints |
|---|
clone |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static GBC std()
GridBagConstraints,
anchored to GridBagConstraints.WESTpublic static GBC eol()
GridBagConstraints that will have a component
fill a lineGridBagConstraints.REMAINDERpublic static GBC eop()
GridBagConstraints that will have a component fill
a line, and have a 10 pixel inset to the south (ie. a paragraph)public GBC anchor(int a)
GridBagConstraints
a - the int anchor to set
thisGridBagConstraints.anchor
public GBC insets(int left,
int top,
int right,
int bottom)
GridBagConstraints
left - top - right - bottom -
thisGridBagConstraints.insetspublic GBC fill()
GridBagConstraints so that the corresponding
Component will fill horizontally and vertically.
thispublic GBC fill(int value)
GridBagConstraints so that the corresponding
will fill according to the
value - either GridBagConstraints.HORIZONTAL,
GridBagConstraints.VERTICAL or
GridBagConstraints.BOTH and
this
public GBC pad(int padx,
int pady)
GridBagConstraints
padx - the int ipadx to setpady - the int ipady to set
thisGridBagConstraints.ipadx,
GridBagConstraints.ipadypublic GBC gridx(int gridx)
GridBagConstraints
gridx - the int gridx to set
thisGridBagConstraints.gridxpublic GBC gridy(int gridy)
GridBagConstraints
gridy - the int gridy to set
thisGridBagConstraints.gridypublic GBC gridheight(int height)
GridBagConstraints
gridheight - the int gridheight to set
thisGridBagConstraints.gridheightpublic GBC gridwidth(int width)
GridBagConstraints
gridwidth - the int gridheight to set
thisGridBagConstraints.gridwidthpublic GBC weightx(double weight)
GridBagConstraints
weight - the double weightx to set
thisGridBagConstraints.weightxpublic GBC weighty(double weight)
GridBagConstraints
weight - the double weighty to set
thisGridBagConstraints.weighty
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||