public class PSDocumentGraphics2D extends AbstractPSDocumentGraphics2D
Originally authored by Keiron Liddle.
height, initialClip, initialTransform, pagecount, pagePending, viewportHeight, viewportWidth, width, ZERO
clippingDisabled, currentColour, customTextHandler, fallbackTextHandler, gen, rootG2D
gc, inPossibleRecursion, textAsShapes
Constructor and Description |
---|
PSDocumentGraphics2D(boolean textAsShapes)
Create a new AbstractPSDocumentGraphics2D.
|
PSDocumentGraphics2D(boolean textAsShapes,
java.io.OutputStream stream,
int width,
int height)
Create a new AbstractPSDocumentGraphics2D.
|
PSDocumentGraphics2D(PSDocumentGraphics2D g)
This constructor supports the create method
|
Modifier and Type | Method and Description |
---|---|
void |
nextPage()
Closes the current page and prepares to start a new one.
|
protected void |
writeFileHeader()
Writes the file header.
|
protected void |
writePageHeader()
Writes the page header for a page.
|
protected void |
writePageTrailer()
Writes the page trailer for a page.
|
closePage, finish, getPageCount, preparePainting, setBackgroundColor, setupDocument, setViewportDimension, startPage, writeProcSets
applyPaint, applyStroke, applyStroke, buildBufferedImage, copyArea, create, disableClipping, dispose, doDrawing, draw, drawImage, drawImage, drawRenderableImage, drawRenderedImage, drawString, establishColor, fill, getCustomTextHandler, getDeviceConfiguration, getFallbackTextHandler, getFontMetrics, getPSGenerator, handleIOException, processPathIterator, processShape, setCustomTextHandler, setGraphicContext, setPSGenerator, setXORMode, shouldBeClipped, writeClip
addRenderingHints, clearRect, clip, clipRect, drawArc, drawGlyphVector, drawImage, drawImage, drawImage, drawImage, drawImage, drawImage, drawLine, drawOval, drawPolygon, drawPolyline, drawRect, drawRoundRect, drawString, drawString, drawString, fillArc, fillOval, fillPolygon, fillRect, fillRoundRect, getBackground, getClip, getClipBounds, getColor, getComposite, getFont, getFontRenderContext, getGraphicContext, getPaint, getRenderingHint, getRenderingHints, getStroke, getTransform, hit, rotate, rotate, scale, setBackground, setClip, setClip, setColor, setComposite, setFont, setPaint, setPaintMode, setRenderingHint, setRenderingHints, setStroke, setTransform, shear, transform, translate, translate
public PSDocumentGraphics2D(boolean textAsShapes)
textAsShapes
- set this to true so that text will be rendered
using curves and not the font.public PSDocumentGraphics2D(boolean textAsShapes, java.io.OutputStream stream, int width, int height) throws java.io.IOException
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 documentheight
- the height of the documentjava.io.IOException
- an io exception if there is a problem
writing to the output streampublic PSDocumentGraphics2D(PSDocumentGraphics2D g)
g
- the PostScript document graphics to make a copy ofpublic void nextPage() throws java.io.IOException
nextPage
in class AbstractPSDocumentGraphics2D
java.io.IOException
- if an I/O error occursprotected void writeFileHeader() throws java.io.IOException
writeFileHeader
in class AbstractPSDocumentGraphics2D
java.io.IOException
- if an I/O error occursprotected void writePageHeader() throws java.io.IOException
writePageHeader
in class AbstractPSDocumentGraphics2D
java.io.IOException
- In case an I/O error occursprotected void writePageTrailer() throws java.io.IOException
writePageTrailer
in class AbstractPSDocumentGraphics2D
java.io.IOException
- In case an I/O error occursCopyright 1999-2012 The Apache Software Foundation. All Rights Reserved.