|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.apache.fop.render.PrintRenderer
Abstract base class of "Print" type renderers.
Field Summary | |
protected int |
currentAreaContainerXPosition
the horizontal position of the current area container |
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 int |
currentXPosition
the current horizontal position in millipoints from left |
protected int |
currentYPosition
the current vertical position in millipoints from bottom |
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
|
protected int |
prevUnderlineYEndPos
|
Constructor Summary | |
PrintRenderer()
|
Method Summary | |
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 rectangle to the current stream |
protected void |
addWordLines(WordArea area,
int rx,
int bl,
int size,
PDFColor theAreaColor)
|
abstract void |
render(AreaTree areaTree,
java.io.OutputStream stream)
render the areas |
void |
renderAreaContainer(AreaContainer area)
render area container |
void |
renderBlockArea(BlockArea area)
render block area |
void |
renderBodyAreaContainer(BodyAreaContainer area)
render the given area container |
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 |
void |
renderLineArea(LineArea area)
render line area |
abstract void |
renderPage(Page page)
render page |
void |
renderSpanArea(SpanArea area)
render the given span area |
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 |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Field Detail |
protected java.lang.String currentFontName
protected int currentFontSize
protected PDFPathPaint currentStroke
protected PDFPathPaint currentFill
protected int currentYPosition
protected int currentXPosition
protected int currentAreaContainerXPosition
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 PDFpublic abstract void render(AreaTree areaTree, java.io.OutputStream stream) throws java.io.IOException, FOPException
areaTree
- the laid-out area treestream
- the OutputStream to write toprotected 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/gradientpublic void renderAreaContainer(AreaContainer area)
area
- the area container to renderpublic void renderBodyAreaContainer(BodyAreaContainer area)
public void renderSpanArea(SpanArea area)
public void renderBlockArea(BlockArea area)
area
- the block area to renderpublic 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 void renderLineArea(LineArea area)
area
- area 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 up
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |