com.jme3.font
クラス BitmapFont

java.lang.Object
  上位を拡張 com.jme3.font.BitmapFont
すべての実装されたインタフェース:
Savable

public class BitmapFont
extends java.lang.Object
implements Savable

Represents a font within jME that is generated with the AngelCode Bitmap Font Generator


入れ子のクラスの概要
static class BitmapFont.Align
          Specifies horizontal alignment for text.
static class BitmapFont.VAlign
          Specifies vertical alignment for text.
 
コンストラクタの概要
BitmapFont()
           
 
メソッドの概要
 BitmapText createLabel(java.lang.String content)
           
 float getCharacterAdvance(char curChar, char nextChar, float size)
           
 BitmapCharacterSet getCharSet()
           
 float getLineHeight(com.jme3.font.StringBlock sb)
          Gets the line height of a StringBlock.
 float getLineWidth(java.lang.CharSequence text)
           
 Material getPage(int index)
           
 int getPageSize()
           
 float getPreferredSize()
           
 void merge(BitmapFont newFont)
          Merge two fonts.
 void read(JmeImporter im)
           
 void setCharSet(BitmapCharacterSet charSet)
           
 void setPages(Material[] pages)
           
 void setStyle(int style)
           
 void write(JmeExporter ex)
           
 
クラス java.lang.Object から継承されたメソッド
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

コンストラクタの詳細

BitmapFont

public BitmapFont()
メソッドの詳細

createLabel

public BitmapText createLabel(java.lang.String content)

getPreferredSize

public float getPreferredSize()

setCharSet

public void setCharSet(BitmapCharacterSet charSet)

setPages

public void setPages(Material[] pages)

getPage

public Material getPage(int index)

getPageSize

public int getPageSize()

getCharSet

public BitmapCharacterSet getCharSet()

getLineHeight

public float getLineHeight(com.jme3.font.StringBlock sb)
Gets the line height of a StringBlock.

パラメータ:
sb -
戻り値:

getCharacterAdvance

public float getCharacterAdvance(char curChar,
                                 char nextChar,
                                 float size)

write

public void write(JmeExporter ex)
           throws java.io.IOException
定義:
インタフェース Savable 内の write
例外:
java.io.IOException

read

public void read(JmeImporter im)
          throws java.io.IOException
定義:
インタフェース Savable 内の read
例外:
java.io.IOException

getLineWidth

public float getLineWidth(java.lang.CharSequence text)

merge

public void merge(BitmapFont newFont)
Merge two fonts. If two font have the same style, merge will fail.

パラメータ:
styleSet - Style must be assigned to this.

setStyle

public void setStyle(int style)