All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.fxmisc.richtext.RichTextChange Maven / Gradle / Ivy

There is a newer version: 0.11.3
Show newest version
package org.fxmisc.richtext;

public class RichTextChange extends TextChange, RichTextChange> {

    public RichTextChange(int position, StyledDocument removed, StyledDocument inserted) {
        super(position, removed, inserted);
    }

    @Override
    protected final StyledDocument concat(StyledDocument a, StyledDocument b) {
        return a.concat(b);
    }

    @Override
    protected final StyledDocument sub(StyledDocument doc, int from, int to) {
        return doc.subSequence(from, to);
    }

    @Override
    protected final RichTextChange create(int position, StyledDocument removed, StyledDocument inserted) {
        return new RichTextChange(position, removed, inserted);
    }
}