Top Methods
com.sun.javafx.scene.text

public Interface GlyphList

Known Direct Implementers
com.sun.javafx.text.TextRun
Imports
com.sun.javafx.geom.Point2D, .RectBounds

Method Summary

Modifier and TypeMethod and Description
public int
getCharOffset(int glyphIndex)

Maps the given glyph index to the char offset.

public int
getGlyphCode(int glyphIndex)

Returns the glyph code for the given glyphIndex.

public int
getGlyphCount()

Returns the number of glyphs in GlyphList.

public float
getHeight()

Returns the height of the GlyphList

public RectBounds
getLineBounds()

See TextLine#getBounds() (used outside text layout in rendering and span bounds)

public Point2D
getLocation()

The top-left location of the GlyphList relative to the origin of the Text Layout.

public float
getPosX(int glyphIndex)

The x position for the given glyphIndex relative the GlyphList.

public float
getPosY(int glyphIndex)

The y position for the given glyphIndex relative the GlyphList.

public TextSpan
getTextSpan()

Used during layout children (for rich text) can be null (for non-rich text) but never null for rich text.

public float
getWidth()

Returns the width of the GlyphList

public boolean
isComplex()

Means that this GlyphList was shaped using complex processing (ICU), either because it is complex script or because font features were requested.

Method Detail

getCharOffsetback to summary
public int getCharOffset(int glyphIndex)

Maps the given glyph index to the char offset. (used during rendering (selection))

getGlyphCodeback to summary
public int getGlyphCode(int glyphIndex)

Returns the glyph code for the given glyphIndex.

getGlyphCountback to summary
public int getGlyphCount()

Returns the number of glyphs in GlyphList.

getHeightback to summary
public float getHeight()

Returns the height of the GlyphList

getLineBoundsback to summary
public RectBounds getLineBounds()

See TextLine#getBounds() (used outside text layout in rendering and span bounds)

getLocationback to summary
public Point2D getLocation()

The top-left location of the GlyphList relative to the origin of the Text Layout.

getPosXback to summary
public float getPosX(int glyphIndex)

The x position for the given glyphIndex relative the GlyphList.

getPosYback to summary
public float getPosY(int glyphIndex)

The y position for the given glyphIndex relative the GlyphList.

getTextSpanback to summary
public TextSpan getTextSpan()

Used during layout children (for rich text) can be null (for non-rich text) but never null for rich text.

getWidthback to summary
public float getWidth()

Returns the width of the GlyphList

isComplexback to summary
public boolean isComplex()

Means that this GlyphList was shaped using complex processing (ICU), either because it is complex script or because font features were requested. (used outside text layout in rendering)