at.tuwien.ifs.somtoolbox.apps.server
Class LabelImageCreator

java.lang.Object
  extended by at.tuwien.ifs.somtoolbox.apps.server.LabelImageCreator

public class LabelImageCreator
extends Object

Utility class to create images of labels, which can be used to overlay a visualisation

Version:
$Id: LabelImageCreator.java 3589 2010-05-21 10:42:01Z mayer $
Author:
Rudolf Mayer

Field Summary
private static int CELL_SIZE_SERVER
           
private static int CELL_SIZE_VIEWER
           
private static double SCALE
           
 
Constructor Summary
LabelImageCreator()
           
 
Method Summary
static void main(String[] args)
           
 void writeImages(String labelFileName, String outputDirectory)
          Creates and writes the label images.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CELL_SIZE_VIEWER

private static final int CELL_SIZE_VIEWER
See Also:
Constant Field Values

CELL_SIZE_SERVER

private static final int CELL_SIZE_SERVER
See Also:
Constant Field Values

SCALE

private static final double SCALE
See Also:
Constant Field Values
Constructor Detail

LabelImageCreator

public LabelImageCreator()
Method Detail

main

public static void main(String[] args)
                 throws ParserConfigurationException,
                        SAXException,
                        IOException,
                        SOMToolboxException
Throws:
ParserConfigurationException
SAXException
IOException
SOMToolboxException

writeImages

public void writeImages(String labelFileName,
                        String outputDirectory)
                 throws ParserConfigurationException,
                        SAXException,
                        IOException,
                        SOMToolboxException
Creates and writes the label images.

Parameters:
labelFileName - the file containing the XML descriptions of the labels.
outputDirectory - the directory to write to. Existing files with the same name will be overwritten.
Throws:
ParserConfigurationException
SAXException
IOException
SOMToolboxException