Class ReadOnlyStyledDocumentBuilder<PS,​SEG,​S>

    • Constructor Detail

      • ReadOnlyStyledDocumentBuilder

        public ReadOnlyStyledDocumentBuilder​(SegmentOps<SEG,​S> segmentOps,
                                             PS defaultParagraphStyle)
        Creates a builder
        Parameters:
        segmentOps - the SegmentOps to use for each call to one of the Paragraph's constructors.
        defaultParagraphStyle - the default paragraph style to use when one is not specified in the "addParagraph"-prefixed methods
      • ReadOnlyStyledDocumentBuilder

        public ReadOnlyStyledDocumentBuilder​(SegmentOps<SEG,​S> segmentOps,
                                             PS defaultParagraphStyle,
                                             int initialCapacity)
        Creates a builder
        Parameters:
        segmentOps - the SegmentOps to use for each call to one of the Paragraph's constructors.
        defaultParagraphStyle - the default paragraph style to use when one is not specified in the "addParagraph"-prefixed methods
        initialCapacity - the initial capacity of the underlying ArrayList.