public class ScreenWriter extends Object
Constructor and Description |
---|
ScreenWriter(Screen targetScreen) |
Modifier and Type | Method and Description |
---|---|
void |
drawString(int x,
int y,
String string,
ScreenCharacterStyle... styles)
Draws a string on the screen at a particular position
|
boolean |
equals(Object obj) |
void |
fillScreen(char c) |
Terminal.Color |
getBackgroundColor() |
Terminal.Color |
getForegroundColor() |
int |
hashCode() |
void |
setBackgroundColor(Terminal.Color backgroundColor) |
void |
setForegroundColor(Terminal.Color foregroundColor) |
public ScreenWriter(Screen targetScreen)
public Terminal.Color getBackgroundColor()
public void setBackgroundColor(Terminal.Color backgroundColor)
public Terminal.Color getForegroundColor()
public void setForegroundColor(Terminal.Color foregroundColor)
public void fillScreen(char c)
public void drawString(int x, int y, String string, ScreenCharacterStyle... styles)
x
- 0-indexed column number of where to put the first character in the stringy
- 0-indexed row number of where to put the first character in the stringstring
- Text to put on the screenstyles
- Additional styles to apply to the textCopyright © 2015. All Rights Reserved.