|
|||||||||
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.txt.TXTRenderer
Renderer that renders areas to plain text
Field Summary | |
int |
curdiv
|
int |
leftmargin
|
java.lang.String |
lineEnding
|
protected java.util.Hashtable |
options
options |
int |
orientation
|
java.lang.String |
pageEnding
|
boolean |
suppressGraphics
|
float |
textCPI
|
float |
textLPI
|
int |
topmargin
|
Constructor Summary | |
TXTRenderer()
|
Method Summary | |
protected void |
addLine(float x1,
float y1,
float x2,
float y2,
PDFColor sc,
float sw)
|
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 |
addPolyline(java.util.Vector points,
int posx,
int posy,
PDFColor fc,
PDFColor sc,
float sw,
boolean close)
|
protected void |
addRect(float x,
float y,
float w,
float h,
float rx,
float ry,
PDFColor fc,
PDFColor sc,
float sw)
add a filled rectangle 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 text |
void |
renderForeignObjectArea(ForeignObjectArea area)
render a foreign object area |
void |
renderImage(FontState fontState,
java.lang.String href,
float x,
float y,
float width,
float height)
|
void |
renderImageArea(ImageArea area)
render image area to PCL |
void |
renderInlineSpace(InlineSpace space)
render inline space to Text |
void |
renderPage(Page page)
render page into Text |
void |
renderSVGArea(SVGArea area)
render SVG area to Text |
void |
renderWordArea(WordArea area)
render inline area to Text |
void |
setOptions(java.util.Hashtable options)
set up renderer options |
void |
setProducer(java.lang.String producer)
set the TXT document's producer |
Methods inherited from class org.apache.fop.render.PrintRenderer |
addWordLines,
renderAreaContainer,
renderBlockArea,
renderBodyAreaContainer,
renderDisplaySpace,
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 int curdiv
public int orientation
public int topmargin
public int leftmargin
public float textCPI
public float textLPI
public java.lang.String lineEnding
public java.lang.String pageEnding
public boolean suppressGraphics
protected java.util.Hashtable options
Constructor Detail |
public TXTRenderer()
Method Detail |
public void setOptions(java.util.Hashtable options)
public void setProducer(java.lang.String producer)
producer
- string indicating application producing PDFpublic void render(AreaTree areaTree, java.io.OutputStream stream) throws java.io.IOException, FOPException
areaTree
- the laid-out area treewriter
- the PrintWriter to write the PDF withprotected 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 addLine(float x1, float y1, float x2, float y2, PDFColor sc, float sw)
protected 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/gradientprotected void addRect(float x, float y, float w, float h, float rx, float ry, PDFColor fc, PDFColor sc, float sw)
x
- the x position of left edge in millipointsy
- the y position of top edge in millipointsw
- the width in millipointsh
- the height in millipointsr
- the red component of edgesg
- the green component of edgesb
- the blue component of edgesfr
- the red component of the fillfg
- the green component of the fillfb
- the blue component of the fillprotected void addPolyline(java.util.Vector points, int posx, int posy, PDFColor fc, PDFColor sc, float sw, boolean close)
public void renderImageArea(ImageArea area)
area
- the image area to renderpublic void renderImage(FontState fontState, java.lang.String href, float x, float y, float width, float height)
public void renderForeignObjectArea(ForeignObjectArea area)
public void renderSVGArea(SVGArea area)
area
- the SVG area to renderpublic void renderWordArea(WordArea area)
area
- inline area to renderpublic void renderInlineSpace(InlineSpace space)
space
- space 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 |