Interface Screen.Writer
- Enclosing interface:
- Screen
public static interface Screen.Writer
-
Method Summary
Modifier and TypeMethodDescriptionvoid
background
(Rectangle rect, int color) Fill background with a given color.void
border
(int x, int y, int width, int height) Write a border with a given rectangle coordinates.void
void
text
(String text, Rectangle rect, HorizontalAlign hAlign, VerticalAlign vAlign) Write aligned text within a bounds.
-
Method Details
-
text
- Parameters:
text
- the text to writex
- the x positiony
- the y position
-
border
void border(int x, int y, int width, int height) Write a border with a given rectangle coordinates.- Parameters:
x
- the x positiony
- the y positionwidth
- the rectangle widthheight
- the rectangle height
-
background
Fill background with a given color.- Parameters:
rect
- the rectange to fillcolor
- the color to use
-
text
void text(String text, Rectangle rect, @Nullable HorizontalAlign hAlign, @Nullable VerticalAlign vAlign) Write aligned text within a bounds.- Parameters:
text
- the text to writerect
- the rectangle boundshAlign
- the horizontal aligmentvAlign
- the vertical aligment
-