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 boolean
compressed
private PageSize
pageSize
-
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 theDocument
represents 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:Document
Returns whether or not theDocument
represents compressed data.- Specified by:
isCompressed
in interfaceDocument
- Returns:
true
if the contents are compressed,false
otherwise.
-
-