Top Description Fields Constructors Methods
org.fxmisc.richtext

pack-priv Class TextFlowExt

extends TextFlow
Class Inheritance
Known Direct Subclasses
org.fxmisc.richtext.ParagraphText
Static Imports
org.fxmisc.richtext.model.TwoDimensional.Bias.*

Adds additional API to TextFlow.

Field Summary

Modifier and TypeField and Description
private TextFlowLayout

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
pack-priv PathElement[]
getCaretShape(int charIdx, boolean isLeading)

pack-priv int
pack-priv int
getLineEndPosition(int charIdx)

pack-priv int
getLineOfCharacter(int charIdx)

pack-priv int
getLineStartPosition(int charIdx)

pack-priv PathElement[]
pack-priv PathElement[]
getRangeShape(int from, int to)

pack-priv PathElement[]
pack-priv PathElement[]
getUnderlineShape(int from, int to)

pack-priv PathElement[]

Returns:

An array with the PathElement objects which define an underline from the first to the last character.
getUnderlineShape
(int
The index of the first character.
from
,
int
The index of the last character.
to
,
double
The distance below the baseline to draw the underline.
offset
,
double
If non-zero, draw a wavy underline with arcs of this radius.
waveRadius
,
double doubleGap)

pack-priv CharacterHit
hit(double x, double y)

pack-priv CharacterHit
hitLine(double x, int lineIndex)

private TextFlowLayout
Inherited from javafx.scene.text.TextFlow:
caretShapecomputeMinHeightcomputePrefHeightcomputePrefWidthgetBaselineOffsetgetClassCssMetaDatagetContentBiasgetCssMetaDatagetLineSpacinggetTabSizegetTextAlignmenthitTestlayoutChildrenlineSpacingPropertyqueryAccessibleAttributerangeShaperequestLayoutsetLineSpacingsetTabSizesetTextAlignmentsetWidthtabSizePropertytextAlignmentPropertyunderlineShapeusesMirroring

Field Detail

layoutback to summary
private TextFlowLayout layout

Hides javafx.scene.text.TextFlow.layout.

Constructor Detail

TextFlowExtback to summary
pack-priv TextFlowExt()

Method Detail

getCaretShapeback to summary
pack-priv PathElement[] getCaretShape(int charIdx, boolean isLeading)
getLineCountback to summary
pack-priv int getLineCount()
getLineEndPositionback to summary
pack-priv int getLineEndPosition(int charIdx)
getLineOfCharacterback to summary
pack-priv int getLineOfCharacter(int charIdx)
getLineStartPositionback to summary
pack-priv int getLineStartPosition(int charIdx)
getRangeShapeback to summary
pack-priv PathElement[] getRangeShape(IndexRange range)
getRangeShapeback to summary
pack-priv PathElement[] getRangeShape(int from, int to)
getUnderlineShapeback to summary
pack-priv PathElement[] getUnderlineShape(IndexRange range)
getUnderlineShapeback to summary
pack-priv PathElement[] getUnderlineShape(int from, int to)
getUnderlineShapeback to summary
pack-priv PathElement[] getUnderlineShape(int from, int to, double offset, double waveRadius, double doubleGap)
Parameters
from:int

The index of the first character.

to:int

The index of the last character.

offset:double

The distance below the baseline to draw the underline.

waveRadius:double

If non-zero, draw a wavy underline with arcs of this radius.

Returns:PathElement[]

An array with the PathElement objects which define an underline from the first to the last character.

hitback to summary
pack-priv CharacterHit hit(double x, double y)
hitLineback to summary
pack-priv CharacterHit hitLine(double x, int lineIndex)
textLayoutback to summary
private TextFlowLayout textLayout()