|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.xith3d.scenegraph.SceneGraphObject
org.xith3d.scenegraph.Node
org.xith3d.scenegraph.Leaf
org.xith3d.scenegraph.Shape3D
org.xith3d.ui.text2d.Character2D
public class Character2D
Represents a character in 3D space. This class is part of the DynamicText toolkit for Xith3d.
| Field Summary |
|---|
| Fields inherited from class org.xith3d.scenegraph.Node |
|---|
bounds, boundsAutoCompute, boundsDirty, globalIgnoreBounds, instanceBoundsTypeHint, parent, transformGroup, untransformedBounds |
| Fields inherited from class org.xith3d.scenegraph.SceneGraphObject |
|---|
XITH3D_USERDATAKEY_OLDUSERDATA |
| Method Summary | |
|---|---|
char |
getChar()
|
org.openmali.vecmath2.Colorf |
getColor()
|
static float |
getFontStretchFactor()
|
float |
getHeight()
|
org.openmali.vecmath2.Tuple2f |
getSize()
|
float |
getWidth()
|
static Character2D |
loadCharacter(char character,
org.openmali.vecmath2.Colorf color,
java.awt.Font font)
Creates a new Character with all attributes. |
protected static Character2D |
loadCharacter(char character,
org.openmali.vecmath2.Colorf color,
java.lang.String charId)
Creates a new Character by charId. |
static Character2D |
loadCharacter(char character,
org.openmali.vecmath2.Colorf color,
java.lang.String fontName,
int resolution,
int fontFlags)
|
static Character2D |
loadCharacter(char character,
float r,
float g,
float b,
java.awt.Font font)
Creates a new Character with all attributes. |
protected static Character2D |
loadCharacter(char character,
float r,
float g,
float b,
java.lang.String charId)
Creates a new Character by charId. |
static Character2D |
loadCharacter(char character,
float r,
float g,
float b,
java.lang.String fontName,
int resolution,
int fontFlags)
Creates a new Character with all attributes. |
static int |
numberOfLoadedChars()
For debuging purposes: Returns the number of currently loaded chars |
void |
setColor(org.openmali.vecmath2.Colorf color)
Sets the color of this char. |
void |
setColor(float r,
float g,
float b)
Sets the color of this char. |
static void |
setFontStretchFactor(float factor)
|
java.lang.String |
toString()
|
| Methods inherited from class org.xith3d.scenegraph.Shape3D |
|---|
absorbDetails, freeOpenGLResources, getAppearance, getAppearance, getGeometry, isBumpMappingEnabled, isShadowReceiver, isVisible, newAppearance, setAppearance, setBounds, setBumpMappingEnabled, setBumpMappingEnabled, setGeometry, setIsShadowReceiver, setLive, setModListener, setVisible, sharedCopy, sharedCopy, traverse, updateBounds, updateBoundsCheap, updateWorldTransform, verifyAppChange |
| Methods inherited from class org.xith3d.scenegraph.Leaf |
|---|
dump, getPickHost, setPickHost |
| Methods inherited from class org.xith3d.scenegraph.SceneGraphObject |
|---|
getName, getUserData, getUserData, getUserDataMap, isLive, setName, setUserData, setUserData, setUserDataRecursive, setUserDataRecursive |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Method Detail |
|---|
public static void setFontStretchFactor(float factor)
public static float getFontStretchFactor()
public char getChar()
public static int numberOfLoadedChars()
public void setColor(float r,
float g,
float b)
r - new Colorg - new Colorb - new Colorpublic void setColor(org.openmali.vecmath2.Colorf color)
color - new Colorpublic org.openmali.vecmath2.Colorf getColor()
public org.openmali.vecmath2.Tuple2f getSize()
public float getWidth()
public float getHeight()
public java.lang.String toString()
toString in class SceneGraphObject
public static Character2D loadCharacter(char character,
float r,
float g,
float b,
java.awt.Font font)
character - new characterr - the red value of the colorg - the green value of the colorb - the blue value of the colorfont - the font to use
public static Character2D loadCharacter(char character,
org.openmali.vecmath2.Colorf color,
java.awt.Font font)
character - new charactercolor - new Colorfont - the font to use
public static Character2D loadCharacter(char character,
float r,
float g,
float b,
java.lang.String fontName,
int resolution,
int fontFlags)
character - new characterr - new Colorg - new Colorb - new ColorfontName - the font to useresolution - resolution to usefontFlags - fontflags to use
public static Character2D loadCharacter(char character,
org.openmali.vecmath2.Colorf color,
java.lang.String fontName,
int resolution,
int fontFlags)
protected static Character2D loadCharacter(char character,
float r,
float g,
float b,
java.lang.String charId)
character - new characterr - new Colorg - new Colorb - new ColorcharId - new charId
protected static Character2D loadCharacter(char character,
org.openmali.vecmath2.Colorf color,
java.lang.String charId)
character - new charactercolor - new ColorcharId - new charId
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||