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 String
private static final Pattern
private static final String
private static final String
private static final int
Mapping of stroke endcap values from Java to PostScript®.Mapping of line join values for path drawing from Java to PostScript®.private static final double
Constant to convert values from millimeters to PostScript® units (1/72th inch). -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate void
private static String
private static String
private static String
getOutput
(Image image, int imageWidth, int imageHeight, double x, double y, double width, double height) private static String
private static String
private static StringBuilder
private static String
void
private static void
output
(BufferedImage image, StringBuilder out) void
writeTo
(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
-