com.jme3.niftygui
クラス RenderFontJme

java.lang.Object
  上位を拡張 com.jme3.niftygui.RenderFontJme
すべての実装されたインタフェース:
de.lessvoid.nifty.spi.render.RenderFont

public class RenderFontJme
extends java.lang.Object
implements de.lessvoid.nifty.spi.render.RenderFont


コンストラクタの概要
RenderFontJme(java.lang.String name, NiftyJmeDisplay display)
          Initialize the font.
 
メソッドの概要
 void dispose()
           
 java.lang.Integer getCharacterAdvance(char currentCharacter, char nextCharacter, float size)
          Return the width of the given character including kerning information.
 int getHeight()
          get font height.
 BitmapText getText()
           
 int getWidth(java.lang.String str)
          get font width of the given string.
 
クラス java.lang.Object から継承されたメソッド
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

コンストラクタの詳細

RenderFontJme

public RenderFontJme(java.lang.String name,
                     NiftyJmeDisplay display)
Initialize the font.

パラメータ:
name - font filename
メソッドの詳細

getText

public BitmapText getText()

getHeight

public int getHeight()
get font height.

定義:
インタフェース de.lessvoid.nifty.spi.render.RenderFont 内の getHeight
戻り値:
height

getWidth

public int getWidth(java.lang.String str)
get font width of the given string.

定義:
インタフェース de.lessvoid.nifty.spi.render.RenderFont 内の getWidth
パラメータ:
text - text
戻り値:
width of the given text for the current font

getCharacterAdvance

public java.lang.Integer getCharacterAdvance(char currentCharacter,
                                             char nextCharacter,
                                             float size)
Return the width of the given character including kerning information.

定義:
インタフェース de.lessvoid.nifty.spi.render.RenderFont 内の getCharacterAdvance
パラメータ:
currentCharacter - current character
nextCharacter - next character
size - font size
戻り値:
width of the character or null when no information for the character is available

dispose

public void dispose()
定義:
インタフェース de.lessvoid.nifty.spi.render.RenderFont 内の dispose