Code example for Layout

Methods: getLineForVerticalgetOffsetForHorizontal