| Modifier and Type | Field and Description |
|---|---|
private TerminalColor |
currentColor |
private TerminalTextStyle |
currentStyle |
private static java.lang.String |
CURSOR_DOWN |
private GraphicsConfiguration |
graphicsConfiguration |
private Shell |
shell |
| Constructor and Description |
|---|
AeshGraphics(Shell shell,
GraphicsConfiguration graphicsConfiguration) |
| Modifier and Type | Method and Description |
|---|---|
void |
clear()
Clear the entire terminal screen.
|
void |
clearAndShowCursor()
Clear the entire terminal screen and enable visible cursor.
|
void |
drawCircle(int x0,
int y0,
int radius)
Draw a Circle using the given x,y as center
Note: the circle is more like an oval atm..
|
private void |
drawHorizontalLine(int x,
int y,
int width) |
void |
drawLine(int x1,
int y1,
int x2,
int y2)
Draws a line, using the current color,
between the points (x1, y1) and (x2, y2) in this graphics context's coordinate system.
|
private void |
drawPixel(int x,
int y) |
void |
drawRect(int x,
int y,
int width,
int height)
Draws the outline of the specified rectangle.
|
void |
drawString(java.lang.String str,
int x,
int y)
Draws the text given by the specified string,
using this graphics context's current font and color.
|
private void |
drawVerticalLine(int x,
int y,
int length) |
void |
fillRect(int x,
int y,
int width,
int height)
Fills the specified rectangle.
|
void |
flush()
Flush the graphics to the terminal.
|
TerminalColor |
getColor() |
TerminalTextStyle |
getTextStyle() |
void |
setColor(TerminalColor color)
Sets this graphics context's current color to the specified color.
|
void |
setTextStyle(TerminalTextStyle textStyle)
Set this graphics context's current text style
Note: Not implemented yet
|
private static final java.lang.String CURSOR_DOWN
private final Shell shell
private final GraphicsConfiguration graphicsConfiguration
private TerminalColor currentColor
private TerminalTextStyle currentStyle
AeshGraphics(Shell shell, GraphicsConfiguration graphicsConfiguration)
public void flush()
Graphicspublic void clear()
public void clearAndShowCursor()
clearAndShowCursor in interface Graphicspublic TerminalColor getColor()
public void setColor(TerminalColor color)
Graphicspublic TerminalTextStyle getTextStyle()
getTextStyle in interface Graphicspublic void setTextStyle(TerminalTextStyle textStyle)
GraphicssetTextStyle in interface GraphicstextStyle - stypepublic void drawRect(int x,
int y,
int width,
int height)
Graphicspublic void drawLine(int x1,
int y1,
int x2,
int y2)
Graphicspublic void drawString(java.lang.String str,
int x,
int y)
GraphicsdrawString in interface Graphicspublic void fillRect(int x,
int y,
int width,
int height)
Graphicspublic void drawCircle(int x0,
int y0,
int radius)
GraphicsdrawCircle in interface Graphicsprivate void drawPixel(int x,
int y)
private void drawHorizontalLine(int x,
int y,
int width)
private void drawVerticalLine(int x,
int y,
int length)