public class FontItem extends AbstractColoredItem implements Rotatable
bbColor, bgColor, fgColoranchor, bounds| Constructor and Description |
|---|
FontItem(Font font,
String text,
Color color) |
FontItem(Font font,
String text,
Color color,
double padding) |
| Modifier and Type | Method and Description |
|---|---|
void |
draw(Graphics2D g2d) |
Font |
getFont() |
String |
getText() |
void |
rotate(double radianAngle) |
String |
toString() |
protected Rectangle2D |
updateBounds() |
getBbColor, getBgColor, getFgColor, setBbColor, setBgColor, setFgColorgetBounds, getPosition, setPosition, setPositionpublic Font getFont()
public String getText()
public void draw(Graphics2D g2d)
draw in interface VisualItemdraw in class AbstractVisualItemprotected Rectangle2D updateBounds()
updateBounds in class AbstractVisualItemCopyright © 2013 dontdrinkandroot. All Rights Reserved.