|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.jmex.bui.BComponent
com.jmex.bui.BTextComponent
public abstract class BTextComponent
Defines methods and mechanisms common to components that render a string of text.
| Field Summary | |
|---|---|
protected com.jme.renderer.ColorRGBA[] |
_effcols
|
protected int[] |
_effsizes
|
protected HorizontalAlignment[] |
_haligns
|
protected TextEffect[] |
_teffects
|
protected BTextFactory[] |
_textfacts
|
protected VerticalAlignment[] |
_valigns
|
| Fields inherited from class com.jmex.bui.BComponent |
|---|
_alpha, _backgrounds, _bbuf, _borders, _colors, _cursor, _enabled, _height, _hover, _insets, _listeners, _parent, _preferredSize, _properties, _styleClass, _tipmouse, _tipStyle, _tiptext, _valid, _visible, _width, _x, _y, DEFAULT, DISABLED, HOVER, STATE_COUNT, STATE_PCLASSES |
| Constructor Summary | |
|---|---|
BTextComponent()
|
|
| Method Summary | |
|---|---|
protected int[] |
checkNonDefault(int[] styles,
int defval)
|
protected void |
configureStyle(BStyleSheet style)
documentation inherited |
com.jme.renderer.ColorRGBA |
getEffectColor()
Returns the color to use for our text effect. |
int |
getEffectSize()
Returns the effect size for this component's text. |
HorizontalAlignment |
getHorizontalAlignment()
Returns the horizontal alignment for this component's text. |
protected Label.Config |
getLabelConfig(Label forLabel,
int twidth)
Creates a text configuration for the supplied label (for which we are by definition acting as container). |
abstract java.lang.String |
getText()
Returns the text currently being displayed by this component. |
TextEffect |
getTextEffect()
Returns the effect for this component's text. |
BTextFactory |
getTextFactory()
Returns a text factory suitable for creating text in the style defined by the component's current state. |
VerticalAlignment |
getVerticalAlignment()
Returns the vertical alignment for this component's text. |
abstract void |
setText(java.lang.String text)
Updates the text displayed by this component. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected HorizontalAlignment[] _haligns
protected VerticalAlignment[] _valigns
protected TextEffect[] _teffects
protected int[] _effsizes
protected com.jme.renderer.ColorRGBA[] _effcols
protected BTextFactory[] _textfacts
| Constructor Detail |
|---|
public BTextComponent()
| Method Detail |
|---|
public abstract void setText(java.lang.String text)
text - Stringpublic abstract java.lang.String getText()
public BTextFactory getTextFactory()
public HorizontalAlignment getHorizontalAlignment()
public VerticalAlignment getVerticalAlignment()
public TextEffect getTextEffect()
public int getEffectSize()
public com.jme.renderer.ColorRGBA getEffectColor()
protected void configureStyle(BStyleSheet style)
configureStyle in class BComponentstyle - BStyleSheetBComponent.configureStyle(com.jmex.bui.BStyleSheet)
protected Label.Config getLabelConfig(Label forLabel,
int twidth)
forLabel - Labeltwidth - int
protected int[] checkNonDefault(int[] styles,
int defval)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||