|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.jme.scene.Spatial
com.jme.scene.Geometry
com.jme.scene.Text
Text allows text to be displayed on the screen. The
renderstate of this Geometry must be a valid font texture.
| Field Summary |
| Fields inherited from class com.jme.scene.Geometry |
bound, color, colorBuf, normal, normBuf, texBuf, texture, vertBuf, vertex, vertQuantity |
| Fields inherited from class com.jme.scene.Spatial |
currentStates, defaultStateList, forceCull, forceView, frustrumIntersects, geometricalControllers, lightCombineMode, localRotation, localScale, localTranslation, name, parent, queueDistance, renderQueueMode, renderStateList, textureCombineMode, worldBound, worldRotation, worldScale, worldTranslation, zOrder |
| Constructor Summary | |
Text(java.lang.String name,
java.lang.String text)
Creates a texture object that starts with the given text. |
|
| Method Summary | |
void |
draw(Renderer r)
draw calls super to set the render state then calls the
renderer to display the text string. |
void |
drawBounds(Renderer r)
drawBounds calls super to set the render state then passes
itself to the renderer. |
void |
findCollisions(Spatial scene,
CollisionResults results)
checks this spatial against a second spatial, any collisions are stored in the results object. |
float |
getHeight()
|
java.lang.StringBuffer |
getText()
getText retrieves the text string of this
Text object. |
ColorRGBA |
getTextColor()
Returns the current text color. |
float |
getWidth()
|
boolean |
hasCollision(Spatial scene,
boolean checkTriangles)
|
void |
print(java.lang.String text)
print sets the text to be rendered on the next render
pass. |
void |
print(java.lang.StringBuffer text)
Sets the text to be rendered on the next render. |
void |
setTextColor(ColorRGBA color)
Sets the color of the text. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public Text(java.lang.String name,
java.lang.String text)
name - the name of the scene element. This is required for
identification and comparision purposes.text - The text to show.TextureManager| Method Detail |
public void print(java.lang.String text)
print sets the text to be rendered on the next render
pass.
text - the text to display.public void print(java.lang.StringBuffer text)
text - The text to display.public java.lang.StringBuffer getText()
getText retrieves the text string of this
Text object.
public void draw(Renderer r)
draw calls super to set the render state then calls the
renderer to display the text string.
draw in class Geometryr - the renderer used to display the text.Spatial.draw(com.jme.renderer.Renderer)public void drawBounds(Renderer r)
drawBounds calls super to set the render state then passes
itself to the renderer.
drawBounds in class Geometryr - the renderer to displaypublic void setTextColor(ColorRGBA color)
color - Color to set.public ColorRGBA getTextColor()
public void findCollisions(Spatial scene,
CollisionResults results)
Spatial
findCollisions in class Spatialscene - the scene to test against.results - the results of the collisions.
public boolean hasCollision(Spatial scene,
boolean checkTriangles)
hasCollision in class Spatialpublic float getWidth()
public float getHeight()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||