com.jme3.font
クラス BitmapText

java.lang.Object
  上位を拡張 com.jme3.scene.Spatial
      上位を拡張 com.jme3.scene.Node
          上位を拡張 com.jme3.font.BitmapText
すべての実装されたインタフェース:
Asset, Collidable, Savable, java.lang.Cloneable

public class BitmapText
extends Node


入れ子のクラスの概要
 
クラス com.jme3.scene.Spatial から継承された入れ子のクラス/インタフェース
Spatial.CullHint
 
フィールドの概要
 
クラス com.jme3.scene.Spatial から継承されたフィールド
queueDistance
 
コンストラクタの概要
BitmapText(BitmapFont font)
           
BitmapText(BitmapFont font, boolean rightToLeft)
           
BitmapText(BitmapFont font, boolean rightToLeft, boolean arrayBased)
           
 
メソッドの概要
 BitmapText clone()
           
 BitmapFont.Align getAlignment()
           
 ColorRGBA getColor()
           
 BitmapFont getFont()
           
 float getHeight()
           
 int getLineCount()
           
 float getLineHeight()
           
 float getLineWidth()
           
 LineWrapMode getLineWrapMode()
           
 java.lang.String getText()
           
 BitmapFont.VAlign getVerticalAlignment()
           
 void render(RenderManager rm)
           
 void setAlignment(BitmapFont.Align align)
          Set horizontal alignment.
 void setBox(Rectangle rect)
          Define area where bitmaptext will be rendered
 void setColor(ColorRGBA color)
          changes text color. all substring colors are deleted.
 void setColor(int start, int end, ColorRGBA color)
          Set the color of substring.
 void setColor(java.lang.String regexp, ColorRGBA color)
          Set the color of substring.
 void setEllipsisChar(char c)
          for setLineWrapType(LineWrapType.NoWrap), set the last character when the text exceeds the bound.
 void setLineWrapMode(LineWrapMode wrap)
          Available only when bounding is set.
 void setSize(float size)
          Changes text size
 void setStyle(int start, int end, int style)
          Set the font style of substring.
 void setStyle(java.lang.String regexp, int style)
          Set the font style of substring.
 void setTabPosition(float... tabs)
           
 void setTabWidth(float width)
          used for the tabs over the last tab position.
 void setText(java.lang.CharSequence text)
           
 void setText(java.lang.String text)
           
 void setVerticalAlignment(BitmapFont.VAlign align)
          Set vertical alignment.
 void updateLogicalState(float tpf)
          updateLogicalState calls the update() method for all controls attached to this Spatial.
 
クラス com.jme3.scene.Node から継承されたメソッド
attachChild, attachChildAt, clone, collideWith, deepClone, depthFirstTraversal, descendantMatches, descendantMatches, descendantMatches, detachAllChildren, detachChild, detachChildAt, detachChildNamed, getChild, getChild, getChildIndex, getChildren, getQuantity, getTriangleCount, getVertexCount, hasChild, read, setLodLevel, setMaterial, setModelBound, swapChildren, updateGeometricState, updateModelBound, write
 
クラス com.jme3.scene.Spatial から継承されたメソッド
addControl, addLight, breadthFirstTraversal, center, checkCulling, getControl, getControl, getCullHint, getKey, getLastFrustumIntersection, getLocalCullHint, getLocalLightList, getLocalQueueBucket, getLocalRotation, getLocalScale, getLocalShadowMode, getLocalToWorldMatrix, getLocalTransform, getLocalTranslation, getName, getNumControls, getParent, getQueueBucket, getShadowMode, getUserData, getUserDataKeys, getWorldBound, getWorldLightList, getWorldRotation, getWorldScale, getWorldTransform, getWorldTranslation, hasAncestor, localToWorld, lookAt, matches, move, move, removeControl, removeControl, removeFromParent, removeLight, rotate, rotate, rotateUpTo, runControlRender, scale, scale, setCullHint, setKey, setLastFrustumIntersection, setLocalRotation, setLocalRotation, setLocalScale, setLocalScale, setLocalScale, setLocalTransform, setLocalTranslation, setLocalTranslation, setName, setQueueBucket, setShadowMode, setUserData, toString, worldToLocal
 
クラス java.lang.Object から継承されたメソッド
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

コンストラクタの詳細

BitmapText

public BitmapText(BitmapFont font)

BitmapText

public BitmapText(BitmapFont font,
                  boolean rightToLeft)

BitmapText

public BitmapText(BitmapFont font,
                  boolean rightToLeft,
                  boolean arrayBased)
メソッドの詳細

clone

public BitmapText clone()
オーバーライド:
クラス Spatial 内の clone
戻り値:
A clone of this Spatial, the scene graph in its entirety is cloned and can be altered independently of the original scene graph. Note that meshes of geometries are not cloned explicitly, they are shared if static, or specially cloned if animated. All controls will be cloned using the Control.cloneForSpatial method on the clone.
関連項目:
Mesh.cloneForAnim()

getFont

public BitmapFont getFont()

setSize

public void setSize(float size)
Changes text size

パラメータ:
size - text size

setText

public void setText(java.lang.CharSequence text)
パラメータ:
text - charsequence to change text to

setText

public void setText(java.lang.String text)
パラメータ:
text - String to change text to

getText

public java.lang.String getText()
戻り値:
returns text

getColor

public ColorRGBA getColor()
戻り値:
color of the text

setColor

public void setColor(ColorRGBA color)
changes text color. all substring colors are deleted.

パラメータ:
color - new color of text

setBox

public void setBox(Rectangle rect)
Define area where bitmaptext will be rendered

パラメータ:
rect - position and size box where text is rendered

getLineHeight

public float getLineHeight()
戻り値:
height of the line

getHeight

public float getHeight()
戻り値:
height of whole textblock

getLineWidth

public float getLineWidth()
戻り値:
width of line

getLineCount

public int getLineCount()
戻り値:
line count

getLineWrapMode

public LineWrapMode getLineWrapMode()

setAlignment

public void setAlignment(BitmapFont.Align align)
Set horizontal alignment. Applicable only when text bound is set.

パラメータ:
align -

setVerticalAlignment

public void setVerticalAlignment(BitmapFont.VAlign align)
Set vertical alignment. Applicable only when text bound is set.

パラメータ:
align -

getAlignment

public BitmapFont.Align getAlignment()

getVerticalAlignment

public BitmapFont.VAlign getVerticalAlignment()

setStyle

public void setStyle(int start,
                     int end,
                     int style)
Set the font style of substring. If font doesn't contain style, default style is used

パラメータ:
start - start index to set style. inclusive.
end - end index to set style. EXCLUSIVE.
style -

setStyle

public void setStyle(java.lang.String regexp,
                     int style)
Set the font style of substring. If font doesn't contain style, default style is applied

パラメータ:
regexp - regular expression
style -

setColor

public void setColor(int start,
                     int end,
                     ColorRGBA color)
Set the color of substring.

パラメータ:
start - start index to set style. inclusive.
end - end index to set style. EXCLUSIVE.
color -

setColor

public void setColor(java.lang.String regexp,
                     ColorRGBA color)
Set the color of substring.

パラメータ:
regexp - regular expression
color -

setTabPosition

public void setTabPosition(float... tabs)
パラメータ:
tabs - tab positions

setTabWidth

public void setTabWidth(float width)
used for the tabs over the last tab position.

パラメータ:
width - tab size

setEllipsisChar

public void setEllipsisChar(char c)
for setLineWrapType(LineWrapType.NoWrap), set the last character when the text exceeds the bound.

パラメータ:
c -

setLineWrapMode

public void setLineWrapMode(LineWrapMode wrap)
Available only when bounding is set. setBox() method call is needed in advance. true when

パラメータ:
wrap - NoWrap : Letters over the text bound is not shown. the last character is set to '...'(0x2026) Character: Character is split at the end of the line. Word : Word is split at the end of the line.

updateLogicalState

public void updateLogicalState(float tpf)
クラス Spatial の記述:
updateLogicalState calls the update() method for all controls attached to this Spatial.

オーバーライド:
クラス Node 内の updateLogicalState
パラメータ:
tpf - Time per frame.
関連項目:
Spatial.addControl(com.jme3.scene.control.Control)

render

public void render(RenderManager rm)