|
[.hacks.] [.java.] |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--ColumnLayout
(#)ColumnLayout.java
Field Summary | |
static int |
ALL
expand horz and vert |
protected int |
cellexpn
Should we expand each cell to fit exactly (as in GridLayout) ? |
protected java.awt.Insets |
cellinset
The border around each cell |
protected int |
cellpos
where should the component be psoitioned within each cell ? |
static int |
CENTER
Center position |
protected int |
columns
no of colums |
static int |
E
East position |
static int |
HORZ
expand horz |
static int |
N
North position |
static int |
NE
NorthEast position |
static int |
NONE
do not expand or no rubbercol/row |
static int |
NW
NorthWest position |
protected int |
rubbercolumn
which col to expand if parent larger than preferred size |
protected int |
rubberrow
which row to expand if parent larger than preferred size. |
static int |
S
South position |
static int |
SE
SouthEast position |
static int |
SW
SouthWest position |
static int |
VERT
expand vert |
static int |
W
West position |
Constructor Summary | |
ColumnLayout(int columns,
int cellexpn,
int cellpos,
int rubbercolumn,
int rubberrow)
Creates a column layout with default insets |
|
ColumnLayout(int columns,
int cellexpn,
int cellpos,
int rubbercolumn,
int rubberrow,
java.awt.Insets cellinset)
Creates a column layout |
Method Summary | |
void |
addLayoutComponent(java.lang.String s,
java.awt.Component c)
Just here to satisfy the interface. |
void |
layoutContainer(java.awt.Container C)
Position the children. |
java.awt.Dimension |
minimumLayoutSize(java.awt.Container C)
Calculate the minimum layout size. |
java.awt.Dimension |
preferredLayoutSize(java.awt.Container C)
Calculate the preferred layout size. |
void |
removeLayoutComponent(java.awt.Component c)
Just here to satisfy the interface. |
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 ALL
public static final int HORZ
public static final int VERT
protected java.awt.Insets cellinset
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 SW
public static final int NE
public static final int SE
public static final int CENTER
protected int cellpos
protected int cellexpn
protected int rubbercolumn
protected int rubberrow
protected int columns
Constructor Detail |
public ColumnLayout(int columns, int cellexpn, int cellpos, int rubbercolumn, int rubberrow)
columns
- the number of columnscellexpn
- expand the component within cell (NONE, ALL, HORZ, VERT)cellpos
- position of component within cell (NW, N, NE, E, SE, S, SW, W, C)rubbercolumn
- specify column to expand if parent larger as needed (NONE, ALL, rubberrow
- specify row to expand if parent larger as needed (NONE, ALL, public ColumnLayout(int columns, int cellexpn, int cellpos, int rubbercolumn, int rubberrow, java.awt.Insets cellinset)
columns
- the number of columnscellexpn
- expand the component within cell (NONE, ALL, HORZ, VERT)cellpos
- position of component within cell (NW, N, NE, E, SE, S, SW, W, C)rubbercolumn
- specify column to expand if parent larger as needed (NONE, ALL, rubberrow
- specify row to expand if parent larger as needed (NONE, ALL, cellinset
- the border within each cellMethod Detail |
public void layoutContainer(java.awt.Container C)
layoutContainer
in interface java.awt.LayoutManager
C
- the parent containerpublic java.awt.Dimension minimumLayoutSize(java.awt.Container C)
minimumLayoutSize
in interface java.awt.LayoutManager
C
- the parent containerpublic java.awt.Dimension preferredLayoutSize(java.awt.Container C)
preferredLayoutSize
in interface java.awt.LayoutManager
C
- the parent containerpublic void removeLayoutComponent(java.awt.Component c)
removeLayoutComponent
in interface java.awt.LayoutManager
c
- component being removedpublic void addLayoutComponent(java.lang.String s, java.awt.Component c)
addLayoutComponent
in interface java.awt.LayoutManager
s
- additional layout infoc
- component being added
|
[.hacks.] [.java.] |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |