Class EPSDocument

java.lang.Object
de.erichseifert.vectorgraphics2d.SizedDocument
de.erichseifert.vectorgraphics2d.eps.EPSDocument
All Implemented Interfaces:
Document

class EPSDocument extends SizedDocument
Represents a Document in the Encapsulated PostScript® (EPS) format.
  • Field Details

    • UNITS_PER_MM

      private static final double UNITS_PER_MM
      Constant to convert values from millimeters to PostScript® units (1/72th inch).
      See Also:
    • CHARSET

      private static final String CHARSET
      See Also:
    • EOL

      private static final String EOL
      See Also:
    • MAX_LINE_WIDTH

      private static final int MAX_LINE_WIDTH
      See Also:
    • ELEMENT_SEPARATION_PATTERN

      private static final Pattern ELEMENT_SEPARATION_PATTERN
    • STROKE_ENDCAPS

      private static final Map<Integer,Integer> STROKE_ENDCAPS
      Mapping of stroke endcap values from Java to PostScript®.
    • STROKE_LINEJOIN

      private static final Map<Integer,Integer> STROKE_LINEJOIN
      Mapping of line join values for path drawing from Java to PostScript®.
    • FONT_LATIN1_SUFFIX

      private static final String FONT_LATIN1_SUFFIX
      See Also:
    • elements

      private final List<String> elements
  • Constructor Details

  • Method Details

    • addHeader

      private void addHeader()
    • writeTo

      public void writeTo(OutputStream out) throws IOException
      Throws:
      IOException
    • handle

      public void handle(Command<?> command)
    • getOutput

      private static String getOutput(Color color)
    • getOutput

      private static String getOutput(Shape s)
    • getOutput

      private static String getOutput(Image image, int imageWidth, int imageHeight, double x, double y, double width, double height)
    • output

      private static void output(BufferedImage image, StringBuilder out)
    • getOutput

      private static String getOutput(String str, double x, double y)
    • getOutput

      private static StringBuilder getOutput(String str)
    • getOutput

      private static String getOutput(Stroke s)
    • getOutput

      private static String getOutput(Font font)