Class CrossReferenceHandler


  • public class CrossReferenceHandler
    extends Object
    TODO: Write java doc.
    • Constructor Detail

      • CrossReferenceHandler

        public CrossReferenceHandler()
    • Method Detail

      • setReadOnly

        public void setReadOnly()
      • setReadWrite

        public void setReadWrite()
      • getVolumeData

        public VolumeData getVolumeData​(String refid)
        Gets the volume data for the specified identifier.
        Parameters:
        refid - the identifier to get the volume for
        Returns:
        returns the volume number, one-based
      • setVolumeData

        public void setVolumeData​(String refid,
                                  VolumeData volumeData)
      • getPageNumber

        public Integer getPageNumber​(String refid)
        Gets the page number for the specified identifier.
        Parameters:
        refid - the identifier to get the page for
        Returns:
        returns the page number, one-based
      • setPageNumber

        public void setPageNumber​(String refid,
                                  int page)
      • setVolumeCount

        public void setVolumeCount​(int volumes)
      • setSheetsInVolume

        public void setSheetsInVolume​(int volume,
                                      int value)
      • setSheetsInDocument

        public void setSheetsInDocument​(int value)
      • setPageNumberOfFirstContentPageOfVolume

        public void setPageNumberOfFirstContentPageOfVolume​(int volume,
                                                            int value)
      • keepBreakable

        public void keepBreakable​(SheetIdentity ident,
                                  boolean value)
      • commitBreakable

        public void commitBreakable()
      • commitTransitionProperties

        public void commitTransitionProperties()
      • setRowCount

        public void setRowCount​(BlockAddress blockId,
                                int value)
      • trimPageDetails

        public void trimPageDetails()
      • getOverhead

        public Overhead getOverhead​(int volumeNumber)
      • setOverhead

        public void setOverhead​(int volumeNumber,
                                Overhead overhead)
      • getPageNumberOffset

        public Integer getPageNumberOffset​(String key)
      • setPageNumberOffset

        public void setPageNumberOffset​(String key,
                                        Integer value)
      • getVolumeCount

        public int getVolumeCount()
        Gets the number of volumes.
        Returns:
        returns the number of volumes
      • getSheetsInVolume

        public int getSheetsInVolume​(int volume)
      • getSheetsInDocument

        public int getSheetsInDocument()
      • getPagesInVolume

        public int getPagesInVolume​(int volume)
      • getPageNumberOfFirstContentPageOfVolume

        public int getPageNumberOfFirstContentPageOfVolume​(int volume)
      • getPagesInDocument

        public int getPagesInDocument()
      • getBreakable

        public boolean getBreakable​(SheetIdentity ident)
      • getRowCount

        public int getRowCount​(BlockAddress blockId)
      • keepPageDetails

        public void keepPageDetails​(PageDetails value)
      • commitPageDetails

        public void commitPageDetails()
      • setSequenceScope

        public void setSequenceScope​(SequenceId sequenceId,
                                     int fromIndex,
                                     int toIndex)
        Sets the sequence scope for the purpose of finding markers in a specific sequence.
        Parameters:
        sequenceId - the sequence id
        fromIndex - the start index
        toIndex - the end index
      • setVolumeScope

        public void setVolumeScope​(int volumeNumber,
                                   int fromIndex,
                                   int toIndex)
        Sets the volume scope for the purpose of finding markers in a specific volume.
        Parameters:
        volumeNumber - the volume number
        fromIndex - the start index
        toIndex - the end index
      • setNextPageInSequenceEmptyOrAbsent

        public void setNextPageInSequenceEmptyOrAbsent​(BlockLineLocation id)
        Indicate that a page is the last one in the sequence or that the next page is empty.
        Parameters:
        id - The BlockLineLocation that identifies the page.
      • isDirty

        public boolean isDirty()
        Returns true if some information has been changed since last use.
        Returns:
        true if some information has been changed, false otherwise
      • setDirty

        public void setDirty​(boolean value)
        Sets the dirty flag on all tracked data. This is typically used to reset the value of the flag when rendering another pass. However, by setting this value to true, it can be used to disable tracking for the remainder of the rendering.
        Parameters:
        value - the value
      • resetUniqueChecks

        public void resetUniqueChecks()