public class GlyphedOutlineFontItem2 extends AbstractColoredItem
bbColor, bgColor, fgColoranchor, bounds| Constructor and Description |
|---|
GlyphedOutlineFontItem2(Font font,
String text,
Color color) |
GlyphedOutlineFontItem2(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 final Font getFont()
public final String getText()
public final void draw(Graphics2D g2d)
draw in interface VisualItemdraw in class AbstractVisualItemprotected final Rectangle2D updateBounds()
updateBounds in class AbstractVisualItempublic final void setPosition(double x,
double y)
setPosition in interface VisualItemsetPosition in class AbstractVisualItempublic final void setPosition(Point2D p)
setPosition in interface VisualItemsetPosition in class AbstractVisualItempublic final Set<Rectangle2D> getGlyphBounds()
Copyright © 2013 dontdrinkandroot. All Rights Reserved.