| Modifier and Type | Field and Description |
|---|---|
| private final char[] | |
| private final int | |
| private final CoreMetrics | |
| private final int | |
| private final int | |
| private final Font | |
| private final FontRenderContext | |
| private final int | |
| private final int | |
| private final int |
| Access | Constructor and Description |
|---|---|
| pack-priv | StandardTextSource(char[] chars, int start, int len, int cstart, int clen, int level, int flags, Font font, FontRenderContext frc, CoreMetrics cm)
Create a simple implementation of a TextSource. |
| Modifier and Type | Method and Description |
|---|---|
| public int | getBidiLevel()
Implements abstract sun. Bidi level of all the characters in context. |
| public char[] | |
| public int | |
| public int | getContextStart()
Implements abstract sun. Start of context data in char array returned from getChars. |
| public CoreMetrics | getCoreMetrics()
Implements abstract sun. Line metrics for source data. |
| public Font | |
| public FontRenderContext | getFRC()
Implements abstract sun. Font render context to use when measuring or rendering source data. |
| public int | |
| public int | |
| public int | getStart()
Implements abstract sun. Start of source data in char array returned from getChars. |
| public TextSource | getSubSource(int start, int length, int dir)
Implements abstract sun. Get subrange of this TextSource. |
| public String | |
| public String | toString(boolean withContext)
Implements abstract sun. Get debugging info about this TextSource instance. |
| chars | back to summary |
|---|---|
| private final char[] chars | |
| clen | back to summary |
|---|---|
| private final int clen | |
| cm | back to summary |
|---|---|
| private final CoreMetrics cm | |
| cstart | back to summary |
|---|---|
| private final int cstart | |
| flags | back to summary |
|---|---|
| private final int flags | |
| font | back to summary |
|---|---|
| private final Font font | |
| frc | back to summary |
|---|---|
| private final FontRenderContext frc | |
| len | back to summary |
|---|---|
| private final int len | |
| level | back to summary |
|---|---|
| private final int level | |
| start | back to summary |
|---|---|
| private final int start | |
| StandardTextSource | back to summary |
|---|---|
| pack-priv StandardTextSource(char[] chars, int start, int len, int cstart, int clen, int level, int flags, Font font, FontRenderContext frc, CoreMetrics cm) Create a simple implementation of a TextSource. Chars is an array containing clen chars in the context, in logical order, contiguously starting at cstart. Start and len represent that portion of the context representing the true source; start, like cstart, is relative to the start of the character array. Level is the bidi level (0-63 for the entire context. Flags is the layout flags. Font is the font, frc is the render context, and lm is the line metrics for the entire source text, but not necessarily the context. | |
| getBidiLevel | back to summary |
|---|---|
| public int getBidiLevel() Implements abstract sun. Doc from sun. Bidi level of all the characters in context. | |
| getChars | back to summary |
|---|---|
| public char[] getChars() Implements abstract sun. Doc from sun. Source character data. | |
| getContextLength | back to summary |
|---|---|
| public int getContextLength() Implements abstract sun. Doc from sun. Length of context data. | |
| getContextStart | back to summary |
|---|---|
| public int getContextStart() Implements abstract sun. Doc from sun. Start of context data in char array returned from getChars. | |
| getCoreMetrics | back to summary |
|---|---|
| public CoreMetrics getCoreMetrics() Implements abstract sun. Doc from sun. Line metrics for source data. | |
| getFont | back to summary |
|---|---|
| public Font getFont() Implements abstract sun. Doc from sun. Font for source data. | |
| getFRC | back to summary |
|---|---|
| public FontRenderContext getFRC() Implements abstract sun. Doc from sun. Font render context to use when measuring or rendering source data. | |
| getLayoutFlags | back to summary |
|---|---|
| public int getLayoutFlags() Implements abstract sun. Doc from sun. Return the layout flags | |
| getLength | back to summary |
|---|---|
| public int getLength() Implements abstract sun. Doc from sun. Length of source data. | |
| getStart | back to summary |
|---|---|
| public int getStart() Implements abstract sun. Doc from sun. Start of source data in char array returned from getChars. | |
| getSubSource | back to summary |
|---|---|
| public TextSource getSubSource(int start, int length, int dir) Implements abstract sun. Doc from sun. Get subrange of this TextSource. dir is one of the TextLineComponent constants | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non- | |
| toString | back to summary |
|---|---|
| public String toString(boolean withContext) Implements abstract sun. Doc from sun. Get debugging info about this TextSource instance. Default implementation just returns toString. Subclasses should implement this to match the semantics of the toString constants. | |