Jacson

de.spieleck.app.turn
Interface RenderMode

All Superinterfaces:
LineSourceInited
All Known Implementing Classes:
BaseRender, RenderHtml

public interface RenderMode
extends LineSourceInited

A RenderMode cares about how to forward tournament information to whatever output channel.
This could have been a set of controls in a GUI or some Model in general MVC context. Out of the box we have some HTML rendering.

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

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

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.
 void render(long timestamp, java.lang.Object o, java.lang.String fileName, java.lang.String style, int round)
          A render method which can avoid superfluous work by skipping depending on a timestamp.
 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 root)
          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 interface de.spieleck.app.turn.LineSourceInited
init
 

Method Detail

setRoot

void setRoot(java.io.File root)
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.


startSession

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

Throws:
java.io.IOException

endSession

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

Throws:
java.io.IOException

addSource

void addSource(java.lang.String fName)
Tell the RenderMode, which Sourcefiles have been considered.


render

void render(long timestamp,
            java.lang.Object o,
            java.lang.String fileName,
            java.lang.String style,
            int round)
            throws java.io.IOException
A render method which can avoid superfluous work by skipping depending on a timestamp.

Throws:
java.io.IOException

render

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

Throws:
java.io.IOException

spieleck.de