org.xith3d.scenegraph
Class ASCIITexture

java.lang.Object
  extended by org.xith3d.scenegraph.SceneGraphObject
      extended by org.xith3d.scenegraph.NodeComponent
          extended by org.xith3d.scenegraph.Texture
              extended by org.xith3d.scenegraph.Texture2D
                  extended by org.xith3d.scenegraph.ASCIITexture
All Implemented Interfaces:
org.jagatoo.datatypes.Enableable, org.jagatoo.datatypes.NamableObject, org.jagatoo.datatypes.NamedObject, org.jagatoo.loaders.textures.AbstractTexture

public class ASCIITexture
extends Texture2D

This is a Texture with all printable ASCII characters on it.
For each character a set of texture coordinates is provided in a Map.


Nested Class Summary
 
Nested classes/interfaces inherited from class org.xith3d.scenegraph.Texture
Texture.MipmapMode
 
Field Summary
 
Fields inherited from class org.xith3d.scenegraph.SceneGraphObject
XITH3D_USERDATAKEY_OLDUSERDATA
 
Method Summary
static ASCIITexture create(org.openmali.vecmath2.Colorf color, java.awt.Font font, CharIndex charIndex)
          Creates an ASCIITexture with all ASCII chars on it and the appropriate Texture coordiantes.
 CharIndex getCharIndex()
           
 org.openmali.types.twodee.Sized2iRO getCharSize(char ch)
           
 org.openmali.vecmath2.TexCoord2f[] getTextureCoordinates(char ch)
           
 
Methods inherited from class org.xith3d.scenegraph.Texture2D
checkImageType, cloneNodeComponent, createDrawTexture, createDrawTexture, createDrawTexture, createDrawTexture, createOfflineDrawTexture, createOfflineDrawTexture, createOfflineDrawTexture, duplicateNodeComponent, getImage0, getTextureCanvas, hasTextureCanvas, hasUpdateList, isDrawTexture, setHasUpdateList, setSizeChanged
 
Methods inherited from class org.xith3d.scenegraph.Texture
addImage, enableAutoFreeLocalData, finalize, freeOpenGLResources, getBoundaryColor, getBoundaryColor, getBoundaryModeS, getBoundaryModeT, getBoundaryWidth, getCacheKey, getDefaultFilter, getFilter, getFormat, getHeight, getImage, getImagesCount, getMipMapMode, getOpenGLReferences, getOriginalHeight, getOriginalSize, getOriginalWidth, getResourceName, getSize, getStateId, getType, getWidth, hasSizeChanged, isDirty, isEnabled, isMarkedAsLocalDataToBeFreed, removeFromCache, setBoundaryColor, setBoundaryColor, setBoundaryModeS, setBoundaryModes, setBoundaryModeT, setBoundaryWidth, setCacheKey, setDefaultFilter, setEnabled, setFilter, setImage, setImage, setResourceName, toString
 
Methods inherited from class org.xith3d.scenegraph.NodeComponent
freeOpenGLResources, getDuplicateOnCloneTree, getModListener, isChanged, isChanged2, setChanged, setDuplicateOnCloneTree, setModListener
 
Methods inherited from class org.xith3d.scenegraph.SceneGraphObject
getName, getUserData, getUserData, getUserDataMap, isLive, setLive, setName, setUserData, setUserData, setUserDataRecursive, setUserDataRecursive
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.jagatoo.loaders.textures.AbstractTexture
getName, setName
 

Method Detail

getCharIndex

public final CharIndex getCharIndex()

getTextureCoordinates

public org.openmali.vecmath2.TexCoord2f[] getTextureCoordinates(char ch)

getCharSize

public org.openmali.types.twodee.Sized2iRO getCharSize(char ch)

create

public static ASCIITexture create(org.openmali.vecmath2.Colorf color,
                                  java.awt.Font font,
                                  CharIndex charIndex)
Creates an ASCIITexture with all ASCII chars on it and the appropriate Texture coordiantes.

Parameters:
color -
font -
charIndex -
Returns:
the created ASCIITexture