org.umber.crucible.render
Class AsciiRenderOutput

java.lang.Object
  extended byorg.umber.crucible.render.RenderOutputBase
      extended byorg.umber.crucible.render.AsciiRenderOutput
All Implemented Interfaces:
IRenderOutput

public class AsciiRenderOutput
extends RenderOutputBase

Render output to a String.

Author:
jsheets

Field Summary
static java.lang.String MAC_LINE_BREAK
           
static java.lang.String PAGE_BREAK
           
static java.lang.String UNIX_LINE_BREAK
           
static java.lang.String WIN_LINE_BREAK
           
 
Constructor Summary
AsciiRenderOutput()
           
 
Method Summary
 void endDocument()
           
 void endPage()
           
 java.lang.String renderToString()
           
 void startDocument()
           
 void startPage(Dimension pageSize)
           
 void writeArea(ILayoutArea area)
           
 
Methods inherited from class org.umber.crucible.render.RenderOutputBase
getClipRegion, getPageSize, render, safeToWrite, setClipRegion
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PAGE_BREAK

public static final java.lang.String PAGE_BREAK
See Also:
Constant Field Values

WIN_LINE_BREAK

public static final java.lang.String WIN_LINE_BREAK
See Also:
Constant Field Values

UNIX_LINE_BREAK

public static final java.lang.String UNIX_LINE_BREAK
See Also:
Constant Field Values

MAC_LINE_BREAK

public static final java.lang.String MAC_LINE_BREAK
See Also:
Constant Field Values
Constructor Detail

AsciiRenderOutput

public AsciiRenderOutput()
Method Detail

startDocument

public void startDocument()
                   throws CrucibleRenderException
Specified by:
startDocument in interface IRenderOutput
Overrides:
startDocument in class RenderOutputBase
Throws:
CrucibleRenderException

endDocument

public void endDocument()
                 throws CrucibleRenderException
Specified by:
endDocument in interface IRenderOutput
Overrides:
endDocument in class RenderOutputBase
Throws:
CrucibleRenderException

startPage

public void startPage(Dimension pageSize)
               throws CrucibleRenderException
Specified by:
startPage in interface IRenderOutput
Overrides:
startPage in class RenderOutputBase
Throws:
CrucibleRenderException

endPage

public void endPage()
             throws CrucibleRenderException
Specified by:
endPage in interface IRenderOutput
Overrides:
endPage in class RenderOutputBase
Throws:
CrucibleRenderException

writeArea

public void writeArea(ILayoutArea area)
               throws CrucibleRenderException
Specified by:
writeArea in class RenderOutputBase
Throws:
CrucibleRenderException

renderToString

public java.lang.String renderToString()
                                throws CrucibleRenderException
Throws:
CrucibleRenderException