Class EPSDocument
java.lang.Object
de.erichseifert.vectorgraphics2d.SizedDocument
de.erichseifert.vectorgraphics2d.eps.EPSDocument
- All Implemented Interfaces:
Document
Represents a
Document in the Encapsulated PostScript®
(EPS) format.-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final Stringprivate static final Patternprivate static final Stringprivate static final Stringprivate static final intMapping of stroke endcap values from Java to PostScript®.Mapping of line join values for path drawing from Java to PostScript®.private static final doubleConstant to convert values from millimeters to PostScript® units (1/72th inch). -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate voidprivate static Stringprivate static Stringprivate static StringgetOutput(Image image, int imageWidth, int imageHeight, double x, double y, double width, double height) private static Stringprivate static Stringprivate static StringBuilderprivate static Stringvoidprivate static voidoutput(BufferedImage image, StringBuilder out) voidwriteTo(OutputStream out) Methods inherited from class de.erichseifert.vectorgraphics2d.SizedDocument
getPageSize, isCompressed
-
Field Details
-
UNITS_PER_MM
private static final double UNITS_PER_MMConstant to convert values from millimeters to PostScript® units (1/72th inch).- See Also:
-
CHARSET
- See Also:
-
EOL
- See Also:
-
MAX_LINE_WIDTH
private static final int MAX_LINE_WIDTH- See Also:
-
ELEMENT_SEPARATION_PATTERN
-
STROKE_ENDCAPS
Mapping of stroke endcap values from Java to PostScript®. -
STROKE_LINEJOIN
Mapping of line join values for path drawing from Java to PostScript®. -
FONT_LATIN1_SUFFIX
- See Also:
-
elements
-
-
Constructor Details
-
EPSDocument
-
-
Method Details
-
addHeader
private void addHeader() -
writeTo
- Throws:
IOException
-
handle
-
getOutput
-
getOutput
-
getOutput
-
output
-
getOutput
-
getOutput
-
getOutput
-
getOutput
-