|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object jwo.utils.gui.SGLayout jwo.utils.gui.SRLayout
Creates simple scalded row layout with multiple columns and a single row. See JavaWorld Tips, 129.
Field Summary |
Fields inherited from class jwo.utils.gui.SGLayout |
BOTTOM, bottomBorder, CENTER, cols, columnScale, columnSizes, FILL, hAlignment, hAlignments, hgap, LEFT, leftBorder, minH, minW, RIGHT, rightBorder, rows, rowScale, rowSizes, TOP, topBorder, vAlignment, vAlignments, vgap |
Constructor Summary | |
SRLayout(int columns)
Creates a layout with the specified number of columns and default alignments and gaps. |
|
SRLayout(int columns,
int gap)
Creates a layout with the specified number of columns and specified gap. |
|
SRLayout(int columns,
int hAlignment,
int vAlignment,
int gap)
Creates a layout with the specified number of columns and specified alignments and gaps. |
Method Summary | |
void |
setAlignment(int column,
int hAlignment,
int vAlignment)
Set up alignment for a specific column. |
void |
setScale(int column,
double scale)
Set up scale value for a specific column (default is 1.0). |
Methods inherited from class jwo.utils.gui.SGLayout |
addLayoutComponent, allocateMaxSizes, layoutContainer, minimumLayoutSize, preferredLayoutSize, removeLayoutComponent, setAlignment, setColumnAlignment, setColumnScale, setMargins, setRowAlignment, setRowScale |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public SRLayout(int columns)
columns
- Number of columns.public SRLayout(int columns, int gap)
columns
- Number of columns.gap
- The horizontal gap, in pixels.public SRLayout(int columns, int hAlignment, int vAlignment, int gap)
columns
- Number of columns.hAlignment
- Horizontal alignment.vAlignment
- Vertical alignment.gap
- The horizontal gap, in pixels.Method Detail |
public void setAlignment(int column, int hAlignment, int vAlignment)
column
- The column number to align.hAlignment
- the X-alignment for the cell.vAlignment
- the Y-alignment for the cell.public void setScale(int column, double scale)
column
- The column number to scale.scale
- The scale value for the column.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |