|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.awt.GridBagLayout | +--ccl.swing.AutoGridBagLayout
This layout manager hides a lot of complexity from the GridBagLayout manager, especially through hiding the GridBagConstraints object. Meanwhile you can still do all the things the original GridBagLayout manager offers. Personally This is one of the two most regularly used classes of the ccl.swing package (together with the ccl.swing.SwingUtil class of course).
Field Summary | |
static int |
CENTER
Put the component in the center of its display area. |
static int |
EAST
Put the component on the right side of its display area, centered vertically. |
static int |
NORTH
Put the component at the top of its display area, centered horizontally. |
static int |
NORTHEAST
Put the component at the top-right corner of its display area. |
static int |
NORTHWEST
Put the component at the top-left corner of its display area. |
static int |
SOUTH
Put the component at the bottom of its display area, centered horizontally. |
static int |
SOUTHEAST
Put the component at the bottom-right corner of its display area. |
static int |
SOUTHWEST
Put the component at the bottom-left corner of its display area. |
static int |
WEST
Put the component on the left side of its display area, centered vertically. |
Fields inherited from class java.awt.GridBagLayout |
columnWeights, columnWidths, comptable, defaultConstraints, layoutInfo, MAXGRIDSIZE, MINSIZE, PREFERREDSIZE, rowHeights, rowWeights |
Constructor Summary | |
AutoGridBagLayout()
|
|
AutoGridBagLayout(int insets_)
|
Method Summary | |
void |
add(java.awt.Container container_,
java.awt.Component component_)
|
void |
addLayoutComponent(java.awt.Component pComponent_,
java.lang.Object oConstraints_)
Adds the specified component to the layout, using the specified constraint object. |
void |
endLine()
|
void |
gotoGrid(int x_,
int y_)
|
void |
nextLine()
|
void |
setAnchor(int anchor)
|
void |
setAnchorCenter()
|
void |
setAnchorEast()
|
void |
setAnchorNorth()
|
void |
setAnchorSouth()
|
void |
setAnchorWest()
|
void |
setExpandBoth()
Specifies that the next component to be added should be expanded horizontally and vertically with a default weight of 1.0 in each direction. |
void |
setExpandBoth(double dX_,
double dY_)
Sets the weight used for the next component to expand its space. |
void |
setExpandHorizontal()
|
void |
setExpandHorizontal(double dHorizontal_)
|
void |
setExpandNone()
|
void |
setExpandVertical()
|
void |
setExpandVertical(double dVertical_)
|
void |
setExtend(int extendX_,
int extendY_)
|
void |
setFillBoth()
|
void |
setFillHorizontal()
|
void |
setFillNone()
|
void |
setFillVertical()
|
void |
setInsets(java.awt.Insets pInsets_)
|
void |
setInsets(int inset)
|
void |
setInsets(int vertical_,
int horizontal_)
|
void |
setLayoutOn(java.awt.Container pContainer_)
|
void |
skip()
|
Methods inherited from class java.awt.GridBagLayout |
addLayoutComponent, adjustForGravity, AdjustForGravity, arrangeGrid, ArrangeGrid, getConstraints, getLayoutAlignmentX, getLayoutAlignmentY, getLayoutDimensions, getLayoutInfo, GetLayoutInfo, getLayoutOrigin, getLayoutWeights, getMinSize, GetMinSize, invalidateLayout, layoutContainer, location, lookupConstraints, maximumLayoutSize, minimumLayoutSize, preferredLayoutSize, removeLayoutComponent, setConstraints, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final int CENTER
public static final int NORTH
public static final int NORTHEAST
public static final int EAST
public static final int SOUTHEAST
public static final int SOUTH
public static final int SOUTHWEST
public static final int WEST
public static final int NORTHWEST
Constructor Detail |
public AutoGridBagLayout()
public AutoGridBagLayout(int insets_)
Method Detail |
public void setInsets(int inset)
public void setInsets(int vertical_, int horizontal_)
public void setInsets(java.awt.Insets pInsets_)
public void setAnchor(int anchor)
public void setAnchorNorth()
public void setAnchorEast()
public void setAnchorSouth()
public void setAnchorWest()
public void setAnchorCenter()
public void setFillNone()
public void setExpandNone()
public void setFillBoth()
public void setExpandBoth()
public void setExpandBoth(double dX_, double dY_)
public void setFillHorizontal()
public void setExpandHorizontal()
public void setExpandHorizontal(double dHorizontal_)
public void setFillVertical()
public void setExpandVertical()
public void setExpandVertical(double dVertical_)
public void skip()
public void endLine()
public void nextLine()
public void gotoGrid(int x_, int y_)
public void setExtend(int extendX_, int extendY_)
public void addLayoutComponent(java.awt.Component pComponent_, java.lang.Object oConstraints_)
addLayoutComponent
in interface java.awt.LayoutManager2
addLayoutComponent
in class java.awt.GridBagLayout
pComponent_
- the component to be addedoConstraints_
- where/how the component is added to the layout.public void setLayoutOn(java.awt.Container pContainer_)
public void add(java.awt.Container container_, java.awt.Component component_)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |