*
* @param spec the original column specification
* @return the column specification with flipped default alignment
*/
static ColumnSpec flipped(ColumnSpec spec) {
DefaultAlignment alignment = spec.getDefaultAlignment();
if (alignment == ColumnSpec.LEFT)
alignment = ColumnSpec.RIGHT;
else if (alignment == ColumnSpec.RIGHT)
alignment = ColumnSpec.LEFT;
return new ColumnSpec(alignment, spec.getSize(), spec.getResizeWeight());