| Constructor and Description |
|---|
TextBoxPaintable(String
Create a TextBoxPaintable using the system's default text color.
|
TextBoxPaintable(String
|
| Modifier and Type | Method and Description |
|---|---|
int |
getHeight()
|
String |
getLine(int a)
|
int |
getLineCount()
|
String |
getText()
|
int |
getWidth()
|
void |
paint(Graphics2D
|
public TextBoxPaintable(Stringstring, Font font, float maxWidth, float insets)
string - the initial string to render in this text.
font - the font for this text box
maxWidth - the maximum width to impose on this text box
insets - the new insets to use
public int getLineCount()
public StringgetLine(int a)
public StringgetText()
public int getWidth()
public int getHeight()
public void paint(Graphics2Dg)