|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.apache.fop.render.xml.XMLRenderer
Renderer that renders areas to XML for debugging purposes.
Field Summary | |
protected int |
indent
indentation to use for pretty-printing the XML |
protected java.lang.String |
producer
the application producing the XML |
protected java.io.PrintWriter |
writer
the writer used to output the XML |
Constructor Summary | |
XMLRenderer()
|
Method Summary | |
void |
render(AreaTree areaTree,
java.io.OutputStream stream)
render the areas into XML |
void |
renderAreaContainer(AreaContainer area)
render an area container to XML |
void |
renderBlockArea(BlockArea area)
render a block area to XML |
void |
renderBodyAreaContainer(BodyAreaContainer area)
render a body area container to XML |
void |
renderDisplaySpace(DisplaySpace space)
render a display space to XML |
void |
renderForeignObjectArea(ForeignObjectArea area)
render a foreign object area |
void |
renderImageArea(ImageArea area)
render an image area to XML |
void |
renderInlineSpace(InlineSpace space)
render an inline space to XML |
void |
renderLeaderArea(LeaderArea area)
render a leader area to XML |
void |
renderLineArea(LineArea area)
render a line area to XML |
void |
renderPage(Page page)
render a page to XML |
void |
renderSpanArea(SpanArea area)
render a span area to XML |
void |
renderSVGArea(SVGArea area)
render an SVG area to XML |
void |
renderWordArea(WordArea area)
render an inline area to XML |
void |
setProducer(java.lang.String producer)
set the document's producer |
void |
setupFontInfo(FontInfo fontInfo)
set up the font info |
protected void |
writeElement(java.lang.String element)
write out an element |
protected void |
writeEmptyElementTag(java.lang.String tag)
write out an empty-element-tag |
protected void |
writeEndTag(java.lang.String tag)
write out an end tag |
protected void |
writeIndent()
write out spaces to make indent |
protected void |
writeStartTag(java.lang.String tag)
write out a start tag |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Field Detail |
protected int indent
protected java.lang.String producer
protected java.io.PrintWriter writer
Constructor Detail |
public XMLRenderer()
Method Detail |
public void setProducer(java.lang.String producer)
producer
- string indicating application producing the XMLpublic void render(AreaTree areaTree, java.io.OutputStream stream) throws java.io.IOException
areaTree
- the laid-out area treestream
- the OutputStream to give the XML toprotected void writeIndent()
protected void writeElement(java.lang.String element)
element
- the full text of the element including tagsprotected void writeEmptyElementTag(java.lang.String tag)
tag
- the text of the tagprotected void writeEndTag(java.lang.String tag)
tag
- the text of the tagprotected void writeStartTag(java.lang.String tag)
tag
- the text of the tagpublic void setupFontInfo(FontInfo fontInfo)
fontInfo
- the font info object to set uppublic void renderAreaContainer(AreaContainer area)
area
- the area container to renderpublic void renderBodyAreaContainer(BodyAreaContainer area)
area
- the body area container to renderpublic void renderSpanArea(SpanArea area)
area
- the span area to renderpublic void renderBlockArea(BlockArea area)
area
- the block area to renderpublic void renderDisplaySpace(DisplaySpace space)
space
- the space to renderpublic void renderForeignObjectArea(ForeignObjectArea area)
public void renderSVGArea(SVGArea area)
area
- the area to renderpublic void renderImageArea(ImageArea area)
area
- the area to renderpublic void renderWordArea(WordArea area)
area
- the area to renderpublic void renderInlineSpace(InlineSpace space)
space
- the space to renderpublic void renderLineArea(LineArea area)
area
- the area to renderpublic void renderPage(Page page)
page
- the page to renderpublic void renderLeaderArea(LeaderArea area)
area
- the area to render
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |