com.jmex.font3d
Interface JmeText

All Known Implementing Classes:
Text2D, Text3D

public interface JmeText

This is the interface for some peace of text in JME. The implementation, and hence the rendering of the text depends on the kind of text (3D, 2D, etc.). It is good practice to create an implementation of TextFactory and then have that create instances of JmeText.

Author:
emanuel

Method Summary
 void appendText(java.lang.String text)
          Append text to the string of text that this object is visualizing.
 TextFactory getFactory()
           
 int getFlags()
           
 float getSize()
           
 java.lang.StringBuffer getText()
           
 void setLocalRotation(Matrix3f rotation)
           
 void setLocalRotation(Quaternion quaternion)
           
 void setLocalScale(float localScale)
           
 void setLocalScale(Vector3f trans)
           
 void setLocalTranslation(Vector3f trans)
           
 void setSize(float size)
          change the size of the font, this will most likely be implemented with scaling, so watch out when using this and setLocalScale(...).
 void setText(java.lang.String text)
          Sets the string of text that this object is visualizing, the geometry of the object should change to reflect the change.
 

Method Detail

getFactory

TextFactory getFactory()
Returns:
the factory where this text was created, or null if it does not know.

getText

java.lang.StringBuffer getText()
Returns:
the string of text that this object is visualizing.

setText

void setText(java.lang.String text)
Sets the string of text that this object is visualizing, the geometry of the object should change to reflect the change.

Parameters:
text -

appendText

void appendText(java.lang.String text)
Append text to the string of text that this object is visualizing.

Parameters:
text -

getFlags

int getFlags()
Returns:
the flags that were given when this text was created.

getSize

float getSize()
Returns:
the size of the text (normally size 12 refers to 12pt, in jme I guess it refers to jme-units).

setSize

void setSize(float size)
change the size of the font, this will most likely be implemented with scaling, so watch out when using this and setLocalScale(...).

Parameters:
size -

setLocalRotation

void setLocalRotation(Matrix3f rotation)

setLocalRotation

void setLocalRotation(Quaternion quaternion)

setLocalScale

void setLocalScale(float localScale)

setLocalScale

void setLocalScale(Vector3f trans)

setLocalTranslation

void setLocalTranslation(Vector3f trans)