Class SizedDocument

java.lang.Object
de.erichseifert.vectorgraphics2d.SizedDocument
All Implemented Interfaces:
Document
Direct Known Subclasses:
EPSDocument, PDFDocument, SVGDocument

public abstract class SizedDocument extends Object implements Document
Abstract base for documents that are restricted to a specified page size.
  • Field Details

    • pageSize

      private final PageSize pageSize
    • compressed

      private final boolean compressed
  • Constructor Details

    • SizedDocument

      public SizedDocument(PageSize pageSize, boolean compressed)
  • Method Details

    • 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.