|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectde.rico.engine.effect.ortho.TextAreaRenderer
public class TextAreaRenderer
This class can be used to draw a rectangular area that can contain some text. The text gets line wrapped automatically.
| Constructor Summary | |
|---|---|
TextAreaRenderer(int x,
int y,
int width,
int spacing,
int margin,
Color4f txtCol,
Color4f bgCol)
Creates a new text area with the specified parameters. |
|
TextAreaRenderer(int x,
int y,
int width,
int spacing,
int margin,
Color4f txtCol,
Color4f bgCol,
Font font)
Creates a new list menu with the specified parameters. |
|
| Method Summary | |
|---|---|
void |
add(java.lang.String text)
Adds (appends) further text to the area. |
void |
clear()
Clears the text from the text area. |
void |
draw()
Draws the text area and its current text. |
java.lang.String |
getText()
Returns the text from the text area. |
TextRenderer |
getTextRenderer()
Returns the text renderer object that is used for this text area to display the text. |
void |
setBGImage(OverlayImage img,
float alpha)
Sets a background image to the list menu. |
void |
setText(java.lang.String text)
Sets the specified text to the text area. |
void |
setVisible(boolean visible)
Sets whether or not the list menu ought to be visible. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TextAreaRenderer(int x,
int y,
int width,
int spacing,
int margin,
Color4f txtCol,
Color4f bgCol)
x - x-coordinate of upper left cornery - y-coordinate of upper left cornerwidth - designated width of the text areaspacing - vertical spacing (gap size) between the linestxtCol - text colorbgCol - background color of the text area
public TextAreaRenderer(int x,
int y,
int width,
int spacing,
int margin,
Color4f txtCol,
Color4f bgCol,
Font font)
x - x-coordinate of upper left cornery - y-coordinate of upper left cornerspacing - vertical spacing (gap size) between the entriestxtCol - text color for the menu entriesbgCol - background color of the menufont - font from the Font enumeration class| Method Detail |
|---|
public void setBGImage(OverlayImage img,
float alpha)
img - overlay image that ought to be used as
a background image.alpha - alpha value [0..1] for transparencypublic void add(java.lang.String text)
text - text to appendpublic void setText(java.lang.String text)
text - text to set to the text areapublic java.lang.String getText()
public void clear()
public void setVisible(boolean visible)
visible - set visible? --> true=yes, false=nopublic TextRenderer getTextRenderer()
public void draw()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||