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