java.lang.Object | |
↳ | sun.font.TextLabelFactory |
A factory for text labels. Basically this just holds onto the stuff that doesn't change-- the render context, context, and bidi info for the context-- and gets called for each subrange you want to create.
Font
FontRenderContext
TextLabel
ExtendedTextLabel
Bidi
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Initialize a factory to produce glyph arrays.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Create an extended glyph array for the text between start and limit.
| |||||||||||
Create a simple glyph array for the text between start and limit.
| |||||||||||
Set a line context for the factory.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
Initialize a factory to produce glyph arrays.
frc | the FontRenderContext to use for the arrays to be produced. |
---|---|
text | the text of the paragraph. |
bidi | the bidi information for the paragraph text, or null if the entire text is left-to-right text. |
Create an extended glyph array for the text between start and limit.
font | the font to use to generate glyphs and character positions. |
---|---|
start | the start of the subrange for which to create the glyph array |
limit | the limit of the subrange for which to create glyph array Start and limit must be within the bounds of the current line. If no line context has been set, the entire text is used as the current line. The text between start and limit will be treated as though it all has the same bidi level (and thus the same directionality) as the character at start. Clients should ensure that all text between start and limit has the same bidi level for the current line. |
Create a simple glyph array for the text between start and limit.
font | the font to use to generate glyphs and character positions. |
---|---|
start | the start of the subrange for which to create the glyph array |
limit | the limit of the subrange for which to create glyph array |
Set a line context for the factory. Shaping only occurs on this line. Characters are ordered as they would appear on this line.
lineStart | the index within the text of the start of the line. |
---|---|
lineLimit | the index within the text of the limit of the line. |