| java.lang.Object net.xoetrope.xui.XTextRenderer
XTextRenderer | public class XTextRenderer (Code) | | A mixin class for rendering multiline text.
Copyright: Copyright (c) Xoetrope Ltd., 1998-2003
License: see license.txt
$Revision: 1.25 $
|
Field Summary | |
final public static int | CENTER | final public static int | LEFT | final public static int | RIGHT |
CENTER | final public static int CENTER(Code) | | Center the text
|
LEFT | final public static int LEFT(Code) | | Left align the text
|
RIGHT | final public static int RIGHT(Code) | | Right align the text
|
getAlignment | public int getAlignment()(Code) | | Get the alignment value for this renderer
the alignment value |
paintText | public void paintText(Component comp, Graphics g, String text)(Code) | | Paints the text on behalf of a component
Parameters: comp - the owner component Parameters: g - the graphics context Parameters: text - the text to render. |
setAlignment | public void setAlignment(int b)(Code) | | Sets the alignment of the text.
Parameters: b - RIGHT to right align the text, LEFT for left alignment or CENTERED for centered text |
setTextDecorator | public void setTextDecorator(XTextDecorator decorator)(Code) | | Add a text decorator
Parameters: the - decorator |
setTransparent | public void setTransparent(boolean b)(Code) | | Sets the transparency of the text.
Parameters: b - true to make text transparent |
|
|