Font, FontRenderContext, java.awt.font.GlyphVector , ExtendedTextSourceLabel, Bidi, java.awt.font.TextLayout
| Modifier and Type | Field and Description |
|---|---|
| private final Bidi | |
| private final int | |
| private final FontRenderContext | |
| private Bidi | |
| private int | |
| private int | |
| private final char[] |
| Access | Constructor and Description |
|---|---|
| public | TextLabelFactory(FontRenderContext
the FontRenderContext to use for the arrays to be produced. frc, char[] the text of the paragraph. text, Bidi the bidi information for the paragraph text, or null if the
entire text is left-to-right text. bidi, int flags)Initialize a factory to produce glyph arrays. |
| Modifier and Type | Method and Description |
|---|---|
| public ExtendedTextSourceLabel | createTextLabel(Font
the font to use to generate glyphs and character positions. font, CoreMetrics lm, Decoration decorator, int the start of the subrange for which to create the glyph array start, int 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. limit)Create a glyph array for the text between start and limit. |
| public FontRenderContext | |
| public Bidi | |
| public void | setLineContext(int
the index within the text of the start of the line. lineStart, int the index within the text of the limit of the line. lineLimit)Set a line context for the factory. |
| bidi | back to summary |
|---|---|
| private final Bidi bidi | |
| flags | back to summary |
|---|---|
| private final int flags | |
| frc | back to summary |
|---|---|
| private final FontRenderContext frc | |
| lineBidi | back to summary |
|---|---|
| private Bidi lineBidi | |
| lineLimit | back to summary |
|---|---|
| private int lineLimit | |
| lineStart | back to summary |
|---|---|
| private int lineStart | |
| text | back to summary |
|---|---|
| private final char[] text | |
| TextLabelFactory | back to summary |
|---|---|
| public TextLabelFactory(FontRenderContext frc, char[] text, Bidi bidi, int flags) Initialize a factory to produce glyph arrays.
| |
| createTextLabel | back to summary |
|---|---|
| public ExtendedTextSourceLabel createTextLabel(Font font, CoreMetrics lm, Decoration decorator, int start, int limit) Create a glyph array for the text between start and limit.
| |
| getFontRenderContext | back to summary |
|---|---|
| public FontRenderContext getFontRenderContext() | |
| getLineBidi | back to summary |
|---|---|
| public Bidi getLineBidi() | |
| setLineContext | back to summary |
|---|---|
| public void setLineContext(int lineStart, int lineLimit) Set a line context for the factory. Shaping only occurs on this line. Characters are ordered as they would appear on this line.
| |