|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.awt.GridBagConstraints
de.infinityloop.util.gui.Gbc
public class Gbc
Helps filling in and constructing GrdBagConstraints objects
| 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 |
| Constructor Summary | |
|---|---|
Gbc()
|
|
Gbc(int gridx,
int gridy)
Constructs a Gbc with a given gridx and gridy position and all other grid bag constraint values set to the default. |
|
Gbc(int gridx,
int gridy,
int gridwidth,
int gridheight,
double weightx,
double weighty,
int anchor,
int fill,
java.awt.Insets insets,
int ipadx,
int ipady)
|
|
| Method Summary | |
|---|---|
Gbc |
setAnchor(int anchor)
Sets the anchor. |
Gbc |
setFill(int fill)
Sets the fill direction. |
Gbc |
setInsets(int distance)
Sets the insets of this cell. |
Gbc |
setInsets(int top,
int left,
int bottom,
int right)
Sets the insets of this cell. |
Gbc |
setIpad(int ipadx,
int ipady)
Sets the internal padding |
Gbc |
setSpan(int gridwidth,
int gridheight)
Sets the cell spans. |
Gbc |
setWeight(double weightx,
double weighty)
Sets the cell weights. |
| 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 |
| Constructor Detail |
|---|
public Gbc()
public Gbc(int gridx,
int gridy,
int gridwidth,
int gridheight,
double weightx,
double weighty,
int anchor,
int fill,
java.awt.Insets insets,
int ipadx,
int ipady)
gridx - gridy - gridwidth - gridheight - weightx - weighty - anchor - fill - insets - ipadx - ipady -
public Gbc(int gridx,
int gridy)
gridx - the gridx positiongridy - the gridy position| Method Detail |
|---|
public Gbc setSpan(int gridwidth,
int gridheight)
gridwidth - the cell span in x-directiongridheight - the cell span in y-direction
public Gbc setAnchor(int anchor)
anchor - the anchor value
public Gbc setFill(int fill)
fill - the fill direction
public Gbc setWeight(double weightx,
double weighty)
weightx - the cell weight in x-directionweighty - the cell weight in y-direction
public Gbc setInsets(int distance)
distance - the spacing to use in all directions
public Gbc setInsets(int top,
int left,
int bottom,
int right)
top - the spacing to use on topleft - the spacing to use to the leftbottom - the spacing to use on the bottomright - the spacing to use to the right
public Gbc setIpad(int ipadx,
int ipady)
ipadx - the internal padding in x-directionipady - the internal padding in y-direction
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||