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