public class

OutlineTextRenderer

extends Object
implements TextPipe
java.lang.Object
   ↳ sun.java2d.pipe.OutlineTextRenderer

Class Overview

A delegate pipe of SG2D for drawing "large" text with a solid source colour to an opaque destination. The text is drawn as a filled outline. Since the developer is not explicitly requesting this way of rendering, this should not be used if the current paint is not a solid colour. If text anti-aliasing is requested by the application, and filling path, an anti-aliasing fill pipe needs to be invoked. This involves making some of the same decisions as in the validatePipe call, which may be in a SurfaceData subclass, so its awkward to always ensure that the correct pipe is used. The easiest thing, rather than reproducing much of that logic is to call validatePipe() which works but is expensive, although probably not compared to the cost of filling the path. Note if AA hint is ON but text-AA hint is OFF this logic will produce AA text which perhaps isn't what the user expected. Note that the glyphvector obeys its FRC, not the G2D.

Summary

Constants
int THRESHHOLD
Public Constructors
OutlineTextRenderer()
Public Methods
void drawChars(SunGraphics2D g2d, char[] data, int offset, int length, int x, int y)
void drawGlyphVector(SunGraphics2D g2d, GlyphVector gv, float x, float y)
void drawString(SunGraphics2D g2d, String str, double x, double y)
[Expand]
Inherited Methods
From class java.lang.Object
From interface sun.java2d.pipe.TextPipe

Constants

public static final int THRESHHOLD

Constant Value: 100 (0x00000064)

Public Constructors

public OutlineTextRenderer ()

Public Methods

public void drawChars (SunGraphics2D g2d, char[] data, int offset, int length, int x, int y)

public void drawGlyphVector (SunGraphics2D g2d, GlyphVector gv, float x, float y)

public void drawString (SunGraphics2D g2d, String str, double x, double y)