|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.jinx.video.View2D net.jinx.video.MessageView
public class MessageView
View2D extension that provides a console-like text area.
API Stability: Stable.
Constructor Summary | |
---|---|
MessageView(float columns,
float rows,
java.awt.Color bcolor,
java.awt.Color color)
Constructs a MessageView with the given number of columns, rows, foreground color and background color. |
Method Summary | |
---|---|
void |
deinit(Context opt)
Deinitializes this View. |
void |
draw(Context opt)
Draws the console along with it's message. |
Visible |
getVisible()
The Visible for a MessageView is itself. |
void |
init(Context opt)
Initializes this View. |
void |
setMessage(java.lang.CharSequence text)
Sets the sequence of characters to use as the message. |
Methods inherited from class net.jinx.video.View2D |
---|
getBottom, getLeft, getRight, getTop, view |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MessageView(float columns, float rows, java.awt.Color bcolor, java.awt.Color color)
columns
- the number of characters across.rows
- the number of rows from top to bottom.bcolor
- the background color for the View.color
- the text color.Method Detail |
---|
public void init(Context opt)
View
init
in interface View
init
in interface Visible
init
in class View2D
opt
- the Context object providing data on how rendering should
proceed.public void deinit(Context opt)
View
deinit
in interface View
deinit
in interface Visible
deinit
in class View2D
opt
- the Context object providing data on how rendering should
proceed.public void draw(Context opt)
draw
in interface Visible
opt
- the Context object containing the rendering options.public void setMessage(java.lang.CharSequence text)
text
- the message to use. This can contain carriage returns and
line feeds, which will be handled properly.public Visible getVisible()
getVisible
in interface View
getVisible
in class View2D
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |