Class SizedDocument

  • All Implemented Interfaces:
    Document
    Direct Known Subclasses:
    EPSDocument, PDFDocument, SVGDocument

    public abstract class SizedDocument
    extends java.lang.Object
    implements Document
    Abstract base for documents that are restricted to a specified page size.
    • Constructor Summary

      Constructors 
      Constructor Description
      SizedDocument​(PageSize pageSize, boolean compressed)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      PageSize getPageSize()  
      boolean isCompressed()
      Returns whether or not the Document represents compressed data.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface de.erichseifert.vectorgraphics2d.Document

        writeTo
    • Field Detail

      • pageSize

        private final PageSize pageSize
      • compressed

        private final boolean compressed
    • Constructor Detail

      • SizedDocument

        public SizedDocument​(PageSize pageSize,
                             boolean compressed)
    • Method Detail

      • getPageSize

        public PageSize getPageSize()
      • isCompressed

        public boolean isCompressed()
        Description copied from interface: Document
        Returns whether or not the Document represents compressed data.
        Specified by:
        isCompressed in interface Document
        Returns:
        true if the contents are compressed, false otherwise.