standup.symbol
Interface SymbolRenderer

All Known Implementing Classes:
SymbolRendererSVG, SymbolRendererWMF

public interface SymbolRenderer

Specifies an object that takes a vector-based symbol file and renders it to a bitmap.

Author:
Ruli Manurung

Method Summary
 BufferedImage renderSymbol(InputStream fis)
          Renders the symbol specified in the given FileInputStream in its recommended/default dimension and returns the resulting image as a BufferedImage.
 BufferedImage renderSymbol(InputStream fis, int height)
          Renders the symbol specified in the given FileInputStream, scaled to have the given height while maintaining the aspect ratio, and returns the resulting image as a BufferedImage.
 

Method Detail

renderSymbol

BufferedImage renderSymbol(InputStream fis)
Renders the symbol specified in the given FileInputStream in its recommended/default dimension and returns the resulting image as a BufferedImage.

Parameters:
fis - the FileInputStream containing the symbol
Returns:
the rendered symbol bitmap

renderSymbol

BufferedImage renderSymbol(InputStream fis,
                           int height)
Renders the symbol specified in the given FileInputStream, scaled to have the given height while maintaining the aspect ratio, and returns the resulting image as a BufferedImage.

Parameters:
fis - the FileInputStream containing the symbol
Returns:
the rendered symbol bitmap with the given height