APIdia Launch Partner
Top Fields Constructors Methods
com.sun.javafx.text

public abstract Class GlyphLayout

extends Object
Class Inheritance
Known Direct Subclasses
com.sun.javafx.font.coretext.CTGlyphLayout, com.sun.javafx.font.directwrite.DWGlyphLayout, com.sun.javafx.font.freetype.FTFactory.FTStubGlyphLayout, com.sun.javafx.font.freetype.HBGlyphLayout, com.sun.javafx.font.freetype.PangoGlyphLayout
Static Imports
com.sun.javafx.scene.text.TextLayout.FLAGS_ANALYSIS_VALID, .TextLayout.FLAGS_HAS_BIDI, .TextLayout.FLAGS_HAS_CJK, .TextLayout.FLAGS_HAS_COMPLEX, .TextLayout.FLAGS_HAS_EMBEDDED, .TextLayout.FLAGS_HAS_TABS, .TextLayout.FLAGS_RTL_BASE

Field Summary

Modifier and TypeField and Description
public static final int
public static final int
private static Method
isIdeographicMethod

Android versions that still run a dalvik based on JDK 6 (API level 18 and before) don't have the method Character.isIdeographic.

public static final int
LAYOUT_LEFT_TO_RIGHT

A flag bit indicating text direction as determined by Bidi analysis.

public static final int
LAYOUT_NO_LIMIT_CONTEXT

A flag bit indicating that text in the char array after the indicated limit should not be examined.

public static final int
LAYOUT_NO_START_CONTEXT

A flag bit indicating that text in the char array before the indicated start should not be examined.

public static final int

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
protected TextRun
addTextRun(PrismTextLayout layout, char[] chars, int start, int length, PGFont font, TextSpan span, byte level)

private TextRun
addTextRun(PrismTextLayout layout, char[] chars, int start, int length, PGFont font, TextSpan span, byte level, boolean complex)

public int
breakRuns(PrismTextLayout layout, char[] chars, int flags)

public abstract void
protected int
private static boolean
isIdeographic(int codePoint)

public abstract void
layout(TextRun run, PGFont font, FontStrike strike, char[] text)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

CANONICAL_SUBSTITUTIONback to summary
public static final int CANONICAL_SUBSTITUTION
HINTINGback to summary
public static final int HINTING
isIdeographicMethodback to summary
private static Method isIdeographicMethod

Android versions that still run a dalvik based on JDK 6 (API level 18 and before) don't have the method Character.isIdeographic. On devices with a JVM that does not have Character.isIdeographic, there will be non-optimal line breaking for CJKV. The reflection-based approach should be removed in a later version, when the Android base version moves to API level 19.

LAYOUT_LEFT_TO_RIGHTback to summary
public static final int LAYOUT_LEFT_TO_RIGHT

A flag bit indicating text direction as determined by Bidi analysis.

LAYOUT_NO_LIMIT_CONTEXTback to summary
public static final int LAYOUT_NO_LIMIT_CONTEXT

A flag bit indicating that text in the char array after the indicated limit should not be examined.

LAYOUT_NO_START_CONTEXTback to summary
public static final int LAYOUT_NO_START_CONTEXT

A flag bit indicating that text in the char array before the indicated start should not be examined.

LAYOUT_RIGHT_TO_LEFTback to summary
public static final int LAYOUT_RIGHT_TO_LEFT

Constructor Detail

GlyphLayoutback to summary
public GlyphLayout()

Method Detail

addTextRunback to summary
protected TextRun addTextRun(PrismTextLayout layout, char[] chars, int start, int length, PGFont font, TextSpan span, byte level)
addTextRunback to summary
private TextRun addTextRun(PrismTextLayout layout, char[] chars, int start, int length, PGFont font, TextSpan span, byte level, boolean complex)
breakRunsback to summary
public int breakRuns(PrismTextLayout layout, char[] chars, int flags)
disposeback to summary
public abstract void dispose()
getInitialSlotback to summary
protected int getInitialSlot(FontResource fr)
isIdeographicback to summary
private static boolean isIdeographic(int codePoint)
layoutback to summary
public abstract void layout(TextRun run, PGFont font, FontStrike strike, char[] text)