Package de.erichseifert.vectorgraphics2d
Class SizedDocument
- java.lang.Object
-
- de.erichseifert.vectorgraphics2d.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.
-
-
Field Summary
Fields Modifier and Type Field Description private booleancompressedprivate PageSizepageSize
-
Constructor Summary
Constructors Constructor Description SizedDocument(PageSize pageSize, boolean compressed)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PageSizegetPageSize()booleanisCompressed()Returns whether or not theDocumentrepresents compressed data.
-
-
-
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:DocumentReturns whether or not theDocumentrepresents compressed data.- Specified by:
isCompressedin interfaceDocument- Returns:
trueif the contents are compressed,falseotherwise.
-
-