leftBound method
Left column index for a specific column
and span
base on
the caller anchor.
Implementation
int leftBound(int column, int span) {
switch (horizontal) {
case HorizontalAnchor.start:
return column;
case HorizontalAnchor.end:
return column - span + 1;
}
}