public class StringDrawer extends Object
| Constructor and Description |
|---|
StringDrawer(Anchor anchor,
boolean clearBg,
float fontScale)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
Rectangle |
drawString(Graphics g,
String text,
int x,
int y)
Draws a string on the graphics context using the settings of
this object.
|
public StringDrawer(Anchor anchor, boolean clearBg, float fontScale)
anchor - positional anchor for stringclearBg - true to clear the bounds of the string area to
the background colour (white) firstfontScale - scales the font size; 1 is normalCopyright © 2025 Central Laboratory of the Research Councils. All Rights Reserved.