Contents
Class Marker
java.lang.Object
jfx.incubator.scene.control.richtext.Marker
- All Implemented Interfaces:
Comparable<Marker>
Tracks the text position in a document in the presence of edits.
- Since:
- 24
-
Property Summary
PropertiesTypePropertyDescriptionfinal ReadOnlyObjectProperty
<TextPos> This property tracks the marker's position within the model (value is never null). -
Method Summary
Modifier and TypeMethodDescriptionfinal int
final int
getIndex()
Returns the paragraph index.final int
Returns the text offset within the paragraph.final TextPos
Gets the value of thetextPos
property.final ReadOnlyObjectProperty
<TextPos> This property tracks the marker's position within the model (value is never null).
-
Property Details
-
Method Details
-
textPosProperty
This property tracks the marker's position within the model (value is never null).- Returns:
- the text position property
- See Also:
-
getTextPos
Gets the value of thetextPos
property.- Property description:
- This property tracks the marker's position within the model (value is never null).
- Returns:
- the value of the
textPos
property - See Also:
-
compareTo
- Specified by:
compareTo
in interfaceComparable<Marker>
-
getIndex
public final int getIndex()Returns the paragraph index.- Returns:
- the paragraph index
-
getOffset
public final int getOffset()Returns the text offset within the paragraph.- Returns:
- the offset value
-