|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.apache.fop.render.PrintRenderer | +--org.apache.fop.render.pcl.PCLRenderer
Renderer that renders areas to PCL Created by Arthur E Welch III while at M&I EastPoint Technology Donated by EastPoint to the Apache FOP project March 2, 2001.
Field Summary | |
int |
curdiv
|
PCLStream |
currentStream
the current stream to add PCL commands to |
int |
leftmargin
|
int |
orientation
|
int |
paperheight
|
int |
topmargin
|
Constructor Summary | |
PCLRenderer()
Create the PCL renderer |
Method Summary | |
protected void |
addLine(int x1,
int y1,
int x2,
int y2,
int th,
int rs,
PDFPathPaint stroke)
add a line to the current stream |
protected void |
addLine(int x1,
int y1,
int x2,
int y2,
int th,
PDFPathPaint stroke)
add a line to the current stream |
protected void |
addRect(int x,
int y,
int w,
int h,
PDFPathPaint stroke)
add a rectangle to the current stream |
protected void |
addRect(int x,
int y,
int w,
int h,
PDFPathPaint stroke,
PDFPathPaint fill)
add a filled rectangle to the current stream |
void |
render(AreaTree areaTree,
java.io.OutputStream stream)
render the areas into PCL |
void |
renderForeignObjectArea(ForeignObjectArea area)
render a foreign object area |
void |
renderImageArea(ImageArea area)
render image area to PCL |
void |
renderPage(Page page)
render page into PCL |
void |
renderSVGArea(SVGArea area)
render SVG area to PCL |
void |
renderWordArea(WordArea area)
render inline area to PCL |
void |
setFont(java.lang.String name,
float size)
|
void |
setProducer(java.lang.String producer)
set the PCL document's producer |
Methods inherited from class org.apache.fop.render.PrintRenderer |
addWordLines,
renderAreaContainer,
renderBlockArea,
renderBodyAreaContainer,
renderDisplaySpace,
renderInlineSpace,
renderLeaderArea,
renderLineArea,
renderSpanArea,
setupFontInfo |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Field Detail |
public PCLStream currentStream
public int curdiv
public int paperheight
public int orientation
public int topmargin
public int leftmargin
Constructor Detail |
public PCLRenderer()
Method Detail |
public void setProducer(java.lang.String producer)
producer
- string indicating application producing PCLpublic void render(AreaTree areaTree, java.io.OutputStream stream) throws java.io.IOException, FOPException
areaTree
- the laid-out area treestream
- the Outputstream to write the PCL toprotected 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 millipointsstroke
- the line colorprotected 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 stylestroke
- the line colorprotected 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 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 renderImageArea(ImageArea area)
area
- the image area to renderpublic void renderForeignObjectArea(ForeignObjectArea area)
public void renderSVGArea(SVGArea area)
area
- the SVG area to renderpublic void setFont(java.lang.String name, float size)
public void renderWordArea(WordArea area)
area
- inline area to renderpublic void renderPage(Page page)
page
- page to render
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |