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