Class ReadOnlyStyledDocument<PS,​SEG,​S>

  • Type Parameters:
    PS - The type of the paragraph style.
    SEG - The type of the segments in the paragraph (e.g. String).
    S - The type of the style of individual segments.
    All Implemented Interfaces:
    StyledDocument<PS,​SEG,​S>, TwoDimensional

    public final class ReadOnlyStyledDocument<PS,​SEG,​S>
    extends java.lang.Object
    implements StyledDocument<PS,​SEG,​S>
    An immutable implementation of StyledDocument that does not allow editing. For a StyledDocument that can be edited, see EditableStyledDocument. To create one, use its static factory "from"-prefixed methods or ReadOnlyStyledDocumentBuilder.