|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.awt.GridBagConstraints
at.tuwien.ifs.somtoolbox.util.GridBagConstraintsIFS
public class GridBagConstraintsIFS
A helper class around GridBagConstraints
, providing convenience methods to set locations, etc..
Field Summary | |
---|---|
private static long |
serialVersionUID
|
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 | |
---|---|
GridBagConstraintsIFS()
New constraints top-left, top-alignment left. |
|
GridBagConstraintsIFS(int anchor,
int fill)
|
Method Summary | |
---|---|
GridBagConstraintsIFS |
clone()
|
GridBagConstraintsIFS |
fillHeight()
Create a new instance with vertical weight 1 |
GridBagConstraintsIFS |
fillWidth()
Create a new instance with horizontal weight 1 |
GridBagConstraintsIFS |
moveTo(int x,
int y)
moves to the given position |
GridBagConstraintsIFS |
nextCol()
move into the next column |
GridBagConstraintsIFS |
nextRow()
move into the next row |
void |
reset()
reset to top-left position, top-alignment left |
GridBagConstraintsIFS |
resetWeights()
resets the weights to 0 |
GridBagConstraintsIFS |
setAnchor(int anchor)
|
GridBagConstraintsIFS |
setFill(int fill)
|
GridBagConstraintsIFS |
setGridHeight(int gridheight)
set the grid height |
GridBagConstraintsIFS |
setGridWidth(int gridwidth)
set the grid width |
GridBagConstraintsIFS |
setInsets(Insets insets)
|
GridBagConstraintsIFS |
setInsets(int padding)
|
GridBagConstraintsIFS |
setInsets(int x,
int y)
|
GridBagConstraintsIFS |
setPadding(int padx,
int pady)
|
GridBagConstraintsIFS |
setPadding(int padx,
int pady,
Insets insets)
|
GridBagConstraintsIFS |
setWeights(int weightx,
int weighty)
set the x and y weights |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private static final long serialVersionUID
Constructor Detail |
---|
public GridBagConstraintsIFS()
public GridBagConstraintsIFS(int anchor, int fill)
Method Detail |
---|
public void reset()
public GridBagConstraintsIFS setFill(int fill)
public GridBagConstraintsIFS setAnchor(int anchor)
public GridBagConstraintsIFS setPadding(int padx, int pady)
public GridBagConstraintsIFS setPadding(int padx, int pady, Insets insets)
public GridBagConstraintsIFS setInsets(int padding)
public GridBagConstraintsIFS setInsets(int x, int y)
public GridBagConstraintsIFS setInsets(Insets insets)
public GridBagConstraintsIFS nextCol()
public GridBagConstraintsIFS nextRow()
public GridBagConstraintsIFS moveTo(int x, int y)
public GridBagConstraintsIFS setGridWidth(int gridwidth)
public GridBagConstraintsIFS setGridHeight(int gridheight)
public GridBagConstraintsIFS setWeights(int weightx, int weighty)
public GridBagConstraintsIFS resetWeights()
public GridBagConstraintsIFS fillWidth()
public GridBagConstraintsIFS fillHeight()
public GridBagConstraintsIFS clone()
clone
in class GridBagConstraints
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |