## Uses of Class
org.apache.xmlgraphics.ps.PSGenerator

- Packages that use PSGenerator
  Package | Description
  --- | ---
  org.apache.xmlgraphics.java2d | Provides convenience base and utility classes for subclassing the `java.awt.Graphics2D` class in order to translate Java 2D primitives into another graphic format.
  org.apache.xmlgraphics.java2d.ps | Graphics2D implementations for generating PostScript and Encapsulated PostScript (EPS) files.
  org.apache.xmlgraphics.ps | Classes for the creation of PostScript files.
  org.apache.xmlgraphics.ps.dsc | Tools for DSC-compliant PostScript files (DSC = Document Structuring Conventions).
  org.apache.xmlgraphics.ps.dsc.events | Event classes used by the DSC parser.
  org.apache.xmlgraphics.ps.dsc.tools | Tools for working with DSC-compliant PostScript files.

- - ### Uses of PSGenerator in org.apache.xmlgraphics.java2d

    Methods in org.apache.xmlgraphics.java2d with parameters of type PSGenerator
    Modifier and Type | Method and Description
    --- | ---
    `java.awt.Graphics2D` | GeneralGraphics2DImagePainter.`getGraphics(boolean textAsShapes, PSGenerator gen)`

  - ### Uses of PSGenerator in org.apache.xmlgraphics.java2d.ps

    Fields in org.apache.xmlgraphics.java2d.ps declared as PSGenerator
    Modifier and Type | Field and Description
    --- | ---
    `protected PSGenerator` | PSGraphics2D.`gen` the PostScript generator being created

    Methods in org.apache.xmlgraphics.java2d.ps that return PSGenerator
    Modifier and Type | Method and Description
    --- | ---
    `PSGenerator` | PSGraphics2D.`getPSGenerator()`

    Methods in org.apache.xmlgraphics.java2d.ps with parameters of type PSGenerator
    Modifier and Type | Method and Description
    --- | ---
    `static void` | PSGraphics2D.`applyStroke(java.awt.Stroke stroke, PSGenerator gen)` Applies a new Stroke object.
    `void` | PSGraphics2D.`setPSGenerator(PSGenerator gen)` Sets the PostScript generator

    Constructors in org.apache.xmlgraphics.java2d.ps with parameters of type PSGenerator
    Constructor and Description
    `PSGraphics2D(boolean textAsShapes, PSGenerator gen)` Create a new Graphics2D that generates PostScript code.

  - ### Uses of PSGenerator in org.apache.xmlgraphics.ps

    Methods in org.apache.xmlgraphics.ps with parameters of type PSGenerator
    Modifier and Type | Method and Description
    --- | ---
    `static void` | PSFontUtils.`defineAdobeCyrillicEncoding(PSGenerator gen)` Defines the AdobeStandardCyrillic encoding for use in PostScript files.
    `static void` | PSFontUtils.`defineWinAnsiEncoding(PSGenerator gen)` Defines the WinAnsi encoding for use in PostScript files.
    `static void` | PSFontUtils.`embedType1Font(PSGenerator gen, java.io.InputStream in)` This method reads a Type 1 font from a stream and embeds it into a PostScript stream.
    `PSResource` | FormGenerator.`generate(PSGenerator gen)` Generates the PostScript form.
    `protected void` | ImageFormGenerator.`generateAdditionalDataStream(PSGenerator gen)` Generates some PostScript code right after the form definition (used primarily for bitmap data).
    `protected void` | FormGenerator.`generateAdditionalDataStream(PSGenerator gen)` Generates some PostScript code right after the form definition (used primarily for bitmap data).
    `protected void` | ImageFormGenerator.`generatePaintProc(PSGenerator gen)` Generates the PostScript code for the PaintProc of the form.
    `protected abstract void` | FormGenerator.`generatePaintProc(PSGenerator gen)` Generates the PostScript code for the PaintProc of the form.
    `static void` | PSImageUtils.`paintForm(PSResource form, java.awt.geom.Dimension2D formDimensions, java.awt.geom.Rectangle2D targetRect, PSGenerator gen)` Paints a reusable image (previously added as a PostScript form).
    `static void` | PSImageUtils.`paintForm(PSResource form, java.awt.geom.Rectangle2D targetRect, PSGenerator gen)` Deprecated. Please use `PSImageUtils.paintForm(PSResource, Dimension2D, Rectangle2D, PSGenerator)` instead.
    `static void` | PSImageUtils.`paintReusableImage(java.lang.String formName, java.awt.geom.Rectangle2D targetRect, PSGenerator gen)` Deprecated. Please use `PSImageUtils.paintForm(PSResource, Dimension2D, Rectangle2D, PSGenerator)` instead.
    `static void` | PSFontUtils.`redefineFontEncoding(PSGenerator gen, java.lang.String fontName, java.lang.String encoding)` Redefines the encoding of a font.
    `void` | PSState.`reestablish(PSGenerator gen)` Reestablishes the graphics state represented by this instance by issueing the necessary commands.
    `static void` | PSImageUtils.`renderBitmapImage(java.awt.image.RenderedImage img, float x, float y, float w, float h, PSGenerator gen, java.awt.Color mask, boolean maskBitmap)` Renders a bitmap image to PostScript.
    `static void` | PSImageUtils.`renderEPS(byte[] rawEPS, java.lang.String name, float x, float y, float w, float h, float bboxx, float bboxy, float bboxw, float bboxh, PSGenerator gen)` Deprecated. Please use the variant with the InputStream as parameter
    `static void` | PSImageUtils.`renderEPS(java.io.InputStream in, java.lang.String name, java.awt.geom.Rectangle2D viewport, java.awt.geom.Rectangle2D bbox, PSGenerator gen)` Places an EPS file in the PostScript stream.
    `static void` | PSImageUtils.`translateAndScale(PSGenerator gen, java.awt.geom.Dimension2D imageDimensions, java.awt.geom.Rectangle2D targetRect)` Generates commands to modify the current transformation matrix so an image fits into a given rectangle.
    `static void` | PSProcSets.`writeEPSProcSet(PSGenerator gen)` Generates a resource defining a procset for including EPS graphics.
    `static void` | PSProcSets.`writeFOPEPSProcSet(PSGenerator gen)` Deprecated. Use writeEPSProcSet() instead.
    `static void` | PSProcSets.`writeFOPStdProcSet(PSGenerator gen)` Deprecated. Use writeStdProcSet() instead.
    `static void` | PSImageUtils.`writeImage(byte[] img, java.awt.Dimension imgDim, java.lang.String imgDescription, java.awt.geom.Rectangle2D targetRect, boolean isJPEG, java.awt.color.ColorSpace colorSpace, PSGenerator gen)` Deprecated. Please use the variant with the more versatile ImageEncoder as parameter
    `static void` | PSImageUtils.`writeImage(ImageEncoder encoder, java.awt.Dimension imgDim, java.lang.String imgDescription, java.awt.geom.Rectangle2D targetRect, java.awt.image.ColorModel colorModel, PSGenerator gen)`
    `static void` | PSImageUtils.`writeImage(ImageEncoder encoder, java.awt.Dimension imgDim, java.lang.String imgDescription, java.awt.geom.Rectangle2D targetRect, java.awt.image.ColorModel colorModel, PSGenerator gen, java.awt.image.RenderedImage ri, boolean maskBitmap)` Writes a bitmap image to the PostScript stream.
    `static void` | PSImageUtils.`writeImage(ImageEncoder encoder, java.awt.Dimension imgDim, java.lang.String imgDescription, java.awt.geom.Rectangle2D targetRect, java.awt.image.ColorModel colorModel, PSGenerator gen, java.awt.image.RenderedImage ri, java.awt.Color maskColor)` Writes a bitmap image to the PostScript stream.
    `static void` | PSImageUtils.`writeImage(ImageEncoder encoder, java.awt.Dimension imgDim, java.lang.String imgDescription, java.awt.geom.Rectangle2D targetRect, java.awt.color.ColorSpace colorSpace, int bitsPerComponent, boolean invertImage, PSGenerator gen)` Writes a bitmap image to the PostScript stream.
    `static PSResource` | PSImageUtils.`writeReusableImage(byte[] img, java.awt.Dimension imgDim, java.lang.String formName, java.lang.String imageDescription, boolean isJPEG, java.awt.color.ColorSpace colorSpace, PSGenerator gen)` Deprecated. Please use `FormGenerator`
    `protected static PSResource` | PSImageUtils.`writeReusableImage(ImageEncoder encoder, java.awt.Dimension imgDim, java.lang.String formName, java.lang.String imageDescription, java.awt.color.ColorSpace colorSpace, boolean invertImage, PSGenerator gen)` Deprecated. Please use `FormGenerator`
    `static void` | PSProcSets.`writeStdProcSet(PSGenerator gen)` Generates a resource defining standard procset with operations used by the XML Graphics project.

  - ### Uses of PSGenerator in org.apache.xmlgraphics.ps.dsc

    Fields in org.apache.xmlgraphics.ps.dsc declared as PSGenerator
    Modifier and Type | Field and Description
    --- | ---
    `protected PSGenerator` | DefaultDSCHandler.`gen`

    Methods in org.apache.xmlgraphics.ps.dsc with parameters of type PSGenerator
    Modifier and Type | Method and Description
    --- | ---
    `DSCComment` | DSCParser.`nextDSCComment(java.lang.String name, PSGenerator gen)` Advances to the next DSC comment with the given name.
    `PostScriptComment` | DSCParser.`nextPSComment(java.lang.String prefix, PSGenerator gen)` Advances to the next PostScript comment with the given prefix.
    `void` | ResourceTracker.`writeDocumentResources(PSGenerator gen)` Writes a DSC comment for the needed and supplied resourced for the current DSC document.
    `void` | ResourceTracker.`writePageResources(PSGenerator gen)` Writes a DSC comment for the accumulated used resources on the current page.
    `void` | ResourceTracker.`writeResources(boolean pageLevel, PSGenerator gen)` Writes a DSC comment for the accumulated used resources, either at page level or at document level.

    Constructors in org.apache.xmlgraphics.ps.dsc with parameters of type PSGenerator
    Constructor and Description
    `DefaultNestedDocumentHandler(PSGenerator gen)` Creates a new instance.

  - ### Uses of PSGenerator in org.apache.xmlgraphics.ps.dsc.events

    Methods in org.apache.xmlgraphics.ps.dsc.events with parameters of type PSGenerator
    Modifier and Type | Method and Description
    --- | ---
    `void` | DSCHeaderComment.`generate(PSGenerator gen)`
    `void` | DSCCommentPage.`generate(PSGenerator gen)`
    `void` | DSCCommentHiResBoundingBox.`generate(PSGenerator gen)` Writes the event to the given PSGenerator.
    `void` | AbstractResourcesDSCComment.`generate(PSGenerator gen)` Writes the event to the given PSGenerator.
    `void` | DSCCommentTitle.`generate(PSGenerator gen)` Writes the event to the given PSGenerator.
    `void` | DSCCommentEndOfFile.`generate(PSGenerator gen)`
    `void` | DSCCommentBoundingBox.`generate(PSGenerator gen)` Writes the event to the given PSGenerator.
    `void` | PostScriptComment.`generate(PSGenerator gen)`
    `void` | UnparsedDSCComment.`generate(PSGenerator gen)`
    `void` | DSCCommentBeginDocument.`generate(PSGenerator gen)` Writes the event to the given PSGenerator.
    `void` | DSCComment.`generate(PSGenerator gen)`
    `void` | DSCCommentPages.`generate(PSGenerator gen)`
    `void` | DSCAtend.`generate(PSGenerator gen)`
    `void` | AbstractResourceDSCComment.`generate(PSGenerator gen)` Writes the event to the given PSGenerator.
    `void` | DSCCommentBeginResource.`generate(PSGenerator gen)` Writes the event to the given PSGenerator.
    `void` | DSCCommentEndComments.`generate(PSGenerator gen)`
    `void` | DSCCommentLanguageLevel.`generate(PSGenerator gen)`
    `void` | DSCEvent.`generate(PSGenerator gen)` Writes the event to the given PSGenerator.
    `void` | PostScriptLine.`generate(PSGenerator gen)`

  - ### Uses of PSGenerator in org.apache.xmlgraphics.ps.dsc.tools

    Methods in org.apache.xmlgraphics.ps.dsc.tools with parameters of type PSGenerator
    Modifier and Type | Method and Description
    --- | ---
    `static DSCComment` | DSCTools.`nextPageOrTrailer(DSCParser parser, PSGenerator gen)` Advances the parser to the next page or to the trailer or the end of file comment.

Copyright 1999-2022 The Apache Software Foundation. All Rights Reserved.