public class GlyphedFontItem extends AbstractColoredItem
bbColor, bgColor, fgColoranchor, bounds| Constructor and Description |
|---|
GlyphedFontItem(Font font,
String text,
Color color) |
GlyphedFontItem(Font font,
String text,
Color color,
double padding) |
| Modifier and Type | Method and Description |
|---|---|
void |
draw(Graphics2D g2d) |
Font |
getFont() |
Set<Rectangle2D> |
getGlyphBounds() |
String |
getText() |
void |
setPosition(double x,
double y) |
void |
setPosition(Point2D p) |
String |
toString() |
protected Rectangle2D |
updateBounds() |
getBbColor, getBgColor, getFgColor, setBbColor, setBgColor, setFgColorgetBounds, getPositionpublic Font getFont()
public String getText()
public void draw(Graphics2D g2d)
draw in interface VisualItemdraw in class AbstractVisualItemprotected Rectangle2D updateBounds()
updateBounds in class AbstractVisualItempublic void setPosition(double x,
double y)
setPosition in interface VisualItemsetPosition in class AbstractVisualItempublic void setPosition(Point2D p)
setPosition in interface VisualItemsetPosition in class AbstractVisualItempublic Set<Rectangle2D> getGlyphBounds()
Copyright © 2012. All Rights Reserved.