java.lang.Object | ||
↳ | sun.font.TextSource | |
↳ | sun.font.StandardTextSource |
[Expand]
Inherited Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Create a simple implementation of a TextSource.
| |||||||||||
Create a StandardTextSource whose context is coextensive with the source.
| |||||||||||
Create a StandardTextSource whose context and source are coextensive with the entire char array.
| |||||||||||
Create a StandardTextSource whose context and source are all the text in the String.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Bidi level of all the characters in context.
| |||||||||||
Source character data.
| |||||||||||
Length of context data.
| |||||||||||
Start of context data in char array returned from getChars.
| |||||||||||
Line metrics for source data.
| |||||||||||
Font render context to use when measuring or rendering source data.
| |||||||||||
Font for source data.
| |||||||||||
Return the layout flags
| |||||||||||
Length of source data.
| |||||||||||
Start of source data in char array returned from getChars.
| |||||||||||
Get subrange of this TextSource.
| |||||||||||
Get debugging info about this TextSource instance.
| |||||||||||
Returns a string representation of the object.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() | |||||||||||
![]() |
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.
Create a StandardTextSource whose context is coextensive with the source.
Create a StandardTextSource whose context and source are coextensive with the entire char array.
Create a StandardTextSource whose context and source are all the text in the String.
Bidi level of all the characters in context.
Source character data.
Length of context data.
Start of context data in char array returned from getChars.
Font render context to use when measuring or rendering source data.
Return the layout flags
Length of source data.
Start of source data in char array returned from getChars.
Get subrange of this TextSource. dir is one of the TextLineComponent constants
Get debugging info about this TextSource instance. Default implementation just returns toString. Subclasses should implement this to match the semantics of the toString constants.
Returns a string representation of the object. In general, the
toString
method returns a string that
"textually represents" this object. The result should
be a concise but informative representation that is easy for a
person to read.
It is recommended that all subclasses override this method.
The toString
method for class Object
returns a string consisting of the name of the class of which the
object is an instance, the at-sign character `@
', and
the unsigned hexadecimal representation of the hash code of the
object. In other words, this method returns a string equal to the
value of:
getClass().getName() + '@' + Integer.toHexString(hashCode())