public abstract class

TextSource

extends Object
java.lang.Object
   ↳ sun.font.TextSource
Known Direct Subclasses

Class Overview

A text source represents text for rendering, plus context information. All text in the source uses the same font, metrics, and render context, and is at the same bidi level.

Summary

Constants
boolean WITHOUT_CONTEXT Constant for toString(boolean).
boolean WITH_CONTEXT Constant for toString(boolean).
Public Constructors
TextSource()
Public Methods
abstract int getBidiLevel()
Bidi level of all the characters in context.
abstract char[] getChars()
Source character data.
abstract int getContextLength()
Length of context data.
abstract int getContextStart()
Start of context data in char array returned from getChars.
abstract CoreMetrics getCoreMetrics()
Line metrics for source data.
abstract FontRenderContext getFRC()
Font render context to use when measuring or rendering source data.
abstract Font getFont()
Font for source data.
abstract int getLayoutFlags()
Return the layout flags
abstract int getLength()
Length of source data.
abstract int getStart()
Start of source data in char array returned from getChars.
abstract TextSource getSubSource(int start, int length, int dir)
Get subrange of this TextSource.
abstract String toString(boolean withContext)
Get debugging info about this TextSource instance.
[Expand]
Inherited Methods
From class java.lang.Object

Constants

public static final boolean WITHOUT_CONTEXT

Constant for toString(boolean). Indicates that toString should not return info outside of the context of this instance.

Constant Value: false

public static final boolean WITH_CONTEXT

Constant for toString(boolean). Indicates that toString should return info outside of the context of this instance.

Constant Value: true

Public Constructors

public TextSource ()

Public Methods

public abstract int getBidiLevel ()

Bidi level of all the characters in context.

public abstract char[] getChars ()

Source character data.

public abstract int getContextLength ()

Length of context data.

public abstract int getContextStart ()

Start of context data in char array returned from getChars.

public abstract CoreMetrics getCoreMetrics ()

Line metrics for source data.

public abstract FontRenderContext getFRC ()

Font render context to use when measuring or rendering source data.

public abstract Font getFont ()

Font for source data.

public abstract int getLayoutFlags ()

Return the layout flags

public abstract int getLength ()

Length of source data.

public abstract int getStart ()

Start of source data in char array returned from getChars.

public abstract TextSource getSubSource (int start, int length, int dir)

Get subrange of this TextSource. dir is one of the TextLineComponent constants

public abstract String toString (boolean withContext)

Get debugging info about this TextSource instance. Default implementation just returns toString. Subclasses should implement this to match the semantics of the toString constants.