|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcommon.gui.util.ConstraintFactory
Provides easier creation of GridBagConstraints
Field Summary | |
static int |
BOTH
|
static int |
CENTER
|
protected int |
DEFAULT_ANCHOR
|
protected int |
DEFAULT_FILL
|
protected java.awt.Insets |
DEFAULT_INSETS
|
protected int |
DEFAULT_IPADX
|
protected int |
DEFAULT_IPADY
|
protected int |
DEFAULT_WEIGHTX
|
protected int |
DEFAULT_WEIGHTY
|
static int |
E
|
static int |
H
|
static int |
HORIZONTAL
|
protected int |
LAST_HEIGHT
|
protected int |
LAST_WIDTH
|
protected int |
LAST_X
|
protected int |
LAST_Y
|
static int |
N
|
static int |
NE
|
static int |
NONE
|
static int |
NW
|
static int |
RELATIVE
|
static int |
REMAINDER
|
static int |
S
|
static int |
SE
|
static int |
SW
|
static int |
V
|
static int |
VERTICAL
|
static int |
W
|
Constructor Summary | |
ConstraintFactory()
|
Method Summary | |
java.awt.GridBagConstraints |
buildConstraints(int x,
int y,
int width,
int height)
Build basic constraints. |
java.awt.GridBagConstraints |
buildConstraints(int x,
int y,
int width,
int height,
int anchor,
int fill)
Builds basic constraints + anchor and fill constraints. |
java.awt.GridBagConstraints |
buildConstraints(int x,
int y,
int width,
int height,
int anchor,
int fill,
int xweight,
int yweight)
Builds basic constraints + anchor,fill, and weights. |
java.awt.GridBagConstraints |
buildConstraints(int x,
int y,
int width,
int height,
int anchor,
int fill,
int weightx,
int weighty,
java.awt.Insets i)
Builds basic constraints + anchor,fill, weights, and insets. |
void |
setDefaultAnchor(int i)
|
void |
setDefaultFill(int i)
|
void |
setDefaultInsets(java.awt.Insets i)
|
void |
setDefaultInternalPadding(int i)
|
void |
setDefaultInternalPaddingX(int i)
|
void |
setDefaultInternalPaddingY(int i)
|
void |
setDefaultWeights(int x,
int y)
|
void |
setDefaultWeightX(int i)
|
void |
setDefaultWeightY(int i)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final int NONE
public static final int BOTH
public static final int HORIZONTAL
public static final int H
public static final int VERTICAL
public static final int V
public static final int RELATIVE
public static final int REMAINDER
public static final int CENTER
public static final int N
public static final int E
public static final int S
public static final int W
public static final int NW
public static final int NE
public static final int SW
public static final int SE
protected int DEFAULT_WEIGHTX
protected int DEFAULT_WEIGHTY
protected int DEFAULT_ANCHOR
protected int DEFAULT_FILL
protected java.awt.Insets DEFAULT_INSETS
protected int DEFAULT_IPADX
protected int DEFAULT_IPADY
protected int LAST_X
protected int LAST_Y
protected int LAST_WIDTH
protected int LAST_HEIGHT
Constructor Detail |
public ConstraintFactory()
Method Detail |
public java.awt.GridBagConstraints buildConstraints(int x, int y, int width, int height)
x
- an int specifying the object's x grid positiony
- an int specifying the object's y grid positionwidth
- an int specifying the object's widthheight
- an int specifying the object's height
public java.awt.GridBagConstraints buildConstraints(int x, int y, int width, int height, int anchor, int fill)
x
- an int specifying the object's x grid positiony
- an int specifying the object's y grid positionwidth
- an int specifying the object's widthheight
- an int specifying the object's heightanchor
- an int specifying the position to place the objectfill
- an int specifying which directions to fill
public java.awt.GridBagConstraints buildConstraints(int x, int y, int width, int height, int anchor, int fill, int xweight, int yweight)
x
- an int specifying the object's x grid positiony
- an int specifying the object's y grid positionwidth
- an int specifying the object's widthheight
- an int specifying the object's heightanchor
- an int specifying the position to place the objectfill
- an int specifying which directions to fillxweight
- an int specifying the object's x weightyweight
- an int specifying the object's y weight
public java.awt.GridBagConstraints buildConstraints(int x, int y, int width, int height, int anchor, int fill, int weightx, int weighty, java.awt.Insets i)
x
- an int specifying the object's x grid positiony
- an int specifying the object's y grid positionwidth
- an int specifying the object's widthheight
- an int specifying the object's heightanchor
- an int specifying the position to place the objectfill
- an int specifying which directions to fillweightx
- an int specifying the object's x weightweighty
- an int specifying the object's y weighti
- Insets to use for this object
public void setDefaultAnchor(int i)
public void setDefaultFill(int i)
public void setDefaultWeights(int x, int y)
public void setDefaultWeightX(int i)
public void setDefaultWeightY(int i)
public void setDefaultInsets(java.awt.Insets i)
public void setDefaultInternalPaddingX(int i)
public void setDefaultInternalPaddingY(int i)
public void setDefaultInternalPadding(int i)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |