|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.iu.cnets.klatsch.gui.Widget
edu.iu.cnets.klatsch.gui.Pane
edu.iu.cnets.klatsch.pane.Text
public class Text
The text pane simply displays a number of lines of output.
Field Summary | |
---|---|
(package private) java.util.List<java.lang.String> |
buffer
the stored lines of text |
private static int |
DEFAULT_LINES
hardwired defaults for the pane configuration |
private static java.lang.String |
DEFAULT_NAME
|
(package private) int |
lines
the maximum number of lines |
Fields inherited from class edu.iu.cnets.klatsch.gui.Pane |
---|
id, name |
Fields inherited from class edu.iu.cnets.klatsch.gui.Widget |
---|
parent, x1, x2, y1, y2 |
Constructor Summary | |
---|---|
Text(Value... ls)
Creates a new text pane. |
Method Summary | |
---|---|
protected void |
draw()
Draws the current buffer. |
Value |
prop_contents(Value... args)
Returns the contents of the buffer as a stream of strings. |
Value |
prop_print(Value... args)
Writes the given text to the buffer. |
Value |
prop_println(Value... args)
Writes the given text to the buffer and adds a newline. |
Methods inherited from class edu.iu.cnets.klatsch.gui.Pane |
---|
id, name |
Methods inherited from class edu.iu.cnets.klatsch.gui.Widget |
---|
clear, in, keyPressed, keyReleased, mouseDragged, mousePressed, mouseReleased |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private static final int DEFAULT_LINES
private static final java.lang.String DEFAULT_NAME
java.util.List<java.lang.String> buffer
int lines
Constructor Detail |
---|
public Text(Value... ls) throws EvaluationException
EvaluationException
Method Detail |
---|
protected void draw()
draw
in class Widget
public Value prop_contents(Value... args) throws EvaluationException
EvaluationException
public Value prop_print(Value... args) throws EvaluationException
EvaluationException
public Value prop_println(Value... args) throws EvaluationException
EvaluationException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |