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
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
Object
|
clone()
Creates and returns a copy of this object.
|
boolean
|
equals(Object obj)
Indicates whether some other object is "equal to" this one.
|
void
|
finalize()
Called by the garbage collector on an object when garbage collection
determines that there are no more references to the object.
|
final
Class<?>
|
getClass()
Returns the runtime class of this Object .
|
int
|
hashCode()
Returns a hash code value for the object.
|
final
void
|
notify()
Wakes up a single thread that is waiting on this object's
monitor.
|
final
void
|
notifyAll()
Wakes up all threads that are waiting on this object's monitor.
|
String
|
toString()
Returns a string representation of the object.
|
final
void
|
wait()
Causes the current thread to wait until another thread invokes the
notify() method or the
notifyAll() method for this object.
|
final
void
|
wait(long timeout, int nanos)
Causes the current thread to wait until another thread invokes the
notify() method or the
notifyAll() method for this object, or
some other thread interrupts the current thread, or a certain
amount of real time has elapsed.
|
final
void
|
wait(long timeout)
Causes the current thread to wait until either another thread invokes the
notify() method or the
notifyAll() method for this object, or a
specified amount of time has elapsed.
|
|
From interface
sun.java2d.pipe.TextPipe
abstract
void
|
drawChars(SunGraphics2D g2d, char[] data, int offset, int length, int x, int y)
|
abstract
void
|
drawGlyphVector(SunGraphics2D g2d, GlyphVector g, float x, float y)
|
abstract
void
|
drawString(SunGraphics2D g2d, String s, double x, double y)
|
|
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)