standup.symbol
Class SymbolLoader

java.lang.Object
  extended by standup.symbol.SymbolLoader
Direct Known Subclasses:
SymbolLoaderGUI, SymbolLoaderPCS, SymbolLoaderRebus

public abstract class SymbolLoader
extends Object

This class handles loading of AAC symbols

Author:
Ruli Manurung

Field Summary
protected  de.schlichtherle.io.File baseDir
           
protected  SymbolRenderer symbolRenderer
           
 
Constructor Summary
SymbolLoader(de.schlichtherle.io.File baseDir, SymbolRenderer symbolRenderer)
           
 
Method Summary
 BufferedImage loadSymbolImage(String filename)
          Loads the symbol image
 BufferedImage loadSymbolImage(String filename, int height)
           
protected  String preprocessFilename(String filename)
          Performs preprocessing of the filename found in the Widgit conceptcode list.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

baseDir

protected de.schlichtherle.io.File baseDir

symbolRenderer

protected final SymbolRenderer symbolRenderer
Constructor Detail

SymbolLoader

public SymbolLoader(de.schlichtherle.io.File baseDir,
                    SymbolRenderer symbolRenderer)
Method Detail

preprocessFilename

protected String preprocessFilename(String filename)
Performs preprocessing of the filename found in the Widgit conceptcode list.

For example, the Rebus images we have are SVGs, when the conceptcode filenames still have them as EMFs.

This default implementation returns the String unmodified.

Parameters:
filename -
Returns:

loadSymbolImage

public BufferedImage loadSymbolImage(String filename)
Loads the symbol image

Parameters:
filename -
Returns:

loadSymbolImage

public BufferedImage loadSymbolImage(String filename,
                                     int height)