Class AbstractBlockContentManager

    • Field Detail

      • flowWidth

        protected final int flowWidth
      • spacing

        protected final org.daisy.dotify.formatter.impl.row.BlockSpacing spacing
    • Method Detail

      • setContext

        public abstract void setContext​(DefaultContext context)
      • hasNext

        public abstract boolean hasNext()
        Returns true if the manager has more rows.
        Returns:
        returns true if there are more rows, false otherwise
      • hasSignificantContent

        public abstract boolean hasSignificantContent()
        Returns true if the manager has some "significant" content.
        Returns:
        returns true if there is significant content, false otherwise.
      • getNext

        public Optional<RowImpl> getNext()
        Gets the next row from the manager with the specified width.
        Returns:
        returns the next row
      • supportsVariableWidth

        public abstract boolean supportsVariableWidth()
        Returns true if this manager supports rows with variable maximum width, false otherwise.
        Returns:
        true if variable maximum width is supported, false otherwise
      • reset

        public abstract void reset()
        Resets the state of the content manager to the first row.
      • getCollapsiblePreContentRows

        public List<RowImpl> getCollapsiblePreContentRows()
      • hasCollapsiblePreContentRows

        public boolean hasCollapsiblePreContentRows()
      • getInnerPreContentRows

        public List<RowImpl> getInnerPreContentRows()
      • hasInnerPreContentRows

        public boolean hasInnerPreContentRows()
      • getPostContentRows

        public List<RowImpl> getPostContentRows()
      • hasPostContentRows

        public boolean hasPostContentRows()
      • getSkippablePostContentRows

        public List<RowImpl> getSkippablePostContentRows()
      • hasSkippablePostContentRows

        public boolean hasSkippablePostContentRows()
      • getMinimumAvailableWidth

        public int getMinimumAvailableWidth()
        Description copied from interface: BlockStatistics
        Gets the minimum width available for content (excluding margins).
        Specified by:
        getMinimumAvailableWidth in interface BlockStatistics
        Returns:
        returns the available width, in characters
      • getGroupMarkers

        public abstract List<Marker> getGroupMarkers()
        Get markers that are not attached to a row, i.e. markers that proceeds any text contents
        Returns:
        returns markers that proceeds this FlowGroups text contents
      • getGroupAnchors

        public abstract List<String> getGroupAnchors()
      • getGroupIdentifiers

        public abstract List<String> getGroupIdentifiers()