Top Description Fields Constructors Methods
org.fxmisc.richtext.model

public Class RichTextChange<PS, SEG, S>

extends TextChange<StyledDocument<PS, SEG, S>, RichTextChange<PS, SEG, S>>
Class Inheritance

An object that specifies where a change occurred in a org.fxmisc.richtext.GenericStyledArea.

Field Summary

Modifier and TypeField and Description
private static boolean
Inherited from org.fxmisc.richtext.model.TextChange:
insertedpositionremoved

Constructor Summary

AccessConstructor and Description
public
RichTextChange(int position, StyledDocument<PS, SEG, S> removed, StyledDocument<PS, SEG, S> inserted)

Method Summary

Modifier and TypeMethod and Description
protected final StyledDocument<PS, SEG, S>
concat(StyledDocument<PS, SEG, S> a, StyledDocument<PS, SEG, S> b)

Implements abstract org.fxmisc.richtext.model.TextChange.concat.

protected final RichTextChange<PS, SEG, S>
create(int position, StyledDocument<PS, SEG, S> removed, StyledDocument<PS, SEG, S> inserted)

Implements abstract org.fxmisc.richtext.model.TextChange.create.

public boolean
equals(Object other)

Overrides org.fxmisc.richtext.model.TextChange.equals.

Indicates whether some other object is "equal to" this one.

protected int
public final boolean
isPlainTextIdentity()

Equivalent to richChange.toPlainTextChange().isIdentity() but without the additional object creation via toPlainTextChange().

protected int
public static void
skipStyleComparison(boolean value)

protected final StyledDocument<PS, SEG, S>
sub(StyledDocument<PS, SEG, S> doc, int from, int to)

Implements abstract org.fxmisc.richtext.model.TextChange.sub.

public final PlainTextChange
Inherited from org.fxmisc.richtext.model.TextChange:
getInsertedgetInsertionEndgetNetLengthgetPositiongetRemovalEndgetRemovedhashCodeinvertisIdentitymergeWithtoString

Field Detail

skipStyleComparisonback to summary
private static boolean skipStyleComparison

Constructor Detail

RichTextChangeback to summary
public RichTextChange(int position, StyledDocument<PS, SEG, S> removed, StyledDocument<PS, SEG, S> inserted)

Method Detail

concatback to summary
protected final StyledDocument<PS, SEG, S> concat(StyledDocument<PS, SEG, S> a, StyledDocument<PS, SEG, S> b)

Implements abstract org.fxmisc.richtext.model.TextChange.concat.

Annotations
@Override
createback to summary
protected final RichTextChange<PS, SEG, S> create(int position, StyledDocument<PS, SEG, S> removed, StyledDocument<PS, SEG, S> inserted)

Implements abstract org.fxmisc.richtext.model.TextChange.create.

Annotations
@Override
equalsback to summary
public boolean equals(Object other)

Overrides org.fxmisc.richtext.model.TextChange.equals.

Doc from java.lang.Object.equals.

Indicates whether some other object is "equal to" this one.

The equals method implements an equivalence relation on non-null object references:

  • It is reflexive: for any non-null reference value x, x.equals(x) should return true.
  • It is symmetric: for any non-null reference values x and y, x.equals(y) should return true if and only if y.equals(x) returns true.
  • It is transitive: for any non-null reference values x, y, and z, if x.equals(y) returns true and y.equals(z) returns true, then x.equals(z) should return true.
  • It is consistent: for any non-null reference values x and y, multiple invocations of x.equals(y) consistently return true or consistently return false, provided no information used in equals comparisons on the objects is modified.
  • For any non-null reference value x, x.equals(null) should return false.

An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes.

insertedLengthback to summary
protected int insertedLength()

Implements abstract org.fxmisc.richtext.model.TextChange.insertedLength.

Annotations
@Override
isPlainTextIdentityback to summary
public final boolean isPlainTextIdentity()

Equivalent to richChange.toPlainTextChange().isIdentity() but without the additional object creation via toPlainTextChange().

removedLengthback to summary
protected int removedLength()

Implements abstract org.fxmisc.richtext.model.TextChange.removedLength.

Annotations
@Override
skipStyleComparisonback to summary
public static void skipStyleComparison(boolean value)
subback to summary
protected final StyledDocument<PS, SEG, S> sub(StyledDocument<PS, SEG, S> doc, int from, int to)

Implements abstract org.fxmisc.richtext.model.TextChange.sub.

Annotations
@Override
toPlainTextChangeback to summary
public final PlainTextChange toPlainTextChange()