Uses of Class
org.apache.xmlgraphics.ps.PSGenerator
Packages that use PSGenerator
Package
Description
Provides convenience base and utility classes for subclassing the
java.awt.Graphics2D
class in order to translate
Java 2D primitives into another graphic format.Graphics2D implementations for generating PostScript and Encapsulated PostScript (EPS) files.
Classes for the creation of PostScript files.
Tools for DSC-compliant PostScript files (DSC = Document Structuring Conventions).
Event classes used by the DSC parser.
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 PSGeneratorModifier and TypeMethodDescriptionGeneralGraphics2DImagePainter.getGraphics
(boolean textAsShapes, PSGenerator gen) -
Uses of PSGenerator in org.apache.xmlgraphics.java2d.ps
Fields in org.apache.xmlgraphics.java2d.ps declared as PSGeneratorModifier and TypeFieldDescriptionprotected PSGenerator
PSGraphics2D.gen
the PostScript generator being createdMethods in org.apache.xmlgraphics.java2d.ps that return PSGeneratorMethods in org.apache.xmlgraphics.java2d.ps with parameters of type PSGeneratorModifier and TypeMethodDescriptionstatic void
PSGraphics2D.applyStroke
(Stroke stroke, PSGenerator gen) Applies a new Stroke object.void
PSGraphics2D.setPSGenerator
(PSGenerator gen) Sets the PostScript generatorConstructors in org.apache.xmlgraphics.java2d.ps with parameters of type PSGeneratorModifierConstructorDescriptionPSGraphics2D
(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 PSGeneratorModifier and TypeMethodDescriptionstatic 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, InputStream in) This method reads a Type 1 font from a stream and embeds it into a PostScript stream.FormGenerator.generate
(PSGenerator gen) Generates the PostScript form.protected void
FormGenerator.generateAdditionalDataStream
(PSGenerator gen) Generates some PostScript code right after the form definition (used primarily for bitmap data).protected void
ImageFormGenerator.generateAdditionalDataStream
(PSGenerator gen) Generates some PostScript code right after the form definition (used primarily for bitmap data).protected abstract void
FormGenerator.generatePaintProc
(PSGenerator gen) Generates the PostScript code for the PaintProc of the form.protected void
ImageFormGenerator.generatePaintProc
(PSGenerator gen) Generates the PostScript code for the PaintProc of the form.static void
PSImageUtils.paintForm
(PSResource form, Dimension2D formDimensions, Rectangle2D targetRect, PSGenerator gen) Paints a reusable image (previously added as a PostScript form).static void
PSImageUtils.paintForm
(PSResource form, Rectangle2D targetRect, PSGenerator gen) Deprecated.static void
PSImageUtils.paintReusableImage
(String formName, Rectangle2D targetRect, PSGenerator gen) Deprecated.Please usePSImageUtils.paintForm(PSResource, Dimension2D, Rectangle2D, PSGenerator)
instead.static void
PSFontUtils.redefineFontEncoding
(PSGenerator gen, String fontName, 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
(RenderedImage img, float x, float y, float w, float h, PSGenerator gen, Color mask, boolean maskBitmap) Renders a bitmap image to PostScript.static void
PSImageUtils.renderEPS
(byte[] rawEPS, 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 parameterstatic void
PSImageUtils.renderEPS
(InputStream in, String name, Rectangle2D viewport, Rectangle2D bbox, PSGenerator gen) Places an EPS file in the PostScript stream.static void
PSImageUtils.translateAndScale
(PSGenerator gen, Dimension2D imageDimensions, 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, Dimension imgDim, String imgDescription, Rectangle2D targetRect, boolean isJPEG, ColorSpace colorSpace, PSGenerator gen) Deprecated.Please use the variant with the more versatile ImageEncoder as parameterstatic void
PSImageUtils.writeImage
(ImageEncoder encoder, Dimension imgDim, String imgDescription, Rectangle2D targetRect, ColorSpace colorSpace, int bitsPerComponent, boolean invertImage, PSGenerator gen) Writes a bitmap image to the PostScript stream.static void
PSImageUtils.writeImage
(ImageEncoder encoder, Dimension imgDim, String imgDescription, Rectangle2D targetRect, ColorModel colorModel, PSGenerator gen) static void
PSImageUtils.writeImage
(ImageEncoder encoder, Dimension imgDim, String imgDescription, Rectangle2D targetRect, ColorModel colorModel, PSGenerator gen, RenderedImage ri, boolean maskBitmap) Writes a bitmap image to the PostScript stream.static void
PSImageUtils.writeImage
(ImageEncoder encoder, Dimension imgDim, String imgDescription, Rectangle2D targetRect, ColorModel colorModel, PSGenerator gen, RenderedImage ri, Color maskColor) Writes a bitmap image to the PostScript stream.static PSResource
PSImageUtils.writeReusableImage
(byte[] img, Dimension imgDim, String formName, String imageDescription, boolean isJPEG, ColorSpace colorSpace, PSGenerator gen) Deprecated.Please useFormGenerator
protected static PSResource
PSImageUtils.writeReusableImage
(ImageEncoder encoder, Dimension imgDim, String formName, String imageDescription, ColorSpace colorSpace, boolean invertImage, PSGenerator gen) Deprecated.Please useFormGenerator
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 PSGeneratorMethods in org.apache.xmlgraphics.ps.dsc with parameters of type PSGeneratorModifier and TypeMethodDescriptionDSCParser.nextDSCComment
(String name, PSGenerator gen) Advances to the next DSC comment with the given name.DSCParser.nextPSComment
(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 PSGeneratorModifierConstructorDescriptionCreates 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 PSGeneratorModifier and TypeMethodDescriptionvoid
AbstractResourceDSCComment.generate
(PSGenerator gen) Writes the event to the given PSGenerator.void
AbstractResourcesDSCComment.generate
(PSGenerator gen) Writes the event to the given PSGenerator.void
DSCAtend.generate
(PSGenerator gen) void
DSCComment.generate
(PSGenerator gen) void
DSCCommentBeginDocument.generate
(PSGenerator gen) Writes the event to the given PSGenerator.void
DSCCommentBeginResource.generate
(PSGenerator gen) Writes the event to the given PSGenerator.void
DSCCommentBoundingBox.generate
(PSGenerator gen) Writes the event to the given PSGenerator.void
DSCCommentEndComments.generate
(PSGenerator gen) void
DSCCommentEndOfFile.generate
(PSGenerator gen) void
DSCCommentHiResBoundingBox.generate
(PSGenerator gen) Writes the event to the given PSGenerator.void
DSCCommentLanguageLevel.generate
(PSGenerator gen) void
DSCCommentPage.generate
(PSGenerator gen) void
DSCCommentPages.generate
(PSGenerator gen) void
DSCCommentTitle.generate
(PSGenerator gen) Writes the event to the given PSGenerator.void
DSCEvent.generate
(PSGenerator gen) Writes the event to the given PSGenerator.void
DSCHeaderComment.generate
(PSGenerator gen) void
PostScriptComment.generate
(PSGenerator gen) void
PostScriptLine.generate
(PSGenerator gen) void
UnparsedDSCComment.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 PSGeneratorModifier and TypeMethodDescriptionstatic DSCComment
DSCTools.nextPageOrTrailer
(DSCParser parser, PSGenerator gen) Advances the parser to the next page or to the trailer or the end of file comment.
PSImageUtils.paintForm(PSResource, Dimension2D, Rectangle2D, PSGenerator)
instead.