|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.jmex.bui.BTextArea.Line
protected static class BTextArea.Line
Contains the segments of text on a single line.
| Field Summary | |
|---|---|
int |
dx
The current x position at which new text will be appended. |
BTextArea.Run |
end
The run that ends this line. |
int |
height
The height of this line. |
java.util.ArrayList<BText> |
segments
A list of BText instances for the text on this line. |
BTextArea.Run |
start
The run that starts this line. |
| Constructor Summary | |
|---|---|
protected |
BTextArea.Line()
|
| Method Summary | |
|---|---|
int |
addRun(BTextFactory tfact,
BTextArea.Run run,
com.jme.renderer.ColorRGBA color,
TextEffect effect,
int effectSize,
com.jme.renderer.ColorRGBA effectColor,
int maxWidth,
int offset)
Adds the supplied run to the line using the supplied text factory, returns the offset into the run that must be appeneded to a new line or -1 if the entire run was appended. |
int |
getWidth()
Returns the width of this line. |
void |
render(com.jme.renderer.Renderer renderer,
int x,
int y,
float alpha)
Renders this line of text. |
void |
wasAdded()
|
void |
wasRemoved()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public BTextArea.Run start
public BTextArea.Run end
public int dx
public int height
public java.util.ArrayList<BText> segments
BText instances for the text on this line.
| Constructor Detail |
|---|
protected BTextArea.Line()
| Method Detail |
|---|
public int addRun(BTextFactory tfact,
BTextArea.Run run,
com.jme.renderer.ColorRGBA color,
TextEffect effect,
int effectSize,
com.jme.renderer.ColorRGBA effectColor,
int maxWidth,
int offset)
tfact - BTextFactoryrun - Runcolor - ColorRGBAeffect - inteffectSize - inteffectColor - ColorRGBAmaxWidth - intoffset - int
public void render(com.jme.renderer.Renderer renderer,
int x,
int y,
float alpha)
renderer - Rendererx - inty - intalpha - floatpublic int getWidth()
public void wasAdded()
public void wasRemoved()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||