public class RichTextChange<PS,SEG,S> extends TextChange<StyledDocument<PS,SEG,S>,RichTextChange<PS,SEG,S>>
GenericStyledArea
.inserted, position, removed
Constructor | Description |
---|---|
RichTextChange(int position,
StyledDocument<PS,SEG,S> removed,
StyledDocument<PS,SEG,S> inserted) |
Modifier and Type | Method | Description |
---|---|---|
protected StyledDocument<PS,SEG,S> |
concat(StyledDocument<PS,SEG,S> a,
StyledDocument<PS,SEG,S> b) |
|
protected RichTextChange<PS,SEG,S> |
create(int position,
StyledDocument<PS,SEG,S> removed,
StyledDocument<PS,SEG,S> inserted) |
|
boolean |
equals(java.lang.Object other) |
|
protected int |
insertedLength() |
|
boolean |
isPlainTextIdentity() |
Equivalent to
richChange.toPlainTextChange().isIdentity() but without the additional object
creation via toPlainTextChange() . |
protected int |
removedLength() |
|
static void |
skipStyleComparison(boolean value) |
|
protected StyledDocument<PS,SEG,S> |
sub(StyledDocument<PS,SEG,S> doc,
int from,
int to) |
|
PlainTextChange |
toPlainTextChange() |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getInserted, getInsertionEnd, getNetLength, getPosition, getRemovalEnd, getRemoved, hashCode, invert, isIdentity, mergeWith, toString
public RichTextChange(int position, StyledDocument<PS,SEG,S> removed, StyledDocument<PS,SEG,S> inserted)
protected int removedLength()
removedLength
in class TextChange<StyledDocument<PS,SEG,S>,RichTextChange<PS,SEG,S>>
protected int insertedLength()
insertedLength
in class TextChange<StyledDocument<PS,SEG,S>,RichTextChange<PS,SEG,S>>
protected final StyledDocument<PS,SEG,S> concat(StyledDocument<PS,SEG,S> a, StyledDocument<PS,SEG,S> b)
concat
in class TextChange<StyledDocument<PS,SEG,S>,RichTextChange<PS,SEG,S>>
protected final StyledDocument<PS,SEG,S> sub(StyledDocument<PS,SEG,S> doc, int from, int to)
sub
in class TextChange<StyledDocument<PS,SEG,S>,RichTextChange<PS,SEG,S>>
protected final RichTextChange<PS,SEG,S> create(int position, StyledDocument<PS,SEG,S> removed, StyledDocument<PS,SEG,S> inserted)
create
in class TextChange<StyledDocument<PS,SEG,S>,RichTextChange<PS,SEG,S>>
public final PlainTextChange toPlainTextChange()
public final boolean isPlainTextIdentity()
richChange.toPlainTextChange().isIdentity()
but without the additional object
creation via toPlainTextChange()
.public static void skipStyleComparison(boolean value)
public boolean equals(java.lang.Object other)
equals
in class TextChange<StyledDocument<PS,SEG,S>,RichTextChange<PS,SEG,S>>