| org.apache.xmlgraphics.java2d.ps.PSGraphics2D org.apache.xmlgraphics.java2d.ps.AbstractPSDocumentGraphics2D
All known Subclasses: org.apache.xmlgraphics.java2d.ps.EPSDocumentGraphics2D, org.apache.xmlgraphics.java2d.ps.PSDocumentGraphics2D,
AbstractPSDocumentGraphics2D | abstract public class AbstractPSDocumentGraphics2D extends PSGraphics2D (Code) | | This class is a wrapper for the PSGraphics2D that
is used to create a full document around the PostScript rendering from
PSGraphics2D.
author: Keiron Liddle version: $Id: AbstractPSDocumentGraphics2D.java 426584 2006-07-28 16:01:47Z jeremias $ See Also: org.apache.xmlgraphics.java2d.ps.PSGraphics2D |
height | protected int height(Code) | | |
pagePending | protected boolean pagePending(Code) | | |
pagecount | protected int pagecount(Code) | | |
viewportHeight | protected float viewportHeight(Code) | | |
viewportWidth | protected float viewportWidth(Code) | | |
width | protected int width(Code) | | |
AbstractPSDocumentGraphics2D | AbstractPSDocumentGraphics2D(boolean textAsShapes)(Code) | | 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 renderedusing curves and not the font. |
AbstractPSDocumentGraphics2D | public AbstractPSDocumentGraphics2D(boolean textAsShapes, OutputStream stream, int width, int height) throws IOException(Code) | | 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 renderedusing curves and not the font. Parameters: stream - the stream that the final document should be written to. Parameters: width - the width of the document Parameters: height - the height of the document throws: IOException - an io exception if there is a problemwriting to the output stream |
AbstractPSDocumentGraphics2D | public AbstractPSDocumentGraphics2D(AbstractPSDocumentGraphics2D g)(Code) | | This constructor supports the create method
Parameters: g - the PostScript document graphics to make a copy of |
finish | public void finish() throws IOException(Code) | | The rendering process has finished.
This should be called after the rendering has completed as there is
no other indication it is complete.
This will then write the results to the output stream.
throws: IOException - an io exception if there is a problemwriting to the output stream |
getPageCount | public int getPageCount()(Code) | | |
preparePainting | public void preparePainting()(Code) | |
|
setBackgroundColor | public void setBackgroundColor(Color col)(Code) | | Set the background of the PostScript document.
This is used to set the background for the PostScript document
Rather than leaving it as the default white.
Parameters: col - the background colour to fill |
setViewportDimension | public void setViewportDimension(float w, float h) throws IOException(Code) | | Set the dimensions of the document that will be drawn.
This is useful if the dimensions of the document are different
from the PostScript document that is to be created.
The result is scaled so that the document fits correctly inside the
PostScript document.
Parameters: w - the width of the page Parameters: h - the height of the page throws: IOException - in case of an I/O problem |
setupDocument | public void setupDocument(OutputStream stream, int width, int height) throws IOException(Code) | | Setup the document.
Parameters: stream - the output stream to write the document Parameters: width - the width of the page Parameters: height - the height of the page throws: IOException - an io exception if there is a problemwriting to the output stream |
writePageHeader | abstract protected void writePageHeader() throws IOException(Code) | | Writes the page header for a page.
throws: IOException - In case an I/O error occurs |
writePageTrailer | abstract protected void writePageTrailer() throws IOException(Code) | | Writes the page trailer for a page.
throws: IOException - In case an I/O error occurs |
Methods inherited from org.apache.xmlgraphics.java2d.ps.PSGraphics2D | protected void applyPaint(Paint paint, boolean fill)(Code)(Java Doc) protected void applyStroke(Stroke stroke)(Code)(Java Doc) public BufferedImage buildBufferedImage(Dimension size)(Code)(Java Doc) public void copyArea(int x, int y, int width, int height, int dx, int dy)(Code)(Java Doc) public Graphics create()(Code)(Java Doc) public void dispose()(Code)(Java Doc) protected void doDrawing(boolean fill, boolean stroke, boolean nonzero) throws IOException(Code)(Java Doc) public void draw(Shape s)(Code)(Java Doc) public boolean drawImage(Image img, int x, int y, ImageObserver observer)(Code)(Java Doc) public boolean drawImage(Image img, int x, int y, int width, int height, ImageObserver observer)(Code)(Java Doc) public void drawRenderableImage(RenderableImage img, AffineTransform xform)(Code)(Java Doc) public void drawRenderedImage(RenderedImage img, AffineTransform xform)(Code)(Java Doc) public void drawString(String s, float x, float y)(Code)(Java Doc) public void establishColor(Color c) throws IOException(Code)(Java Doc) public void fill(Shape s)(Code)(Java Doc) public TextHandler getCustomTextHandler()(Code)(Java Doc) public GraphicsConfiguration getDeviceConfiguration()(Code)(Java Doc) public TextHandler getFallbackTextHandler()(Code)(Java Doc) public java.awt.FontMetrics getFontMetrics(java.awt.Font f)(Code)(Java Doc) public PSGenerator getPSGenerator()(Code)(Java Doc) public void handleIOException(IOException ioe)(Code)(Java Doc) public void preparePainting()(Code)(Java Doc) public void processPathIterator(PathIterator iter) throws IOException(Code)(Java Doc) public void setCustomTextHandler(TextHandler handler)(Code)(Java Doc) public void setGraphicContext(GraphicContext c)(Code)(Java Doc) public void setPSGenerator(PSGenerator gen)(Code)(Java Doc) public void setXORMode(Color c1)(Code)(Java Doc) public void writeClip(Shape s)(Code)(Java Doc)
|
|
|