public class

TextSourceLabel

extends TextLabel
java.lang.Object
   ↳ sun.font.TextLabel
     ↳ sun.font.TextSourceLabel

Class Overview

Implementation of TextLabel based on String.

Summary

Public Constructors
TextSourceLabel(TextSource source)
TextSourceLabel(TextSource source, Rectangle2D lb, Rectangle2D ab, GlyphVector gv)
Public Methods
void draw(Graphics2D g, float x, float y)
Render the label at x, y in the graphics.
final Rectangle2D getAlignBounds(float x, float y)
Return a rectangle that corresponds to the alignment bounds of the text when this label is rendered at x, y.
AffineTransform getBaselineTransform()
Rectangle2D getItalicBounds(float x, float y)
Return a rectangle that corresponds to the logical bounds of the text, adjusted to angle the leading and trailing edges by the italic angle.
final Rectangle2D getLogicalBounds(float x, float y)
Return a rectangle that corresponds to the logical bounds of the text when this label is rendered at x, y.
Shape getOutline(float x, float y)
Return an outline of the characters in the label when rendered at x, y.
Rectangle getPixelBounds(FontRenderContext frc, float x, float y)
TextSource getSource()
final Rectangle2D getVisualBounds(float x, float y)
Return a rectangle that surrounds the text outline when this label is rendered at x, y.
Protected Methods
Rectangle2D createAlignBounds()
GlyphVector createGV()
Rectangle2D createItalicBounds()
Rectangle2D createLogicalBounds()
Rectangle2D createVisualBounds()
[Expand]
Inherited Methods
From class sun.font.TextLabel
From class java.lang.Object

Public Constructors

public TextSourceLabel (TextSource source)

public TextSourceLabel (TextSource source, Rectangle2D lb, Rectangle2D ab, GlyphVector gv)

Public Methods

public void draw (Graphics2D g, float x, float y)

Render the label at x, y in the graphics.

public final Rectangle2D getAlignBounds (float x, float y)

Return a rectangle that corresponds to the alignment bounds of the text when this label is rendered at x, y. This rectangle is used when positioning text next to a margin. It differs from the logical bounds in that it does not include leading or trailing whitespace.

public AffineTransform getBaselineTransform ()

public Rectangle2D getItalicBounds (float x, float y)

Return a rectangle that corresponds to the logical bounds of the text, adjusted to angle the leading and trailing edges by the italic angle.

public final Rectangle2D getLogicalBounds (float x, float y)

Return a rectangle that corresponds to the logical bounds of the text when this label is rendered at x, y. This rectangle is used when positioning text next to other text.

public Shape getOutline (float x, float y)

Return an outline of the characters in the label when rendered at x, y.

public Rectangle getPixelBounds (FontRenderContext frc, float x, float y)

public TextSource getSource ()

public final Rectangle2D getVisualBounds (float x, float y)

Return a rectangle that surrounds the text outline when this label is rendered at x, y.

Protected Methods

protected Rectangle2D createAlignBounds ()

protected GlyphVector createGV ()

protected Rectangle2D createItalicBounds ()

protected Rectangle2D createLogicalBounds ()

protected Rectangle2D createVisualBounds ()