|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.threerings.opengl.util.SimpleRenderable
com.threerings.opengl.util.SimpleTransformable
com.threerings.opengl.scene.SimpleSceneElement
com.threerings.opengl.util.TextBillboard
public class TextBillboard
A text billboard that may be embedded within a scene.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface com.threerings.opengl.scene.SceneElement |
|---|
SceneElement.TickPolicy |
| 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 | |
|---|---|
TextBillboard(GlContext ctx,
Font font,
boolean antialias,
String text,
Color4f color)
Creates a new text object using a character text factory. |
|
TextBillboard(GlContext ctx,
Font font,
boolean antialias,
String text,
Color4f color,
int effect,
int effectSize,
Color4f effectColor)
Creates a new text object using a character text factory. |
|
TextBillboard(GlContext ctx,
Text text)
Creates a new text object. |
|
| Method Summary | |
|---|---|
void |
enqueue()
Enqueues this object for rendering. |
float |
getAlpha()
Returns the alpha value with which the text is being rendered. |
Text |
getText()
Returns the text being rendered. |
void |
setAlpha(float alpha)
Sets the alpha value with which to render the text. |
void |
setText(Font font,
boolean antialias,
String text,
Color4f color)
Sets the text using a character text factory. |
void |
setText(Font font,
boolean antialias,
String text,
Color4f color,
int effect,
int effectSize,
Color4f effectColor)
Sets the text using a character text factory. |
void |
setText(Text text)
Sets the text to render. |
| Methods inherited from class com.threerings.opengl.scene.SimpleSceneElement |
|---|
getBounds, getIntersection, getTickPolicy, getUserObject, setInfluences, setTickPolicy, setTransform, setUserObject, tick, updateBounds, updateLastVisit, wasAdded, willBeRemoved |
| Methods inherited from class com.threerings.opengl.util.SimpleTransformable |
|---|
getTransform |
| Methods inherited from class com.threerings.opengl.util.SimpleRenderable |
|---|
composite, getStates |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface com.threerings.opengl.compositor.Compositable |
|---|
composite |
| Constructor Detail |
|---|
public TextBillboard(GlContext ctx,
Font font,
boolean antialias,
String text,
Color4f color)
public TextBillboard(GlContext ctx,
Font font,
boolean antialias,
String text,
Color4f color,
int effect,
int effectSize,
Color4f effectColor)
public TextBillboard(GlContext ctx,
Text text)
| Method Detail |
|---|
public void setText(Font font,
boolean antialias,
String text,
Color4f color)
public void setText(Font font,
boolean antialias,
String text,
Color4f color,
int effect,
int effectSize,
Color4f effectColor)
public void setText(Text text)
public Text getText()
public void setAlpha(float alpha)
public float getAlpha()
public void enqueue()
Enqueueable
enqueue in interface Enqueueableenqueue in class SimpleTransformable
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||