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()
Graphics
public void clear()
public void clearAndShowCursor()
clearAndShowCursor
in interface Graphics
public TerminalColor getColor()
public void setColor(TerminalColor color)
Graphics
public TerminalTextStyle getTextStyle()
getTextStyle
in interface Graphics
public void setTextStyle(TerminalTextStyle textStyle)
Graphics
setTextStyle
in interface Graphics
textStyle
- stypepublic void drawRect(int x, int y, int width, int height)
Graphics
public void drawLine(int x1, int y1, int x2, int y2)
Graphics
public void drawString(String str, int x, int y)
Graphics
drawString
in interface Graphics
public void fillRect(int x, int y, int width, int height)
Graphics
public void drawCircle(int x0, int y0, int radius)
Graphics
drawCircle
in interface Graphics
Copyright © 2021 JBoss by Red Hat. All rights reserved.