| This class represents location of a column in tree table.
First attribute of location is alignment. Alignment specifies,
whether the column is located on the left side of the table, on the right
side, or in the middle. Columns in the middle of the table take all space
between columns on the left and columns on the right.
Next two attributes are size and unit:
- For columns aligned to the left and to the right, the size
represents the actual width of the column, according to chosen unit. Possible
units for left and right aligned columns are PX, EM
and PERCENT.
- For columns in the middle, the only valid unit is PROPORTIONAL.
These columns take all available space between columns on the left and
columns on the right. How this space is divided between middle columns is
determined by the size. In this case the size can be understand as
weight. Columns with bigger size take more space than columns with smaller
size. For example, if there are three columns and their sizes are 2, 1, 1,
the first column thakes 50% of the space and the second two columns take 25%
each.
author: Matej Knopp |