|
ProgramixGenericLib v5.0.1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.programix.gui.layout.AbstractTableLayout
com.programix.gui.layout.ButtonLayout
com.programix.gui.layout.ColumnButtonLayout
public class ColumnButtonLayout
Lays out the components in column(s) forcing all of the components to be
the same size. This LayoutManager is very useful for
laying out a column of buttons (if you want a row of buttons,
see RowButtonLayout.
The buttons will not stretch if the container is
too tall or too wide, instead the buttons will stay clustered together in
the area indicated by the AnchorPoint.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class com.programix.gui.layout.AbstractTableLayout |
|---|
AbstractTableLayout.CellData |
| Field Summary | |
|---|---|
static int |
DEFAULT_COLUMN_COUNT
The default number of columns to use, value is 1. |
| Fields inherited from class com.programix.gui.layout.ButtonLayout |
|---|
colDriven, requestedRowOrColCount |
| Fields inherited from class com.programix.gui.layout.AbstractTableLayout |
|---|
anchorPoint, borderGap, colGap, columnCoordinator, DEFAULT_ANCHOR_POINT, DEFAULT_BORDER_GAP, DEFAULT_COL_GAP, DEFAULT_ROW_GAP, ignoreInvisibleComponents, rowGap |
| Constructor Summary | |
|---|---|
ColumnButtonLayout()
Creates a layout for exactly one column of equally sized components anchored in the AnchorPoint.NORTH region. |
|
ColumnButtonLayout(AnchorPoint anchorPoint)
Creates a layout for exactly one column of equally sized components anchored in the specified region. |
|
ColumnButtonLayout(int borderGap,
AnchorPoint anchorPoint)
Creates a layout for exactly one column of equally sized components anchored in the specified region. |
|
ColumnButtonLayout(int rowGap,
int colGap,
int borderGap)
Creates a layout for exactly one column of equally sized components anchored in the AnchorPoint.NORTH region. |
|
ColumnButtonLayout(int rowGap,
int colGap,
int borderGap,
AnchorPoint anchorPoint)
Creates a layout for exactly one column of equally sized components. |
|
ColumnButtonLayout(int rowGap,
int colGap,
int borderGap,
AnchorPoint anchorPoint,
int colCount)
Creates a layout for a column (or columns) of equally sized components. |
|
| Method Summary | |
|---|---|
int |
getColumnCount()
Returns the number of columns that this layout will always have. |
void |
setColumnCount(int columnCount)
Changes the number of columns in this layout. |
| Methods inherited from class com.programix.gui.layout.ButtonLayout |
|---|
createCellData |
| Methods inherited from class com.programix.gui.layout.AbstractTableLayout |
|---|
addLayoutComponent, getAnchorPoint, getBorderGap, getColumnCoordinator, getColumnGap, getRowGap, isIgnoreInvisibleComponents, layoutContainer, minimumLayoutSize, preferredLayoutSize, removeLayoutComponent, setAnchorPoint, setBorderGap, setColumnCoordinator, setColumnGap, setIgnoreInvisibleComponents, setRowGap |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int DEFAULT_COLUMN_COUNT
| Constructor Detail |
|---|
public ColumnButtonLayout(int rowGap,
int colGap,
int borderGap,
AnchorPoint anchorPoint,
int colCount)
rowGap - - space between rows.
See setRowGap.colGap - - space between columns—if
there is more than one column.
See setColumnGap.borderGap - - space around the outside of the buttons.
See setBorderGap.anchorPoint - - region to anchor to when there is extra space
See setAnchorPoint.colCount - - the number of columns to create, very often just 1.
See setColumnCount.
public ColumnButtonLayout(int rowGap,
int colGap,
int borderGap,
AnchorPoint anchorPoint)
DEFAULT_COLUMN_COUNT
(which is equal to 1)
ColumnButtonLayout(int, int, int, AnchorPoint, int)
public ColumnButtonLayout(int rowGap,
int colGap,
int borderGap)
AnchorPoint.NORTH region.
Calls the main constructor passing in:
DEFAULT_ANCHOR_POINT (which is
AnchorPoint.NORTH)DEFAULT_COLUMN_COUNT
(which is equal to 1)
ColumnButtonLayout(int, int, int, AnchorPoint, int)
public ColumnButtonLayout(int borderGap,
AnchorPoint anchorPoint)
DEFAULT_ROW_GAP
(which is equal to 3)DEFAULT_COL_GAP
(which is equal to 3)DEFAULT_COLUMN_COUNT
(which is equal to 1)
ColumnButtonLayout(int, int, int, AnchorPoint, int)public ColumnButtonLayout(AnchorPoint anchorPoint)
DEFAULT_ROW_GAP
(which is equal to 3)DEFAULT_COL_GAP
(which is equal to 3)DEFAULT_BORDER_GAP
(which is equal to 5)DEFAULT_COLUMN_COUNT
(which is equal to 1)
ColumnButtonLayout(int, int, int, AnchorPoint, int)public ColumnButtonLayout()
AnchorPoint.NORTH region.
Calls the main constructor passing in:
DEFAULT_ROW_GAP
(which is equal to 3)DEFAULT_COL_GAP
(which is equal to 3)DEFAULT_BORDER_GAP
(which is equal to 5)DEFAULT_ANCHOR_POINT (which is
AnchorPoint.NORTH)DEFAULT_COLUMN_COUNT
(which is equal to 1)
ColumnButtonLayout(int, int, int, AnchorPoint, int)| Method Detail |
|---|
public int getColumnCount()
public void setColumnCount(int columnCount)
|
ProgramixGenericLib v5.0.1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||