|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.threerings.opengl.gui.text.TextFactory
public abstract class TextFactory
Creates instances of Text using a particular technology and a particular font
configuration.
| Field Summary |
|---|
| Fields inherited from interface com.threerings.opengl.gui.UIConstants |
|---|
BOTTOM, CENTER, DEFAULT_SIZE, DEFAULT_SPACING, GLOW, HORIZONTAL, LEFT, NORMAL, OUTLINE, OVERLAPPING, PLAIN, RIGHT, SHADOW, TOP, VERTICAL |
| Constructor Summary | |
|---|---|
TextFactory()
|
|
| Method Summary | |
|---|---|
Text |
createText(String text,
Color4f color)
Creates a text instance using our the font configuration associated with this text factory and the foreground color specified. |
abstract Text |
createText(String text,
Color4f color,
int effect,
int effectSize,
Color4f effectColor,
boolean useAdvance)
Creates a text instance using our the font configuration associated with this text factory and the foreground color, text effect and text effect color specified. |
abstract int |
getHeight()
Returns the height of our text. |
abstract Text[] |
wrapText(String text,
Color4f color,
int effect,
int effectSize,
Color4f effectColor,
int maxWidth)
Wraps a string into a set of text objects that do not exceed the specified width. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TextFactory()
| Method Detail |
|---|
public abstract int getHeight()
public Text createText(String text,
Color4f color)
public abstract Text createText(String text,
Color4f color,
int effect,
int effectSize,
Color4f effectColor,
boolean useAdvance)
useAdvance - if true, the advance to the next insertion point will be included in the
bounds of the created text (this is needed by editable text displays).
public abstract Text[] wrapText(String text,
Color4f color,
int effect,
int effectSize,
Color4f effectColor,
int maxWidth)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||