public class AeshGraphics extends Object implements Graphics
| 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..
|
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.
|
void |
drawRect(int x,
int y,
int width,
int height)
Draws the outline of the specified rectangle.
|
void |
drawString(String str,
int x,
int y)
Draws the text given by the specified string,
using this graphics context's current font and color.
|
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
|
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(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 GraphicsCopyright © 2018 JBoss by Red Hat. All rights reserved.