public class Text extends RectangularShape
IUpdateHandler.IUpdateHandlerMatcherIDisposable.AlreadyDisposedExceptionITouchArea.ITouchAreaMatcher| Modifier and Type | Field and Description |
|---|---|
static int |
COLOR_INDEX |
static float |
LEADING_DEFAULT |
static int |
LETTER_SIZE |
protected int |
mCharactersMaximum |
protected int |
mCharactersToDraw |
protected IFont |
mFont |
protected float |
mLineAlignmentWidth |
protected java.util.ArrayList<java.lang.CharSequence> |
mLines |
protected float |
mLineWidthMaximum |
protected IFloatList |
mLineWidths |
protected java.lang.CharSequence |
mText |
protected TextOptions |
mTextOptions |
protected ITextVertexBufferObject |
mTextVertexBufferObject |
protected int |
mVertexCount |
protected int |
mVertexCountToDraw |
static int |
TEXTURECOORDINATES_INDEX_U |
static int |
TEXTURECOORDINATES_INDEX_V |
static int |
VERTEX_INDEX_X |
static int |
VERTEX_INDEX_Y |
static int |
VERTEX_SIZE |
static int |
VERTEX_STRIDE |
static VertexBufferObjectAttributes |
VERTEXBUFFEROBJECTATTRIBUTES_DEFAULT |
static int |
VERTICES_PER_LETTER |
mHeight, mWidthmBlendFunctionDestination, mBlendFunctionSource, mBlendingEnabled, mShaderProgrammChildren, mChildrenIgnoreUpdate, mChildrenSortPending, mChildrenVisible, mColor, mCullingEnabled, mDisposed, mIgnoreUpdate, mRotation, mRotationCenterX, mRotationCenterY, mScaleCenterX, mScaleCenterY, mScaleX, mScaleY, mSkewCenterX, mSkewCenterY, mSkewX, mSkewY, mTag, mVisible, mX, mY, mZIndexBLENDFUNCTION_DESTINATION_DEFAULT, BLENDFUNCTION_DESTINATION_PREMULTIPLYALPHA_DEFAULT, BLENDFUNCTION_SOURCE_DEFAULT, BLENDFUNCTION_SOURCE_PREMULTIPLYALPHA_DEFAULTTAG_INVALID| Constructor and Description |
|---|
Text(float pX,
float pY,
IFont pFont,
java.lang.CharSequence pText,
int pCharactersMaximum,
TextOptions pTextOptions,
ITextVertexBufferObject pTextVertexBufferObject) |
Text(float pX,
float pY,
IFont pFont,
java.lang.CharSequence pText,
int pCharactersMaximum,
TextOptions pTextOptions,
ITextVertexBufferObject pTextVertexBufferObject,
ShaderProgram pShaderProgram) |
Text(float pX,
float pY,
IFont pFont,
java.lang.CharSequence pText,
int pCharactersMaximum,
TextOptions pTextOptions,
VertexBufferObjectManager pVertexBufferObjectManager) |
Text(float pX,
float pY,
IFont pFont,
java.lang.CharSequence pText,
int pCharactersMaximum,
TextOptions pTextOptions,
VertexBufferObjectManager pVertexBufferObjectManager,
DrawType pDrawType) |
Text(float pX,
float pY,
IFont pFont,
java.lang.CharSequence pText,
int pCharactersMaximum,
TextOptions pTextOptions,
VertexBufferObjectManager pVertexBufferObjectManager,
DrawType pDrawType,
ShaderProgram pShaderProgram) |
Text(float pX,
float pY,
IFont pFont,
java.lang.CharSequence pText,
int pCharactersMaximum,
VertexBufferObjectManager pVertexBufferObjectManager) |
Text(float pX,
float pY,
IFont pFont,
java.lang.CharSequence pText,
int pCharactersMaximum,
VertexBufferObjectManager pVertexBufferObjectManager,
DrawType pDrawType) |
Text(float pX,
float pY,
IFont pFont,
java.lang.CharSequence pText,
int pCharactersMaximum,
VertexBufferObjectManager pVertexBufferObjectManager,
DrawType pDrawType,
ShaderProgram pShaderProgram) |
Text(float pX,
float pY,
IFont pFont,
java.lang.CharSequence pText,
int pCharactersMaximum,
VertexBufferObjectManager pVertexBufferObjectManager,
ShaderProgram pShaderProgram) |
Text(float pX,
float pY,
IFont pFont,
java.lang.CharSequence pText,
TextOptions pTextOptions,
VertexBufferObjectManager pVertexBufferObjectManager) |
Text(float pX,
float pY,
IFont pFont,
java.lang.CharSequence pText,
TextOptions pTextOptions,
VertexBufferObjectManager pVertexBufferObjectManager,
DrawType pDrawType) |
Text(float pX,
float pY,
IFont pFont,
java.lang.CharSequence pText,
TextOptions pTextOptions,
VertexBufferObjectManager pVertexBufferObjectManager,
DrawType pDrawType,
ShaderProgram pShaderProgram) |
Text(float pX,
float pY,
IFont pFont,
java.lang.CharSequence pText,
TextOptions pTextOptions,
VertexBufferObjectManager pVertexBufferObjectManager,
ShaderProgram pShaderProgram) |
Text(float pX,
float pY,
IFont pFont,
java.lang.CharSequence pText,
VertexBufferObjectManager pVertexBufferObjectManager) |
Text(float pX,
float pY,
IFont pFont,
java.lang.CharSequence pText,
VertexBufferObjectManager pVertexBufferObjectManager,
DrawType pDrawType) |
Text(float pX,
float pY,
IFont pFont,
java.lang.CharSequence pText,
VertexBufferObjectManager pVertexBufferObjectManager,
DrawType pDrawType,
ShaderProgram pShaderProgram) |
Text(float pX,
float pY,
IFont pFont,
java.lang.CharSequence pText,
VertexBufferObjectManager pVertexBufferObjectManager,
ShaderProgram pShaderProgram) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
draw(GLState pGLState,
Camera pCamera) |
AutoWrap |
getAutoWrap() |
float |
getAutoWrapWidth() |
int |
getCharactersMaximum() |
IFont |
getFont() |
HorizontalAlign |
getHorizontalAlign() |
float |
getLeading() |
float |
getLineAlignmentWidth() |
java.util.ArrayList<java.lang.CharSequence> |
getLines() |
float |
getLineWidthMaximum() |
IFloatList |
getLineWidths() |
java.lang.CharSequence |
getText() |
TextOptions |
getTextOptions() |
ITextVertexBufferObject |
getVertexBufferObject() |
void |
invalidateText() |
protected void |
onUpdateColor() |
protected void |
onUpdateVertices() |
protected void |
postDraw(GLState pGLState,
Camera pCamera) |
protected void |
preDraw(GLState pGLState,
Camera pCamera) |
void |
setAutoWrap(AutoWrap pAutoWrap) |
void |
setAutoWrapWidth(float pAutoWrapWidth) |
void |
setCharactersToDraw(int pCharactersToDraw) |
void |
setHorizontalAlign(HorizontalAlign pHorizontalAlign) |
void |
setLeading(float pLeading) |
void |
setText(java.lang.CharSequence pText) |
void |
setTextOptions(TextOptions pTextOptions) |
collidesWith, contains, getHeight, getHeightScaled, getSceneCenterCoordinates, getSceneCenterCoordinates, getWidth, getWidthScaled, isCulled, reset, resetRotationCenter, resetScaleCenter, resetSkewCenter, setHeight, setSize, setWidthdispose, getBlendFunctionDestination, getBlendFunctionSource, getShaderProgram, getVertexBufferObjectManager, initBlendFunction, initBlendFunction, initBlendFunction, isBlendingEnabled, onAreaTouched, setBlendFunction, setBlendFunctionDestination, setBlendFunctionSource, setBlendingEnabled, setShaderProgramapplyRotation, applyScale, applySkew, applyTranslation, attachChild, callOnChildren, callOnChildren, clearEntityModifiers, clearUpdateHandlers, convertLocalToSceneCoordinates, convertLocalToSceneCoordinates, convertLocalToSceneCoordinates, convertLocalToSceneCoordinates, convertSceneToLocalCoordinates, convertSceneToLocalCoordinates, convertSceneToLocalCoordinates, convertSceneToLocalCoordinates, detachChild, detachChild, detachChild, detachChildren, detachChildren, detachSelf, finalize, getAlpha, getBlue, getChildByIndex, getChildByMatcher, getChildByTag, getChildCount, getColor, getEntityModifierCount, getFirstChild, getGreen, getLastChild, getLocalToParentTransformation, getLocalToSceneTransformation, getParent, getParentToLocalTransformation, getRed, getRotation, getRotationCenterX, getRotationCenterY, getScaleCenterX, getScaleCenterY, getScaleX, getScaleY, getSceneToLocalTransformation, getSkewCenterX, getSkewCenterY, getSkewX, getSkewY, getTag, getUpdateHandlerCount, getUserData, getX, getY, getZIndex, hasParent, isChildrenIgnoreUpdate, isChildrenVisible, isCullingEnabled, isDisposed, isIgnoreUpdate, isRotated, isRotatedOrScaledOrSkewed, isScaled, isSkewed, isVisible, onApplyTransformations, onAttached, onDetached, onDraw, onManagedDraw, onManagedUpdate, onUpdate, query, query, queryFirst, queryFirstForSubclass, queryForSubclass, queryForSubclass, registerEntityModifier, registerUpdateHandler, setAlpha, setBlue, setChildrenIgnoreUpdate, setChildrenVisible, setColor, setColor, setColor, setCullingEnabled, setGreen, setIgnoreUpdate, setParent, setPosition, setPosition, setRed, setRotation, setRotationCenter, setRotationCenterX, setRotationCenterY, setScale, setScale, setScaleCenter, setScaleCenterX, setScaleCenterY, setScaleX, setScaleY, setSkew, setSkew, setSkewCenter, setSkewCenterX, setSkewCenterY, setSkewX, setSkewY, setTag, setUserData, setVisible, setX, setY, setZIndex, sortChildren, sortChildren, sortChildren, toString, toString, unregisterEntityModifier, unregisterEntityModifiers, unregisterUpdateHandler, unregisterUpdateHandlersclone, equals, getClass, hashCode, notify, notifyAll, wait, wait, waitgetBlendFunctionDestination, getBlendFunctionSource, getShaderProgram, getVertexBufferObjectManager, isBlendingEnabled, setBlendFunction, setBlendFunctionDestination, setBlendFunctionSource, setBlendingEnabled, setShaderProgramattachChild, callOnChildren, callOnChildren, clearEntityModifiers, clearUpdateHandlers, convertLocalToSceneCoordinates, convertLocalToSceneCoordinates, convertLocalToSceneCoordinates, convertLocalToSceneCoordinates, convertSceneToLocalCoordinates, convertSceneToLocalCoordinates, convertSceneToLocalCoordinates, convertSceneToLocalCoordinates, detachChild, detachChild, detachChild, detachChildren, detachChildren, detachSelf, getAlpha, getBlue, getChildByIndex, getChildByMatcher, getChildByTag, getChildCount, getColor, getEntityModifierCount, getFirstChild, getGreen, getLastChild, getLocalToParentTransformation, getLocalToSceneTransformation, getParent, getParentToLocalTransformation, getRed, getRotation, getRotationCenterX, getRotationCenterY, getScaleCenterX, getScaleCenterY, getScaleX, getScaleY, getSceneToLocalTransformation, getSkewCenterX, getSkewCenterY, getSkewX, getSkewY, getTag, getUpdateHandlerCount, getUserData, getX, getY, getZIndex, hasParent, isChildrenIgnoreUpdate, isChildrenVisible, isCullingEnabled, isIgnoreUpdate, isRotated, isRotatedOrScaledOrSkewed, isScaled, isSkewed, isVisible, onAttached, onDetached, query, query, queryFirst, queryFirstForSubclass, queryForSubclass, queryForSubclass, registerEntityModifier, registerUpdateHandler, setAlpha, setBlue, setChildrenIgnoreUpdate, setChildrenVisible, setColor, setColor, setColor, setCullingEnabled, setGreen, setIgnoreUpdate, setParent, setPosition, setPosition, setRed, setRotation, setRotationCenter, setRotationCenterX, setRotationCenterY, setScale, setScale, setScaleCenter, setScaleCenterX, setScaleCenterY, setScaleX, setScaleY, setSkew, setSkew, setSkewCenter, setSkewCenterX, setSkewCenterY, setSkewX, setSkewY, setTag, setUserData, setVisible, setX, setY, setZIndex, sortChildren, sortChildren, sortChildren, toString, unregisterEntityModifier, unregisterEntityModifiers, unregisterUpdateHandler, unregisterUpdateHandlersonDrawonUpdatedispose, isDisposedconvertLocalToSceneCoordinates, convertSceneToLocalCoordinates, onAreaTouchedpublic static final float LEADING_DEFAULT
public static final int VERTEX_INDEX_X
public static final int VERTEX_INDEX_Y
public static final int COLOR_INDEX
public static final int TEXTURECOORDINATES_INDEX_U
public static final int TEXTURECOORDINATES_INDEX_V
public static final int VERTEX_SIZE
public static final int VERTICES_PER_LETTER
public static final int LETTER_SIZE
public static final int VERTEX_STRIDE
public static final VertexBufferObjectAttributes VERTEXBUFFEROBJECTATTRIBUTES_DEFAULT
protected final IFont mFont
protected float mLineWidthMaximum
protected float mLineAlignmentWidth
protected TextOptions mTextOptions
protected final int mCharactersMaximum
protected int mCharactersToDraw
protected int mVertexCountToDraw
protected final int mVertexCount
protected final ITextVertexBufferObject mTextVertexBufferObject
protected java.lang.CharSequence mText
protected java.util.ArrayList<java.lang.CharSequence> mLines
protected IFloatList mLineWidths
public Text(float pX,
float pY,
IFont pFont,
java.lang.CharSequence pText,
VertexBufferObjectManager pVertexBufferObjectManager)
public Text(float pX,
float pY,
IFont pFont,
java.lang.CharSequence pText,
VertexBufferObjectManager pVertexBufferObjectManager,
ShaderProgram pShaderProgram)
public Text(float pX,
float pY,
IFont pFont,
java.lang.CharSequence pText,
VertexBufferObjectManager pVertexBufferObjectManager,
DrawType pDrawType)
public Text(float pX,
float pY,
IFont pFont,
java.lang.CharSequence pText,
VertexBufferObjectManager pVertexBufferObjectManager,
DrawType pDrawType,
ShaderProgram pShaderProgram)
public Text(float pX,
float pY,
IFont pFont,
java.lang.CharSequence pText,
TextOptions pTextOptions,
VertexBufferObjectManager pVertexBufferObjectManager)
public Text(float pX,
float pY,
IFont pFont,
java.lang.CharSequence pText,
TextOptions pTextOptions,
VertexBufferObjectManager pVertexBufferObjectManager,
ShaderProgram pShaderProgram)
public Text(float pX,
float pY,
IFont pFont,
java.lang.CharSequence pText,
TextOptions pTextOptions,
VertexBufferObjectManager pVertexBufferObjectManager,
DrawType pDrawType)
public Text(float pX,
float pY,
IFont pFont,
java.lang.CharSequence pText,
TextOptions pTextOptions,
VertexBufferObjectManager pVertexBufferObjectManager,
DrawType pDrawType,
ShaderProgram pShaderProgram)
public Text(float pX,
float pY,
IFont pFont,
java.lang.CharSequence pText,
int pCharactersMaximum,
VertexBufferObjectManager pVertexBufferObjectManager)
public Text(float pX,
float pY,
IFont pFont,
java.lang.CharSequence pText,
int pCharactersMaximum,
VertexBufferObjectManager pVertexBufferObjectManager,
ShaderProgram pShaderProgram)
public Text(float pX,
float pY,
IFont pFont,
java.lang.CharSequence pText,
int pCharactersMaximum,
VertexBufferObjectManager pVertexBufferObjectManager,
DrawType pDrawType)
public Text(float pX,
float pY,
IFont pFont,
java.lang.CharSequence pText,
int pCharactersMaximum,
VertexBufferObjectManager pVertexBufferObjectManager,
DrawType pDrawType,
ShaderProgram pShaderProgram)
public Text(float pX,
float pY,
IFont pFont,
java.lang.CharSequence pText,
int pCharactersMaximum,
TextOptions pTextOptions,
VertexBufferObjectManager pVertexBufferObjectManager)
public Text(float pX,
float pY,
IFont pFont,
java.lang.CharSequence pText,
int pCharactersMaximum,
TextOptions pTextOptions,
VertexBufferObjectManager pVertexBufferObjectManager,
DrawType pDrawType)
public Text(float pX,
float pY,
IFont pFont,
java.lang.CharSequence pText,
int pCharactersMaximum,
TextOptions pTextOptions,
VertexBufferObjectManager pVertexBufferObjectManager,
DrawType pDrawType,
ShaderProgram pShaderProgram)
public Text(float pX,
float pY,
IFont pFont,
java.lang.CharSequence pText,
int pCharactersMaximum,
TextOptions pTextOptions,
ITextVertexBufferObject pTextVertexBufferObject)
public Text(float pX,
float pY,
IFont pFont,
java.lang.CharSequence pText,
int pCharactersMaximum,
TextOptions pTextOptions,
ITextVertexBufferObject pTextVertexBufferObject,
ShaderProgram pShaderProgram)
public IFont getFont()
public int getCharactersMaximum()
public java.lang.CharSequence getText()
public void setText(java.lang.CharSequence pText)
throws OutOfCharactersException
pText - OutOfCharactersException - leaves this Text object in an undefined state, until setText(CharSequence) is called again and no OutOfCharactersException is thrown.public java.util.ArrayList<java.lang.CharSequence> getLines()
public IFloatList getLineWidths()
public float getLineAlignmentWidth()
public float getLineWidthMaximum()
public float getLeading()
public void setLeading(float pLeading)
public HorizontalAlign getHorizontalAlign()
public void setHorizontalAlign(HorizontalAlign pHorizontalAlign)
public AutoWrap getAutoWrap()
public void setAutoWrap(AutoWrap pAutoWrap)
public float getAutoWrapWidth()
public void setAutoWrapWidth(float pAutoWrapWidth)
public TextOptions getTextOptions()
public void setTextOptions(TextOptions pTextOptions)
public void setCharactersToDraw(int pCharactersToDraw)
public ITextVertexBufferObject getVertexBufferObject()
protected void onUpdateColor()
onUpdateColor in class Entityprotected void onUpdateVertices()
onUpdateVertices in class Shapepublic void invalidateText()