Package org.fxmisc.richtext.model
Class PlainTextChange
- java.lang.Object
-
- org.fxmisc.richtext.model.TextChange<String,PlainTextChange>
-
- org.fxmisc.richtext.model.PlainTextChange
-
public class PlainTextChange extends TextChange<String,PlainTextChange>
An object that specifies where a non-style change occurred in aGenericStyledArea.
-
-
Field Summary
-
Fields inherited from class org.fxmisc.richtext.model.TextChange
inserted, position, removed
-
-
Constructor Summary
Constructors Constructor Description PlainTextChange(int position, String removed, String inserted)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Stringconcat(String a, String b)protected PlainTextChangecreate(int position, String removed, String inserted)protected intinsertedLength()protected intremovedLength()protected Stringsub(String s, int from, int to)-
Methods inherited from class org.fxmisc.richtext.model.TextChange
equals, getInserted, getInsertionEnd, getNetLength, getPosition, getRemovalEnd, getRemoved, hashCode, invert, isIdentity, mergeWith, toString
-
-
-
-
Method Detail
-
removedLength
protected int removedLength()
- Specified by:
removedLengthin classTextChange<String,PlainTextChange>
-
insertedLength
protected int insertedLength()
- Specified by:
insertedLengthin classTextChange<String,PlainTextChange>
-
concat
protected final String concat(String a, String b)
- Specified by:
concatin classTextChange<String,PlainTextChange>
-
sub
protected final String sub(String s, int from, int to)
- Specified by:
subin classTextChange<String,PlainTextChange>
-
create
protected final PlainTextChange create(int position, String removed, String inserted)
- Specified by:
createin classTextChange<String,PlainTextChange>
-
-