|
|||||||||
| 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 | |
|---|---|
protected float |
_alpha
The alpha value with which to render the text. |
protected Box |
_localBounds
The bounds of the text. |
protected Text |
_text
The text to render. |
| Fields inherited from class com.threerings.opengl.scene.SimpleSceneElement |
|---|
_bounds, _influences, _lastVisit, _nbounds, _scene, _tickPolicy, _userObject |
| Fields inherited from class com.threerings.opengl.util.SimpleTransformable |
|---|
_transform |
| Fields inherited from class com.threerings.opengl.util.SimpleRenderable |
|---|
_batch, _ctx, _priority, _queue |
| 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 | |
|---|---|
protected RenderState[] |
createStates()
Creates the state set for this object. |
protected void |
draw()
Draws the geometry in immediate mode. |
void |
enqueue()
Enqueues this object for rendering. |
float |
getAlpha()
Returns the alpha value with which the text is being rendered. |
protected Box |
getLocalBounds()
Returns the local bounds of the element. |
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 |
|---|
boundsDidChange, boundsWillChange, computeBounds, getBounds, getIntersection, getTickPolicy, getUserObject, setInfluences, setTickPolicy, setTransform, setUserObject, tick, updateBounds, updateLastVisit, wasAdded, willBeRemoved |
| Methods inherited from class com.threerings.opengl.util.SimpleTransformable |
|---|
getCenter, getTransform |
| Methods inherited from class com.threerings.opengl.util.SimpleRenderable |
|---|
composite, createBatch, getStates |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface com.threerings.opengl.compositor.Compositable |
|---|
composite |
| Field Detail |
|---|
protected Text _text
protected Box _localBounds
protected float _alpha
| 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 SimpleTransformableprotected RenderState[] createStates()
SimpleRenderable
createStates in class SimpleTransformableprotected Box getLocalBounds()
SimpleSceneElementBox.ZERO;
override to return actual local bounds.
getLocalBounds in class SimpleSceneElementprotected void draw()
SimpleRenderable
draw in class SimpleRenderable
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||