Jacson

de.spieleck.app.turn.rendering
Class BaseRender

java.lang.Object
  extended by de.spieleck.app.turn.rendering.BaseRender
All Implemented Interfaces:
LineSourceInited, RenderMode
Direct Known Subclasses:
RenderHtml

public abstract class BaseRender
extends java.lang.Object
implements RenderMode

A abstract RenderMode to make programming RenderMode's easier.

$URL: https://svn.sourceforge.net/svnroot/jtourney/src/de/spieleck/app/turn/rendering/BaseRender.java $

Version:
$Revision: 2 $ $Date: 2006-03-20 14:33:27 +0100 (Mo, 20 Mrz 2006) $ $Author: nestefan $
Author:
Frank S. Nestel, $Author: nestefan $

Constructor Summary
BaseRender()
           
 
Method Summary
 void addSource(java.lang.String fName)
          Tell the RenderMode, which Sourcefiles have been considered.
 void endSession()
          To enable reuse of the same renderer, it gets informed about starting and ending of a complete block of information.
 java.io.File getRoot()
           
 java.io.File getRootOut()
           
 void init(LineSource ls)
           
 void render(java.lang.Object o, java.lang.String fileName, java.lang.String style, int round)
          API in case we do not have an appropriate timestamp.
 void setRoot(java.io.File fi)
          Set a root directory, in case the RenderMode has to write files.
 void startSession()
          To enable reuse of the same renderer, it gets informed about starting and ending of a complete block of information.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface de.spieleck.app.turn.RenderMode
render
 

Constructor Detail

BaseRender

public BaseRender()
Method Detail

init

public void init(LineSource ls)
          throws java.io.IOException
Specified by:
init in interface LineSourceInited
Throws:
java.io.IOException

startSession

public void startSession()
                  throws java.io.IOException
Description copied from interface: RenderMode
To enable reuse of the same renderer, it gets informed about starting and ending of a complete block of information.

Specified by:
startSession in interface RenderMode
Throws:
java.io.IOException

endSession

public void endSession()
                throws java.io.IOException
Description copied from interface: RenderMode
To enable reuse of the same renderer, it gets informed about starting and ending of a complete block of information.

Specified by:
endSession in interface RenderMode
Throws:
java.io.IOException

addSource

public void addSource(java.lang.String fName)
Description copied from interface: RenderMode
Tell the RenderMode, which Sourcefiles have been considered.

Specified by:
addSource in interface RenderMode

setRoot

public void setRoot(java.io.File fi)
Description copied from interface: RenderMode
Set a root directory, in case the RenderMode has to write files. It is recommended the RenderMode writes to a directory out below that root.

Specified by:
setRoot in interface RenderMode

getRoot

public java.io.File getRoot()

getRootOut

public java.io.File getRootOut()

render

public void render(java.lang.Object o,
                   java.lang.String fileName,
                   java.lang.String style,
                   int round)
            throws java.io.IOException
Description copied from interface: RenderMode
API in case we do not have an appropriate timestamp.

Specified by:
render in interface RenderMode
Throws:
java.io.IOException

spieleck.de