Sets the text alignment for the receiver. The alignment controls
how a line of text is positioned horizontally. The argument should
be one of <code>SWT.LEFT</code>, <code>SWT.RIGHT</code> or <code>SWT.CENTER</code>.
<p>
The default alignment is <code>SWT.LEFT</code>. Note that the receiver's
width must be set in order to use <code>SWT.RIGHT</code> or <code>SWT.CENTER</code>
alignment.
</p>
@param alignment the new alignment
@exception SWTException <ul>
<li>ERROR_GRAPHIC_DISPOSED - if the receiver has been disposed</li>
</ul>
Sets the text alignment for the receiver. The alignment controls how a line of text is positioned horizontally. The argument should be one of <code>SWT.LEFT</code>, <code>SWT.RIGHT</code> or <code>SWT.CENTER</code>. <p> The default alignment is <code>SWT.LEFT</code>. Note that the receiver's width must be set in order to use <code>SWT.RIGHT</code> or <code>SWT.CENTER</code> alignment. </p>
@param alignment the new alignment
@exception SWTException <ul> <li>ERROR_GRAPHIC_DISPOSED - if the receiver has been disposed</li> </ul>
@see #setWidth(int)