Class PSDocumentGraphics2D

All Implemented Interfaces:
Cloneable

public class PSDocumentGraphics2D extends AbstractPSDocumentGraphics2D
This class is a wrapper for the PSGraphics2D that is used to create a full document around the PostScript rendering from PSGraphics2D.
Version:
$Id$
See Also:
  • Constructor Details

    • PSDocumentGraphics2D

      public PSDocumentGraphics2D(boolean textAsShapes)
      Create a new AbstractPSDocumentGraphics2D. This is used to create a new PostScript document, the height, width and output stream can be setup later. For use by the transcoder which needs font information for the bridge before the document size is known. The resulting document is written to the stream after rendering.
      Parameters:
      textAsShapes - set this to true so that text will be rendered using curves and not the font.
    • PSDocumentGraphics2D

      public PSDocumentGraphics2D(boolean textAsShapes, OutputStream stream, int width, int height) throws IOException
      Create a new AbstractPSDocumentGraphics2D. This is used to create a new PostScript document of the given height and width. The resulting document is written to the stream after rendering.
      Parameters:
      textAsShapes - set this to true so that text will be rendered using curves and not the font.
      stream - the stream that the final document should be written to.
      width - the width of the document
      height - the height of the document
      Throws:
      IOException - an io exception if there is a problem writing to the output stream
    • PSDocumentGraphics2D

      public PSDocumentGraphics2D(PSDocumentGraphics2D g)
      This constructor supports the create method
      Parameters:
      g - the PostScript document graphics to make a copy of
  • Method Details