|
fop 0.90alpha1 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.awt.Graphics
java.awt.Graphics2D
org.apache.batik.ext.awt.g2d.AbstractGraphics2D
org.apache.fop.render.ps.PSGraphics2D
org.apache.fop.render.ps.AbstractPSDocumentGraphics2D
org.apache.fop.render.ps.PSDocumentGraphics2D
This class is a wrapper for the PSGraphics2D that is used to create a full document around the PostScript rendering from PSGraphics2D.
PSGraphics2D
Field Summary |
Fields inherited from class org.apache.fop.render.ps.AbstractPSDocumentGraphics2D |
height, initialClip, initialTransform, pagecount, pagePending, viewportHeight, viewportWidth, width, ZERO |
Fields inherited from class org.apache.fop.render.ps.PSGraphics2D |
currentColour, currentFontName, currentFontSize, font, fontInfo, gen, log, overrideFont |
Fields inherited from class org.apache.batik.ext.awt.g2d.AbstractGraphics2D |
gc, textAsShapes |
Constructor Summary | |
PSDocumentGraphics2D(boolean textAsShapes,
java.io.OutputStream stream,
int width,
int height)
Create a new AbstractPSDocumentGraphics2D. |
|
PSDocumentGraphics2D(PSDocumentGraphics2D g)
This constructor supports the create method |
Method Summary | |
java.awt.Graphics |
create()
Creates a new Graphics object that is
a copy of this Graphics object. |
void |
nextPage()
|
protected void |
writeFileHeader()
|
protected void |
writePageHeader()
Writes the page header for a page. |
protected void |
writePageTrailer()
Writes the page trailer for a page. |
Methods inherited from class org.apache.fop.render.ps.AbstractPSDocumentGraphics2D |
closePage, finish, getPageCount, preparePainting, setBackgroundColor, setSVGDimension, setupDocument, startPage |
Methods inherited from class org.apache.fop.render.ps.PSGraphics2D |
applyPaint, applyStroke, buildBufferedImage, copyArea, dispose, doDrawing, draw, drawImage, drawImage, drawRenderableImage, drawRenderedImage, drawString, drawString, drawStringAsShapes, drawStringAsText, establishColor, fill, getDeviceConfiguration, getFontInfo, getFontMetrics, handleIOException, processPathIterator, setGraphicContext, setOverrideFont, setPSGenerator, setXORMode, writeClip |
Methods inherited from class org.apache.batik.ext.awt.g2d.AbstractGraphics2D |
addRenderingHints, clearRect, clip, clipRect, drawArc, drawGlyphVector, drawImage, drawImage, drawImage, drawImage, drawImage, drawImage, drawLine, drawOval, drawPolygon, drawPolyline, drawRect, drawRoundRect, 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 |
Methods inherited from class java.awt.Graphics2D |
draw3DRect, fill3DRect |
Methods inherited from class java.awt.Graphics |
create, drawBytes, drawChars, drawPolygon, fillPolygon, finalize, getClipBounds, getClipRect, getFontMetrics, hitClip, toString |
Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
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 document
java.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 ofMethod Detail |
public void nextPage() throws java.io.IOException
nextPage
in class AbstractPSDocumentGraphics2D
java.io.IOException
protected void writeFileHeader() throws java.io.IOException
writeFileHeader
in class AbstractPSDocumentGraphics2D
java.io.IOException
protected void writePageHeader() throws java.io.IOException
AbstractPSDocumentGraphics2D
writePageHeader
in class AbstractPSDocumentGraphics2D
java.io.IOException
- In case an I/O error occursprotected void writePageTrailer() throws java.io.IOException
AbstractPSDocumentGraphics2D
writePageTrailer
in class AbstractPSDocumentGraphics2D
java.io.IOException
- In case an I/O error occurspublic java.awt.Graphics create()
Graphics
object that is
a copy of this Graphics
object.
create
in class PSGraphics2D
|
fop 0.90alpha1 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |