Class Marker
java.lang.Object
jfx.incubator.scene.control.richtext.Marker
- All Implemented Interfaces:
Comparable<Marker>
public final class Marker extends Object implements Comparable<Marker>
Tracks the text position in a document in the presence of edits.
- Since:
- 24
Property Summary
| Type | Property | Description |
|---|---|---|
final ReadOnlyObjectProperty |
textPos |
This property tracks the marker's position within the model (value is never null). |
Method Summary
| Modifier and Type | Method | Description |
|---|---|---|
final int |
compareTo |
|
final int |
getIndex() |
Returns the paragraph index. |
final int |
getOffset() |
Returns the text offset within the paragraph. |
final TextPos |
getTextPos() |
Gets the value of the textPos property. |
final ReadOnlyObjectProperty |
textPosProperty() |
This property tracks the marker's position within the model (value is never null). |
Property Details
textPos
public final ReadOnlyObjectProperty<TextPos> textPosProperty
This property tracks the marker's position within the model (value is never null).
- See Also:
Method Details
textPosProperty
public final ReadOnlyObjectProperty<TextPos> textPosProperty()
This property tracks the marker's position within the model (value is never null).
- Returns:
- the text position property
- See Also:
getTextPos
public final TextPos getTextPos()
Gets the value of the
textPos property.- Property description:
- This property tracks the marker's position within the model (value is never null).
- Returns:
- the value of the
textPosproperty - See Also:
compareTo
public final int compareTo(Marker m)
- Specified by:
-
compareToin 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
© 2008, 2025, Oracle and/or its affiliates. All rights reserved.
Documentation extracted from JavaFX API Documentation.
Licensed under the GNU General Public License, version 2, with the Classpath Exception.
Java, JavaFX and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.