java.awt.font
Class TextLayout.OptInfo

java.lang.Object
  extended byjava.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


Field Summary
private  float advance
           
private  Map attrs
           
private  char[] chars
           
private  sun.awt.font.Decoration decoration
           
private  Font font
           
private  FontRenderContext frc
           
private static float MAGIC_ADVANCE
           
private  LineMetrics metrics
           
private  String str
           
private  Rectangle2D vb
           
 
Constructor Summary
private TextLayout.OptInfo(FontRenderContext frc, char[] chars, Font font, LineMetrics metrics, Map attrs)
           
 
Method Summary
(package private) static TextLayout.OptInfo create(FontRenderContext frc, char[] chars, Font font, LineMetrics metrics, Map attrs)
           
(package private)  TextLine createTextLine()
           
(package private)  boolean draw(Graphics2D g2d, float x, float y)
           
(package private)  float getAdvance()
           
(package private)  sun.awt.font.Decoration getDecoration()
           
 LineMetrics getLineMetrics()
           
 Rectangle2D getLogicalBounds()
           
(package private)  Rectangle2D getVisualBounds()
           
 void handleDraw(Graphics2D g2d, float x, float y)
           
 Rectangle2D handleGetCharVisualBounds(int index)
           
 Shape handleGetOutline(float x, float y)
           
 Rectangle2D handleGetVisualBounds()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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
Constructor Detail

TextLayout.OptInfo

private TextLayout.OptInfo(FontRenderContext frc,
                           char[] chars,
                           Font font,
                           LineMetrics metrics,
                           Map attrs)
Method Detail

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)