| GBCF Grib Bag Constraints Factory. This class exists mostly
for tidying up code that used the exsivly verbose GridBagConstraints
object, hence the shortened class name.
By default a two column equal with table is assumed, to support other
column layouts use the constructor that take an array of column wieghts
Factory class for generating constraints for a equal width column table.
the table is similar to the following table rendered in HTML
data | data |
data |
data | data |
data | data |
author: not attributable version: 1.0
Constructor Summary | |
public | GBCF() | public | GBCF(double[] columnWeights) |
columnWeights | protected double[] columnWeights(Code) | | |
GBCF | public GBCF(double[] columnWeights)(Code) | | to support more than two columns or vary the column wieghtings
Parameters: columnWeights - double[] |
getCell | public GridBagConstraints getCell(int row, int col)(Code) | | Parameters: row - int the 0 indexed row Parameters: col - int the 0 indexed column Parameters: span - boolean does cell span both columns GridBagConstraints |
getSpan | public GridBagConstraints getSpan(int row)(Code) | | Parameters: row - int the 0 indexed row Parameters: first - boolean is this the first column or the second Parameters: span - boolean does cell span both columns GridBagConstraints |
|