public int getXOffset(TypedLayout line) { HorizontalAlignmentValue horizontalAlignment = getContainer().getStyle().getCompiledHorizontalAlignment(); return horizontalAlignment.getX(line.getWidth(), getContainer().getBounds()); }