Top Fields Constructors Methods
org.fxmisc.richtext.model

pack-priv Class EitherStyledSegmentOps<LSeg, RSeg, LStyle, RStyle>

Located in compilation unit of org.fxmisc.richtext.model.SegmentOps.

extends Object
implements SegmentOps<Either<LSeg, RSeg>, Either<LStyle, RStyle>>
Class Inheritance
All Implemented Interfaces
org.fxmisc.richtext.model.SegmentOps

Field Summary

Modifier and TypeField and Description
private final SegmentOps<LSeg, LStyle>
private final SegmentOps<RSeg, RStyle>

Constructor Summary

AccessConstructor and Description
pack-priv
EitherStyledSegmentOps(SegmentOps<LSeg, LStyle> lOps, SegmentOps<RSeg, RStyle> rOps)

Method Summary

Modifier and TypeMethod and Description
public char
charAt(Either<LSeg, RSeg> seg, int index)

Implements org.fxmisc.richtext.model.SegmentOps.charAt.

public Either<LSeg, RSeg>
public String
public Optional<Either<LSeg, RSeg>>
joinSeg(Either<LSeg, RSeg> left, Either<LSeg, RSeg> right)

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

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

public Optional<Either<LStyle, RStyle>>
joinStyle(Either<LStyle, RStyle> left, Either<LStyle, RStyle> right)

Overrides default org.fxmisc.richtext.model.SegmentOps.joinStyle.

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

public int
public Either<LSeg, RSeg>
subSequence(Either<LSeg, RSeg> seg, int start, int end)

Implements org.fxmisc.richtext.model.SegmentOps.subSequence.

public Either<LSeg, RSeg>
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

lOpsback to summary
private final SegmentOps<LSeg, LStyle> lOps
rOpsback to summary
private final SegmentOps<RSeg, RStyle> rOps

Constructor Detail

EitherStyledSegmentOpsback to summary
pack-priv EitherStyledSegmentOps(SegmentOps<LSeg, LStyle> lOps, SegmentOps<RSeg, RStyle> rOps)

Method Detail

charAtback to summary
public char charAt(Either<LSeg, RSeg> seg, int index)

Implements org.fxmisc.richtext.model.SegmentOps.charAt.

Annotations
@Override
createEmptySegback to summary
public Either<LSeg, RSeg> createEmptySeg()

Implements org.fxmisc.richtext.model.SegmentOps.createEmptySeg.

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

Creates an empty segment. This method should return the same object for better performance and memory usage.

getTextback to summary
public String getText(Either<LSeg, RSeg> seg)

Implements org.fxmisc.richtext.model.SegmentOps.getText.

Annotations
@Override
joinSegback to summary
public Optional<Either<LSeg, RSeg>> joinSeg(Either<LSeg, RSeg> left, Either<LSeg, RSeg> right)

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
joinStyleback to summary
public Optional<Either<LStyle, RStyle>> joinStyle(Either<LStyle, RStyle> left, Either<LStyle, RStyle> right)

Overrides default org.fxmisc.richtext.model.SegmentOps.joinStyle.

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

Joins two consecutive styles together into one or Optional#empty() if they cannot be joined. By default, returns Optional#empty().

Annotations
@Override
lengthback to summary
public int length(Either<LSeg, RSeg> seg)

Implements org.fxmisc.richtext.model.SegmentOps.length.

Annotations
@Override
subSequenceback to summary
public Either<LSeg, RSeg> subSequence(Either<LSeg, RSeg> seg, int start, int end)

Implements org.fxmisc.richtext.model.SegmentOps.subSequence.

Annotations
@Override
subSequenceback to summary
public Either<LSeg, RSeg> subSequence(Either<LSeg, RSeg> seg, int start)

Implements org.fxmisc.richtext.model.SegmentOps.subSequence.

Annotations
@Override