Package javascript.awt
Class GBC
- java.lang.Object
-
- javascript.awt.GridBagConstraints
-
- javascript.awt.GBC
-
public class GBC extends GridBagConstraints
Utility object to simplify the use of the GridBagConstraints object- Author:
- gianpiero.diblasi
-
-
Field Summary
-
Fields inherited from class javascript.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
Constructors Constructor Description GBC(int gridx, int gridy)
Creates the object
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description GBC
a(int anchor)
Sets the anchorGBC
f(int fill)
Sets the fill directionGBC
h(int gridheight)
Sets the grid heightGBC
i(int top, int left, int bottom, int right)
Sets the insetsGBC
w(int gridwidth)
Sets the grid widthGBC
wh(int gridwidth, int gridheight)
Sets the grid sizeGBC
wx(int weightx)
Sets the x weightGBC
wxy(int weightx, int weighty)
Sets the weightGBC
wy(int weighty)
Sets the y weight-
Methods inherited from class javascript.awt.GridBagConstraints
get
-
-
-
-
Method Detail
-
w
public GBC w(int gridwidth)
Sets the grid width- Parameters:
gridwidth
- The grid width- Returns:
- This object
-
h
public GBC h(int gridheight)
Sets the grid height- Parameters:
gridheight
- The grid height- Returns:
- This object
-
wh
public GBC wh(int gridwidth, int gridheight)
Sets the grid size- Parameters:
gridwidth
- The grid widthgridheight
- The grid height- Returns:
- This object
-
wx
public GBC wx(int weightx)
Sets the x weight- Parameters:
weightx
- The x weight- Returns:
- This object
-
wy
public GBC wy(int weighty)
Sets the y weight- Parameters:
weighty
- The y weight- Returns:
- This object
-
wxy
public GBC wxy(int weightx, int weighty)
Sets the weight- Parameters:
weightx
- The x weightweighty
- The y weight- Returns:
- This object
-
a
public GBC a(int anchor)
Sets the anchor- Parameters:
anchor
- The anchor- Returns:
- This object
-
f
public GBC f(int fill)
Sets the fill direction- Parameters:
fill
- The fill direction- Returns:
- This object
-
i
public GBC i(int top, int left, int bottom, int right)
Sets the insets- Parameters:
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- Returns:
- This object
-
-