standup.symbol
Class SymbolLoader
java.lang.Object
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
baseDir
protected de.schlichtherle.io.File baseDir
symbolRenderer
protected final SymbolRenderer symbolRenderer
SymbolLoader
public SymbolLoader(de.schlichtherle.io.File baseDir,
SymbolRenderer symbolRenderer)
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)