com.jme.widget.font
Class WidgetAbstractFont

java.lang.Object
  extended bycom.jme.widget.font.WidgetAbstractFont
All Implemented Interfaces:
WidgetFont
Direct Known Subclasses:
WidgetLWJGLFont

public abstract class WidgetAbstractFont
extends java.lang.Object
implements WidgetFont

Author:
Gregg Patton To change the template for this generated type comment go to Window>Preferences>Java>Code Generation>Code and Comments

Field Summary
protected  WidgetFontHeader header
           
protected  Texture texture
           
 
Constructor Summary
WidgetAbstractFont(java.lang.String name)
           
 
Method Summary
 void create(java.lang.String filename)
           
 void create(java.net.URL filename)
           
 java.lang.String getName()
           
 Vector2f getStringSize(java.lang.String text)
           
 Texture getTexture()
           
abstract  void renderString(java.lang.String text, float x, float y, float scalar, ColorRGBA topColor, ColorRGBA bottomColor)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

header

protected WidgetFontHeader header

texture

protected Texture texture
Constructor Detail

WidgetAbstractFont

public WidgetAbstractFont(java.lang.String name)
Method Detail

create

public void create(java.lang.String filename)
Specified by:
create in interface WidgetFont

create

public void create(java.net.URL filename)

getStringSize

public Vector2f getStringSize(java.lang.String text)
Specified by:
getStringSize in interface WidgetFont

getTexture

public Texture getTexture()
Specified by:
getTexture in interface WidgetFont

getName

public java.lang.String getName()
Specified by:
getName in interface WidgetFont

renderString

public abstract void renderString(java.lang.String text,
                                  float x,
                                  float y,
                                  float scalar,
                                  ColorRGBA topColor,
                                  ColorRGBA bottomColor)
Specified by:
renderString in interface WidgetFont

toString

public java.lang.String toString()