public final class

GlyphLayout

extends Object
java.lang.Object
   ↳ sun.font.GlyphLayout

Summary

Nested Classes
class GlyphLayout.GVData Storage for layout to build glyph vector data, then generate a real GlyphVector  
interface GlyphLayout.LayoutEngine  
interface GlyphLayout.LayoutEngineFactory  
class GlyphLayout.LayoutEngineKey  
Public Methods
static void done(GlyphLayout gl)
Return the old instance of GlyphLayout when you are done.
static GlyphLayout get(GlyphLayout.LayoutEngineFactory lef)
Return a new instance of GlyphLayout, using the provided layout engine factory.
StandardGlyphVector layout(Font font, FontRenderContext frc, char[] text, int offset, int count, int flags, StandardGlyphVector result)
Create a glyph vector.
[Expand]
Inherited Methods
From class java.lang.Object

Public Methods

public static void done (GlyphLayout gl)

Return the old instance of GlyphLayout when you are done. This enables reuse of GlyphLayout objects.

public static GlyphLayout get (GlyphLayout.LayoutEngineFactory lef)

Return a new instance of GlyphLayout, using the provided layout engine factory. If null, the system layout engine factory will be used.

public StandardGlyphVector layout (Font font, FontRenderContext frc, char[] text, int offset, int count, int flags, StandardGlyphVector result)

Create a glyph vector.

Parameters
font the font to use
frc the font render context
text the text, including optional context before start and after start + count
offset the start of the text to lay out
count the length of the text to lay out
flags bidi and context flags
result a StandardGlyphVector to modify, can be null
Returns
  • the layed out glyphvector, if result was passed in, it is returned