|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.evanmclean.evlib.tablelayout.TableLayoutFactory
public final class TableLayoutFactory
Utility to make it easy to create TableLayout objects with the specified rows and columns. See summary for an example of typical usage.
Field Summary | |
---|---|
double[] |
cols
|
int |
hgap
|
double[] |
rows
|
int |
vgap
|
Fields inherited from interface com.evanmclean.evlib.tablelayout.TL |
---|
F, FILL, M, MINIMUM, P, PREFERRED |
Method Summary | |
---|---|
static TableLayoutFactory |
build()
Create a factory builder, with horizontal and vertical gaps of zero. |
static TableLayoutFactory |
build(int gap)
Create a factory builder, with a specified horizontal and vertical gap. |
static TableLayoutFactory |
build(int hgap,
int vgap)
Create a factory builder, with a specified horizontal and vertical gaps. |
TableLayoutFactory |
cols(double... colargs)
Set the columns to be used in the layout. |
TableLayoutFactory |
fillcols(boolean... colargs)
Set the columns to be used to either FILL or PREFERRED depending on if the boolean arg is true or false respectively. |
TableLayoutFactory |
fillrows(boolean... rowargs)
Set the rows to be used to either FILL or PREFERRED depending on if the boolean arg is true or false respectively. |
TableLayoutFactory |
gap(int gap)
Set the horizontal and vertical gaps to the same value. |
TableLayoutFactory |
gap(int hgap,
int vgap)
Set the vertical gap. |
TableLayoutFactory |
hgap(int hgap)
Set the horizontal gap. |
info.clearthought.layout.TableLayout |
make()
Create the table layout with the specified rows and columns. |
TableLayoutFactory |
rows(double... rowargs)
Set the rows to be used in the layout. |
TableLayoutFactory |
vgap(int vgap)
Set the vertical gap. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public double[] cols
public double[] rows
public int vgap
public int hgap
Method Detail |
---|
public static TableLayoutFactory build()
public static TableLayoutFactory build(int gap)
gap
- The value for both the horizontal and vertical gaps.
public static TableLayoutFactory build(int hgap, int vgap)
hgap
- The horizontal gap.vgap
- The vertical gap.
public TableLayoutFactory cols(double... colargs)
colargs
-
public TableLayoutFactory fillcols(boolean... colargs)
colargs
-
public TableLayoutFactory fillrows(boolean... rowargs)
rowargs
-
public TableLayoutFactory gap(int gap)
gap
-
public TableLayoutFactory gap(int hgap, int vgap)
hgap
- vgap
-
public TableLayoutFactory hgap(int hgap)
hgap
-
public info.clearthought.layout.TableLayout make()
TLFException
if the columns or rows were not specified, or either
of the arrays is zero length.
TLFException
- If the columns or rows were not specified, or either of the arrays
is zero length.public TableLayoutFactory rows(double... rowargs)
rowargs
-
public TableLayoutFactory vgap(int vgap)
vgap
-
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |