Top Description Constructors Methods
org.fxmisc.richtext.model

public abstract Class NodeSegmentOpsBase<SEG, S>

extends SegmentOpsBase<SEG, S>
Class Inheritance
Type Parameters
<SEG>
type of segment
<S>
type of style
Imports
java.util.Optional

Properly implements SegmentOps when implementing a non-text custom object, such as a shape or image, and reduces boilerplate. Developers may want to override joinSeg(Object, Object) and joinStyle(Object, Object).

Constructor Summary

AccessConstructor and Description
public
NodeSegmentOpsBase(SEG empty)

Method Summary

Modifier and TypeMethod and Description
public Optional<SEG>
joinSeg(SEG currentSeg, SEG nextSeg)

Implements org.fxmisc.richtext.model.SegmentOps.joinSeg.

Joins two consecutive segments together into one or Optional#empty() if they cannot be joined.

public char
realCharAt(SEG seg, int index)

Implements abstract org.fxmisc.richtext.model.SegmentOpsBase.realCharAt.

public String
public SEG
realSubSequence(SEG seg, int start, int end)

Implements abstract org.fxmisc.richtext.model.SegmentOpsBase.realSubSequence.

public SEG
Inherited from org.fxmisc.richtext.model.SegmentOpsBase:
charAtcreateEmptySeggetTextjoinStylesubSequencesubSequence

Constructor Detail

NodeSegmentOpsBaseback to summary
public NodeSegmentOpsBase(SEG empty)

Method Detail

joinSegback to summary
public Optional<SEG> joinSeg(SEG currentSeg, SEG nextSeg)

Implements org.fxmisc.richtext.model.SegmentOps.joinSeg.

Doc from org.fxmisc.richtext.model.SegmentOps.joinSeg.

Joins two consecutive segments together into one or Optional#empty() if they cannot be joined.

Annotations
@Override
realCharAtback to summary
public char realCharAt(SEG seg, int index)

Implements abstract org.fxmisc.richtext.model.SegmentOpsBase.realCharAt.

Annotations
@Override
realGetTextback to summary
public String realGetText(SEG seg)

Implements abstract org.fxmisc.richtext.model.SegmentOpsBase.realGetText.

Annotations
@Override
realSubSequenceback to summary
public SEG realSubSequence(SEG seg, int start, int end)

Implements abstract org.fxmisc.richtext.model.SegmentOpsBase.realSubSequence.

Annotations
@Override
realSubSequenceback to summary
public SEG realSubSequence(SEG seg, int start)

Overrides org.fxmisc.richtext.model.SegmentOpsBase.realSubSequence.

Annotations
@Override