|
||||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||
java.lang.Objectorg.apache.fop.render.AbstractRenderer
org.apache.fop.render.PrintRenderer
org.apache.fop.render.txt.TXTRenderer
Renderer that renders areas to plain text.
| Field Summary | |
int |
curdiv
|
static java.lang.String |
encodingOptionName
|
int |
leftmargin
|
java.lang.String |
lineEnding
|
protected java.util.Map |
options
options |
int |
orientation
|
java.lang.String |
pageEnding
|
boolean |
suppressGraphics
|
float |
textCPI
|
float |
textLPI
|
int |
topmargin
|
| Fields inherited from class org.apache.fop.render.PrintRenderer |
currentFill, currentFontName, currentFontSize, currentStroke, fontInfo, prevLineThroughColor, prevLineThroughSize, prevLineThroughXEndPos, prevLineThroughYEndPos, prevOverlineColor, prevOverlineSize, prevOverlineXEndPos, prevOverlineYEndPos, prevUnderlineColor, prevUnderlineSize, prevUnderlineXEndPos, prevUnderlineYEndPos |
| Fields inherited from class org.apache.fop.render.AbstractRenderer |
currentAreaContainerXPosition, currentXPosition, currentYPosition, idReferences, log |
| 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.List 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 |
protected void |
drawImageClipped(int x,
int y,
int clipX,
int clipY,
int clipW,
int clipH,
FopImage image,
FontState fs)
Renders an image, clipping it as specified. |
protected void |
drawImageScaled(int x,
int y,
int w,
int h,
FopImage image,
FontState fs)
Renders an image, scaling it to the given width and height. |
void |
render(Page page,
java.io.OutputStream outputStream)
render the given area tree to the given stream |
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.Map options)
set up renderer options |
void |
setProducer(java.lang.String producer)
set the TXT document's producer |
void |
startRenderer(java.io.OutputStream outputStream)
Default start renderer method. |
void |
stopRenderer(java.io.OutputStream outputStream)
In Mark's patch, this is endRenderer However, I couldn't see how it builds that way, so i changed it. |
| Methods inherited from class org.apache.fop.render.PrintRenderer |
addFilledRect, addFilledRect, addWordLines, doFrame, renderDisplaySpace, renderLeaderArea, setupFontInfo |
| Methods inherited from class org.apache.fop.render.AbstractRenderer |
doBackground, drawImage, getIDReferences, renderAreaContainer, renderBlockArea, renderBodyAreaContainer, renderLineArea, renderRegionAreaContainer, renderRegions, renderSpanArea, setLogger |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final java.lang.String encodingOptionName
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.Map options
| Constructor Detail |
public TXTRenderer()
| Method Detail |
public void setOptions(java.util.Map options)
public void setProducer(java.lang.String producer)
setProducer in interface RenderersetProducer in class PrintRendererproducer - string indicating application producing PDF
protected void addLine(int x1,
int y1,
int x2,
int y2,
int th,
PDFPathPaint stroke)
addLine in class PrintRendererx1 - 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 color
protected void addLine(int x1,
int y1,
int x2,
int y2,
int th,
int rs,
PDFPathPaint stroke)
addLine in class PrintRendererx1 - 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 color
protected 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)
addRect in class PrintRendererx - 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/gradient
protected void addRect(int x,
int y,
int w,
int h,
PDFPathPaint stroke,
PDFPathPaint fill)
addRect in class PrintRendererx - 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/gradient
protected 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 millipoints
protected void addPolyline(java.util.List points,
int posx,
int posy,
PDFColor fc,
PDFColor sc,
float sw,
boolean close)
protected void drawImageScaled(int x,
int y,
int w,
int h,
FopImage image,
FontState fs)
drawImageScaled in class AbstractRendererx - the x position of left edge in millipointsy - the y position of top edge in millipointsw - the width in millipointsh - the height in millipointsimage - the image to be renderedfs - the font state to use when rendering text
in non-bitmapped images.
protected void drawImageClipped(int x,
int y,
int clipX,
int clipY,
int clipW,
int clipH,
FopImage image,
FontState fs)
drawImageClipped in class AbstractRendererx - the x position of left edge in millipoints.y - the y position of top edge in millipoints.clipX - the left edge of the clip in millipointsclipY - the top edge of the clip in millipointsclipW - the clip width in millipointsclipH - the clip height in millipointsfs - the font state to use when rendering text
in non-bitmapped images.public void renderImageArea(ImageArea area)
renderImageArea in interface RendererrenderImageArea in class AbstractRendererarea - the image area to render
public void renderImage(FontState fontState,
java.lang.String href,
float x,
float y,
float width,
float height)
public void renderForeignObjectArea(ForeignObjectArea area)
renderForeignObjectArea in interface RendererrenderForeignObjectArea in class PrintRendererpublic void renderSVGArea(SVGArea area)
renderSVGArea in interface RendererrenderSVGArea in class PrintRendererarea - the SVG area to renderpublic void renderWordArea(WordArea area)
renderWordArea in interface RendererrenderWordArea in class PrintRendererarea - inline area to renderpublic void renderInlineSpace(InlineSpace space)
renderInlineSpace in interface RendererrenderInlineSpace in class PrintRendererspace - space to renderpublic void renderPage(Page page)
renderPage in interface RendererrenderPage in class PrintRendererpage - page to render
public void startRenderer(java.io.OutputStream outputStream)
throws java.io.IOException
PrintRenderer
startRenderer in interface RendererstartRenderer in class PrintRendererjava.io.IOException
public void stopRenderer(java.io.OutputStream outputStream)
throws java.io.IOException
stopRenderer in interface RendererstopRenderer in class PrintRendererjava.io.IOException
public void render(Page page,
java.io.OutputStream outputStream)
Renderer
|
||||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||