java.awt.font
Class TextLayout.OptInfo
java.lang.Object
java.awt.font.TextLayout.OptInfo
- All Implemented Interfaces:
- sun.awt.font.Decoration.Label
- Enclosing class:
- TextLayout
- static class TextLayout.OptInfo
- extends Object
- implements sun.awt.font.Decoration.Label
temporary optimization
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MAGIC_ADVANCE
private static final float MAGIC_ADVANCE
- See Also:
- Constant Field Values
frc
private FontRenderContext frc
chars
private char[] chars
font
private Font font
metrics
private LineMetrics metrics
attrs
private Map attrs
advance
private float advance
vb
private Rectangle2D vb
decoration
private sun.awt.font.Decoration decoration
str
private String str
TextLayout.OptInfo
private TextLayout.OptInfo(FontRenderContext frc,
char[] chars,
Font font,
LineMetrics metrics,
Map attrs)
createTextLine
TextLine createTextLine()
getAdvance
float getAdvance()
getLineMetrics
public LineMetrics getLineMetrics()
- Specified by:
getLineMetrics
in interface sun.awt.font.Decoration.Label
getLogicalBounds
public Rectangle2D getLogicalBounds()
- Specified by:
getLogicalBounds
in interface sun.awt.font.Decoration.Label
handleDraw
public void handleDraw(Graphics2D g2d,
float x,
float y)
- Specified by:
handleDraw
in interface sun.awt.font.Decoration.Label
handleGetCharVisualBounds
public Rectangle2D handleGetCharVisualBounds(int index)
- Specified by:
handleGetCharVisualBounds
in interface sun.awt.font.Decoration.Label
handleGetVisualBounds
public Rectangle2D handleGetVisualBounds()
- Specified by:
handleGetVisualBounds
in interface sun.awt.font.Decoration.Label
handleGetOutline
public Shape handleGetOutline(float x,
float y)
- Specified by:
handleGetOutline
in interface sun.awt.font.Decoration.Label
draw
boolean draw(Graphics2D g2d,
float x,
float y)
getVisualBounds
Rectangle2D getVisualBounds()
getDecoration
sun.awt.font.Decoration getDecoration()
create
static TextLayout.OptInfo create(FontRenderContext frc,
char[] chars,
Font font,
LineMetrics metrics,
Map attrs)