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 PSGeneratorPSGraphics2D.genthe 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 voidPSGraphics2D.applyStroke(Stroke stroke, PSGenerator gen) Applies a new Stroke object.voidPSGraphics2D.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 voidPSFontUtils.defineAdobeCyrillicEncoding(PSGenerator gen) Defines the AdobeStandardCyrillic encoding for use in PostScript files.static voidPSFontUtils.defineWinAnsiEncoding(PSGenerator gen) Defines the WinAnsi encoding for use in PostScript files.static voidPSFontUtils.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 voidFormGenerator.generateAdditionalDataStream(PSGenerator gen) Generates some PostScript code right after the form definition (used primarily for bitmap data).protected voidImageFormGenerator.generateAdditionalDataStream(PSGenerator gen) Generates some PostScript code right after the form definition (used primarily for bitmap data).protected abstract voidFormGenerator.generatePaintProc(PSGenerator gen) Generates the PostScript code for the PaintProc of the form.protected voidImageFormGenerator.generatePaintProc(PSGenerator gen) Generates the PostScript code for the PaintProc of the form.static voidPSImageUtils.paintForm(PSResource form, Dimension2D formDimensions, Rectangle2D targetRect, PSGenerator gen) Paints a reusable image (previously added as a PostScript form).static voidPSImageUtils.paintForm(PSResource form, Rectangle2D targetRect, PSGenerator gen) Deprecated.static voidPSImageUtils.paintReusableImage(String formName, Rectangle2D targetRect, PSGenerator gen) Deprecated.Please usePSImageUtils.paintForm(PSResource, Dimension2D, Rectangle2D, PSGenerator)instead.static voidPSFontUtils.redefineFontEncoding(PSGenerator gen, String fontName, String encoding) Redefines the encoding of a font.voidPSState.reestablish(PSGenerator gen) Reestablishes the graphics state represented by this instance by issueing the necessary commands.static voidPSImageUtils.renderBitmapImage(RenderedImage img, float x, float y, float w, float h, PSGenerator gen, Color mask, boolean maskBitmap) Renders a bitmap image to PostScript.static voidPSImageUtils.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 voidPSImageUtils.renderEPS(InputStream in, String name, Rectangle2D viewport, Rectangle2D bbox, PSGenerator gen) Places an EPS file in the PostScript stream.static voidPSImageUtils.translateAndScale(PSGenerator gen, Dimension2D imageDimensions, Rectangle2D targetRect) Generates commands to modify the current transformation matrix so an image fits into a given rectangle.static voidPSProcSets.writeEPSProcSet(PSGenerator gen) Generates a resource defining a procset for including EPS graphics.static voidPSProcSets.writeFOPEPSProcSet(PSGenerator gen) Deprecated.Use writeEPSProcSet() instead.static voidPSProcSets.writeFOPStdProcSet(PSGenerator gen) Deprecated.Use writeStdProcSet() instead.static voidPSImageUtils.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 voidPSImageUtils.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 voidPSImageUtils.writeImage(ImageEncoder encoder, Dimension imgDim, String imgDescription, Rectangle2D targetRect, ColorModel colorModel, PSGenerator gen) static voidPSImageUtils.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 voidPSImageUtils.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 PSResourcePSImageUtils.writeReusableImage(byte[] img, Dimension imgDim, String formName, String imageDescription, boolean isJPEG, ColorSpace colorSpace, PSGenerator gen) Deprecated.Please useFormGeneratorprotected static PSResourcePSImageUtils.writeReusableImage(ImageEncoder encoder, Dimension imgDim, String formName, String imageDescription, ColorSpace colorSpace, boolean invertImage, PSGenerator gen) Deprecated.Please useFormGeneratorstatic voidPSProcSets.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.voidResourceTracker.writeDocumentResources(PSGenerator gen) Writes a DSC comment for the needed and supplied resourced for the current DSC document.voidResourceTracker.writePageResources(PSGenerator gen) Writes a DSC comment for the accumulated used resources on the current page.voidResourceTracker.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 TypeMethodDescriptionvoidAbstractResourceDSCComment.generate(PSGenerator gen) Writes the event to the given PSGenerator.voidAbstractResourcesDSCComment.generate(PSGenerator gen) Writes the event to the given PSGenerator.voidDSCAtend.generate(PSGenerator gen) voidDSCComment.generate(PSGenerator gen) voidDSCCommentBeginDocument.generate(PSGenerator gen) Writes the event to the given PSGenerator.voidDSCCommentBeginResource.generate(PSGenerator gen) Writes the event to the given PSGenerator.voidDSCCommentBoundingBox.generate(PSGenerator gen) Writes the event to the given PSGenerator.voidDSCCommentEndComments.generate(PSGenerator gen) voidDSCCommentEndOfFile.generate(PSGenerator gen) voidDSCCommentHiResBoundingBox.generate(PSGenerator gen) Writes the event to the given PSGenerator.voidDSCCommentLanguageLevel.generate(PSGenerator gen) voidDSCCommentPage.generate(PSGenerator gen) voidDSCCommentPages.generate(PSGenerator gen) voidDSCCommentTitle.generate(PSGenerator gen) Writes the event to the given PSGenerator.voidDSCEvent.generate(PSGenerator gen) Writes the event to the given PSGenerator.voidDSCHeaderComment.generate(PSGenerator gen) voidPostScriptComment.generate(PSGenerator gen) voidPostScriptLine.generate(PSGenerator gen) voidUnparsedDSCComment.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 DSCCommentDSCTools.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.