|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.apache.fop.render.AbstractRenderer | +--org.apache.fop.render.PrintRenderer
Abstract base class of "Print" type renderers. Modified by Mark Lillywhite mark-fop@inomial.com. Removed the render(AreaTree, OutputStream) method, and added no-op concrete implementation of startRenderer() and stopRenderer(). The method render(Page, OutputStream) is not mentioned in this class but it is inherited from the Renderer interface.
Field Summary | |
protected PDFPathPaint |
currentFill
the current color/gradient to fill shapes with |
protected java.lang.String |
currentFontName
the current (internal) font name |
protected int |
currentFontSize
the current font size in millipoints |
protected PDFPathPaint |
currentStroke
the current color/gradient for borders, letters, etc. |
protected FontInfo |
fontInfo
|
protected IDReferences |
idReferences
the IDReferences for this document |
protected PDFColor |
prevLineThroughColor
|
protected int |
prevLineThroughSize
|
protected int |
prevLineThroughXEndPos
|
protected int |
prevLineThroughYEndPos
|
protected PDFColor |
prevOverlineColor
|
protected int |
prevOverlineSize
|
protected int |
prevOverlineXEndPos
|
protected int |
prevOverlineYEndPos
|
protected PDFColor |
prevUnderlineColor
|
protected int |
prevUnderlineSize
|
protected int |
prevUnderlineXEndPos
the current colour's blue component |
protected int |
prevUnderlineYEndPos
|
Fields inherited from class org.apache.fop.render.AbstractRenderer |
currentAreaContainerXPosition, currentXPosition, currentYPosition, log |
Constructor Summary | |
PrintRenderer()
|
Method Summary | |
protected void |
addFilledRect(int x,
int y,
int w,
int h,
ColorType col)
Add a filled rectangle to the current stream This default implementation calls addRect using the same color for fill and border. |
protected void |
addFilledRect(int x,
int y,
int w,
int h,
PDFPathPaint fill)
Add a filled rectangle to the current stream This default implementation calls addRect using the same color for fill and border. |
protected abstract void |
addLine(int x1,
int y1,
int x2,
int y2,
int th,
int rs,
PDFPathPaint stroke)
add a line to the current stream |
protected abstract void |
addLine(int x1,
int y1,
int x2,
int y2,
int th,
PDFPathPaint stroke)
add a line to the current stream |
protected abstract void |
addRect(int x,
int y,
int w,
int h,
PDFPathPaint stroke)
add a rectangle to the current stream |
protected abstract void |
addRect(int x,
int y,
int w,
int h,
PDFPathPaint stroke,
PDFPathPaint fill)
add a filled and stroked rectangle to the current stream |
protected void |
addWordLines(WordArea area,
int rx,
int bl,
int size,
PDFColor theAreaColor)
|
protected void |
doFrame(Area area)
|
void |
renderDisplaySpace(DisplaySpace space)
render display space |
abstract void |
renderForeignObjectArea(ForeignObjectArea area)
render a foreign object area |
abstract void |
renderImageArea(ImageArea area)
render image area |
void |
renderInlineSpace(InlineSpace space)
render inline space |
void |
renderLeaderArea(LeaderArea area)
render leader area |
abstract void |
renderPage(Page page)
render page |
abstract void |
renderSVGArea(SVGArea area)
render SVG area |
abstract void |
renderWordArea(WordArea area)
render inline area |
abstract void |
setProducer(java.lang.String producer)
set the document's producer |
void |
setupFontInfo(FontInfo fontInfo)
set up the font info |
void |
startRenderer(java.io.OutputStream outputStream)
Default start renderer method. |
void |
stopRenderer(java.io.OutputStream outputStream)
Default stop renderer method. |
Methods inherited from class org.apache.fop.render.AbstractRenderer |
renderAreaContainer, renderBlockArea, renderBodyAreaContainer, renderLineArea, renderSpanArea, setLogger |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.apache.fop.render.Renderer |
render, setOptions |
Field Detail |
protected java.lang.String currentFontName
protected int currentFontSize
protected PDFPathPaint currentStroke
protected PDFPathPaint currentFill
protected int prevUnderlineXEndPos
protected int prevUnderlineYEndPos
protected int prevUnderlineSize
protected PDFColor prevUnderlineColor
protected int prevOverlineXEndPos
protected int prevOverlineYEndPos
protected int prevOverlineSize
protected PDFColor prevOverlineColor
protected int prevLineThroughXEndPos
protected int prevLineThroughYEndPos
protected int prevLineThroughSize
protected PDFColor prevLineThroughColor
protected FontInfo fontInfo
protected IDReferences idReferences
Constructor Detail |
public PrintRenderer()
Method Detail |
public abstract void setProducer(java.lang.String producer)
producer
- string indicating application producing PDFprotected abstract void addLine(int x1, int y1, int x2, int y2, int th, PDFPathPaint stroke)
x1
- the start x location in millipointsy1
- the start y location in millipointsx2
- the end x location in millipointsy2
- the end y location in millipointsth
- the thickness in millipointsr
- the red componentg
- the green componentb
- the blue componentprotected abstract void addLine(int x1, int y1, int x2, int y2, int th, int rs, PDFPathPaint stroke)
x1
- the start x location in millipointsy1
- the start y location in millipointsx2
- the end x location in millipointsy2
- the end y location in millipointsth
- the thickness in millipointsrs
- the rule styler
- the red componentg
- the green componentb
- the blue componentprotected abstract void addRect(int x, int y, int w, int h, PDFPathPaint stroke)
x
- the x position of left edge in millipointsy
- the y position of top edge in millipointsw
- the width in millipointsh
- the height in millipointsstroke
- the stroke color/gradientprotected abstract void addRect(int x, int y, int w, int h, PDFPathPaint stroke, PDFPathPaint fill)
x
- the x position of left edge in millipointsy
- the y position of top edge in millipointsw
- the width in millipointsh
- the height in millipointsfill
- the fill color/gradientstroke
- the stroke color/gradientprotected void addFilledRect(int x, int y, int w, int h, PDFPathPaint fill)
x
- the x position of left edge in millipointsy
- the y position of top edge in millipointsw
- the width in millipointsh
- the height in millipointsfill
- the fill color/gradientprotected void addFilledRect(int x, int y, int w, int h, ColorType col)
AbstractRenderer
addFilledRect
in class AbstractRenderer
org.apache.fop.render.AbstractRenderer
x
- the x position of left edge in millipointsy
- the y position of top edge in millipointsw
- the width in millipointsh
- the height in millipointsfill
- the fill color/gradientprotected void doFrame(Area area)
doFrame
in class AbstractRenderer
public void renderDisplaySpace(DisplaySpace space)
space
- the display space to renderpublic abstract void renderImageArea(ImageArea area)
area
- the image area to renderpublic abstract void renderForeignObjectArea(ForeignObjectArea area)
public abstract void renderSVGArea(SVGArea area)
area
- the SVG area to renderpublic abstract void renderWordArea(WordArea area)
area
- inline area to renderprotected void addWordLines(WordArea area, int rx, int bl, int size, PDFColor theAreaColor)
public void renderInlineSpace(InlineSpace space)
space
- space to renderpublic abstract void renderPage(Page page)
page
- page to renderpublic void renderLeaderArea(LeaderArea area)
area
- area to renderpublic void setupFontInfo(FontInfo fontInfo)
fontInfo
- font info to set uppublic void startRenderer(java.io.OutputStream outputStream) throws java.io.IOException
public void stopRenderer(java.io.OutputStream outputStream) throws java.io.IOException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |