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 String
concat(String a, String b)
protected PlainTextChange
create(int position, String removed, String inserted)
protected int
insertedLength()
protected int
removedLength()
protected String
sub(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:
removedLength
in classTextChange<String,PlainTextChange>
-
insertedLength
protected int insertedLength()
- Specified by:
insertedLength
in classTextChange<String,PlainTextChange>
-
concat
protected final String concat(String a, String b)
- Specified by:
concat
in classTextChange<String,PlainTextChange>
-
sub
protected final String sub(String s, int from, int to)
- Specified by:
sub
in classTextChange<String,PlainTextChange>
-
create
protected final PlainTextChange create(int position, String removed, String inserted)
- Specified by:
create
in classTextChange<String,PlainTextChange>
-
-