|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.awt.GridBagConstraints
com.googlecode.whatswrong.SimpleGridBagConstraints
public class SimpleGridBagConstraints
A SimpleGridBagConstraints object is a GridBagConstraints object that can be created using a set of convenience constructors. This allows us to create constraints more easily and makes GridBagConstraint-based code more readable.
Field Summary |
---|
Fields inherited from class java.awt.GridBagConstraints |
---|
anchor, 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 | |
---|---|
SimpleGridBagConstraints(int gridy,
boolean left)
|
|
SimpleGridBagConstraints(int gridy,
boolean left,
boolean fill)
|
|
SimpleGridBagConstraints(int gridx,
int gridy)
Creates a SimpleGridBagConstraints object with default properties and the given gridx and gridy attributes. |
|
SimpleGridBagConstraints(int gridx,
int gridy,
double weightx,
double weighty,
int anchor,
int fill)
|
|
SimpleGridBagConstraints(int gridx,
int gridy,
int gridwidth,
int gridheight)
|
Method Summary |
---|
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 SimpleGridBagConstraints(int gridx, int gridy)
gridx
- the x-position in the gridgridy
- the y-position in the gridpublic SimpleGridBagConstraints(int gridx, int gridy, double weightx, double weighty, int anchor, int fill)
public SimpleGridBagConstraints(int gridx, int gridy, int gridwidth, int gridheight)
public SimpleGridBagConstraints(int gridy, boolean left)
public SimpleGridBagConstraints(int gridy, boolean left, boolean fill)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |