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 Details Link icon

  • Method Details Link icon

    • textPosProperty Link icon

      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 Link icon

      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 textPos property
      See Also:
    • compareTo Link icon

      public final int compareTo(Marker m)
      Specified by:
      compareTo in interface Comparable<Marker>
    • getIndex Link icon

      public final int getIndex()
      Returns the paragraph index.
      Returns:
      the paragraph index
    • getOffset Link icon

      public final int getOffset()
      Returns the text offset within the paragraph.
      Returns:
      the offset value