|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.threerings.opengl.gui.Component
com.threerings.opengl.gui.TextComponent
public abstract class TextComponent
Defines methods and mechanisms common to components that render a string of text.
| Field Summary |
|---|
| Fields inherited from class com.threerings.opengl.gui.Component |
|---|
DEFAULT, DISABLED, HOVER |
| Constructor Summary | |
|---|---|
TextComponent(GlContext ctx)
Creates a new text component. |
|
| Method Summary | |
|---|---|
Color4f |
getEffectColor()
Returns the color to use for our text effect. |
int |
getEffectSize()
Returns the effect size for this component's text. |
int |
getHorizontalAlignment()
Returns the horizontal alignment for this component's text. |
int |
getLineSpacing()
Returns the line spacing for our text. |
abstract String |
getText()
Returns the text currently being displayed by this component. |
int |
getTextEffect()
Returns the effect for this component's text. |
TextFactory |
getTextFactory()
Returns a text factory suitable for creating text in the style defined by the component's current state. |
int |
getVerticalAlignment()
Returns the vertical alignment for this component's text. |
abstract void |
setText(String text)
Updates the text displayed by this component. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TextComponent(GlContext ctx)
| Method Detail |
|---|
public abstract void setText(String text)
public abstract String getText()
public TextFactory getTextFactory()
public int getHorizontalAlignment()
public int getVerticalAlignment()
public int getTextEffect()
public int getEffectSize()
public Color4f getEffectColor()
public int getLineSpacing()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||