|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectinfo.clearthought.layout.TableLayout
org.tbee.swing.tablelayout.TableLayoutSpaced
public class TableLayoutSpaced
This class extends the basic TableLayout with automatic spacing: Margins are added automatically around the components and inter column/row spacing between the components. The usage is quite simple: instead of instantiating TableLayout, instatiate this class.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class info.clearthought.layout.TableLayout |
|---|
info.clearthought.layout.TableLayout.Entry |
| Field Summary | |
|---|---|
static java.lang.String |
SOURCECODE_VERSION
Standard variable for determining version of a class file. |
| Fields inherited from class info.clearthought.layout.TableLayout |
|---|
C, checkForComponentOrientationSupport, crOffset, crSize, crSpec, defaultSize, dirty, hGap, list, methodGetComponentOrientation, oldHeight, oldWidth, R, vGap |
| Fields inherited from interface info.clearthought.layout.TableLayoutConstants |
|---|
BOTTOM, CENTER, FILL, FULL, LEADING, LEFT, MINIMUM, PREFERRED, RIGHT, TOP, TRAILING |
| Constructor Summary | |
|---|---|
TableLayoutSpaced()
Setup TableLayout |
|
TableLayoutSpaced(double[][] columnsAndRows)
|
|
TableLayoutSpaced(double[] columns,
double[] rows)
Setup TableLayout |
|
TableLayoutSpaced(java.lang.String columns,
java.lang.String rows)
Setup TableLayout |
|
TableLayoutSpaced(java.lang.String columns,
java.lang.String rows,
int topMargin,
int bottomMargin,
int leftMargin,
int rightMargin,
int interColumnSpacing,
int interRowSpacing)
Setup TableLayout |
|
| Method Summary | |
|---|---|
void |
addLayoutComponent(java.awt.Component c,
java.lang.Object s)
Replace arguments with spacing aware values |
protected double |
getActualColumn(int idx)
|
int |
getActualColumnWidth(int idx)
the size of a column in pixels |
int |
getActualNumColumn()
get the number of columns |
int |
getActualNumRow()
|
double |
getActualRow(int idx)
|
int |
getActualRowHeight(int idx)
the size of a row in pixels |
double[] |
getColumn()
|
double |
getColumn(int idx)
|
int |
getColumnId(java.lang.String name)
|
int |
getColumnWidth(int idx)
the size of a column in pixels |
int |
getNumColumn()
get the number of columns |
int |
getNumRow()
|
double[] |
getRow()
|
double |
getRow(int idx)
|
int |
getRowHeight(int idx)
the size of a row in pixels |
int |
getRowId(java.lang.String name)
|
static void |
main(java.lang.String[] args)
test code |
protected void |
setActualColumn(int idx,
double value)
|
void |
setActualRow(int idx,
double value)
|
void |
setBottomMargin(double value)
|
void |
setColumn(double[] oldArray)
|
void |
setColumn(int idx,
double value)
set the column (using the TableLayout constaint values) |
void |
setColumnId(int idx,
java.lang.String name)
|
void |
setInterColumnSpacing(double value)
|
void |
setInterColumnSpacing(int idx,
double value)
|
void |
setInterRowSpacing(double value)
|
void |
setInterRowSpacing(int idx,
double value)
|
void |
setLeftMargin(double value)
|
void |
setMargin(double value)
|
void |
setRightMargin(double value)
|
void |
setRow(double[] oldArray)
|
void |
setRow(int idx,
double value)
|
void |
setRowId(int idx,
java.lang.String name)
|
void |
setTopMargin(double value)
|
| Methods inherited from class info.clearthought.layout.TableLayout |
|---|
addLayoutComponent, assignAbsoluteSize, assignFillSize, assignPrefMinSize, assignRelativeSize, calculateLayoutSize, calculateLayoutSize, calculateOffset, calculateSize, calculateSizeAndOffset, deleteColumn, deleteCr, deleteRow, getComponentOrientation, getConstraints, getHGap, getInvalidEntry, getLayoutAlignmentX, getLayoutAlignmentY, getOverlappingEntry, getVGap, init, insertColumn, insertCr, insertRow, invalidateLayout, layoutContainer, maximumLayoutSize, minimumLayoutSize, preferredLayoutSize, removeLayoutComponent, setConstraints, setCr, setCr, setHGap, setVGap, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String SOURCECODE_VERSION
| Constructor Detail |
|---|
public TableLayoutSpaced()
public TableLayoutSpaced(java.lang.String columns,
java.lang.String rows,
int topMargin,
int bottomMargin,
int leftMargin,
int rightMargin,
int interColumnSpacing,
int interRowSpacing)
columns - rows -
public TableLayoutSpaced(java.lang.String columns,
java.lang.String rows)
columns - rows -
public TableLayoutSpaced(double[] columns,
double[] rows)
columns - rows - public TableLayoutSpaced(double[][] columnsAndRows)
columnsAndRows - | Method Detail |
|---|
public void addLayoutComponent(java.awt.Component c,
java.lang.Object s)
addLayoutComponent in interface java.awt.LayoutManager2addLayoutComponent in class info.clearthought.layout.TableLayoutpublic int getNumColumn()
getNumColumn in class info.clearthought.layout.TableLayoutpublic int getActualNumColumn()
public void setColumn(int idx,
double value)
setColumn in class info.clearthought.layout.TableLayoutpublic double getColumn(int idx)
getColumn in class info.clearthought.layout.TableLayoutpublic void setColumn(double[] oldArray)
setColumn in class info.clearthought.layout.TableLayout
protected void setActualColumn(int idx,
double value)
protected double getActualColumn(int idx)
public double[] getColumn()
getColumn in class info.clearthought.layout.TableLayoutpublic int getNumRow()
getNumRow in class info.clearthought.layout.TableLayoutpublic int getActualNumRow()
public void setRow(int idx,
double value)
setRow in class info.clearthought.layout.TableLayoutpublic double getRow(int idx)
getRow in class info.clearthought.layout.TableLayout
public void setActualRow(int idx,
double value)
public double getActualRow(int idx)
public void setRow(double[] oldArray)
setRow in class info.clearthought.layout.TableLayoutpublic double[] getRow()
getRow in class info.clearthought.layout.TableLayoutpublic void setMargin(double value)
public void setLeftMargin(double value)
public void setRightMargin(double value)
value - public void setTopMargin(double value)
value - public void setBottomMargin(double value)
value -
public void setInterColumnSpacing(int idx,
double value)
idx - value - public void setInterColumnSpacing(double value)
value -
public void setInterRowSpacing(int idx,
double value)
idx - value - public void setInterRowSpacing(double value)
value - public int getColumnWidth(int idx)
public int getActualColumnWidth(int idx)
public int getRowHeight(int idx)
public int getActualRowHeight(int idx)
public void setColumnId(int idx,
java.lang.String name)
public int getColumnId(java.lang.String name)
public void setRowId(int idx,
java.lang.String name)
public int getRowId(java.lang.String name)
public static void main(java.lang.String[] args)
args -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||