|
|||||||||
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.SCLayout
public class SCLayout
Creates simple scalded column layout with multiple rows and a single column. 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 | |
---|---|
SCLayout(int rows)
Creates a layout with the specified number of rows and default alignments and gaps.Vertical gaps are set to 0 and X- and Y-alignments are set to FILL. |
|
SCLayout(int rows,
int gap)
Creates a layout with the specified number of rows and specified gap. |
|
SCLayout(int rows,
int hAlignment,
int vAlignment,
int gap)
Creates a layout with the specified number of rows and specified alignments and gaps. |
Method Summary | |
---|---|
void |
setAlignment(int index,
int hAlignment,
int vAlignment)
Sets up alignment for a specific cell. |
void |
setScale(int cell,
double scale)
Sets up scale value for a specific cell. |
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 SCLayout(int rows)
rows
- Number of rows in layout.public SCLayout(int rows, int gap)
rows
- Number of rows.gap
- The vertical gap, in pixels.public SCLayout(int rows, int hAlignment, int vAlignment, int gap)
rows
- Number of rows.hAlignment
- The X-alignment.vAlignment
- The Y-alignment.gap
- The vertical gap, in pixels.Method Detail |
---|
public void setAlignment(int index, int hAlignment, int vAlignment)
index
- The cell number.hAlignment
- The X-alignment for the cell.vAlignment
- The Y-alignment for the cell.public void setScale(int cell, double scale)
cell
- The cell coordinate (row) to scale.scale
- The scale value for the row.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |