org.writersforge.catalan.renderers
Class TextRenderer

java.lang.Object
  extended byorg.writersforge.catalan.renderers.Renderer
      extended byorg.writersforge.catalan.renderers.TextRenderer

public class TextRenderer
extends Renderer

Generates a collection of ASCII text files from one or more Page objects created by a RenderTemplate class.

Author:
jsheets

Constructor Summary
TextRenderer()
           
 
Method Summary
protected  void endBook(Book book)
          Performs any cleanup that the Renderer must do at the end of the rendering process.
protected  void renderArea(LayoutArea area)
          Renders a single LayoutArea within the current Page.
protected  void renderShapeArea(LayoutShape shapeArea)
          Renders a single LayoutShape within the current Page.
protected  void renderTextArea(LayoutText textArea)
          Renders a single LayoutText within the current Page.
 void setWriter(java.io.Writer writer)
          Sets the output for the DTD content.
 
Methods inherited from class org.writersforge.catalan.renderers.Renderer
endPage, render, renderPage, startBook, startPage
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TextRenderer

public TextRenderer()
Method Detail

setWriter

public void setWriter(java.io.Writer writer)
Sets the output for the DTD content.

Parameters:
writer - the output writer

renderArea

protected void renderArea(LayoutArea area)
Renders a single LayoutArea within the current Page.

Overrides:
renderArea in class Renderer
Parameters:
area - the LayoutArea object to render

endBook

protected void endBook(Book book)
Performs any cleanup that the Renderer must do at the end of the rendering process. By default, does nothing.

Overrides:
endBook in class Renderer
Parameters:
book - the Book object to clean up

renderShapeArea

protected void renderShapeArea(LayoutShape shapeArea)
Renders a single LayoutShape within the current Page.

Specified by:
renderShapeArea in class Renderer
Parameters:
shapeArea - the LayoutArea object to render

renderTextArea

protected void renderTextArea(LayoutText textArea)
Renders a single LayoutText within the current Page.

Specified by:
renderTextArea in class Renderer
Parameters:
textArea - the LayoutText object to render