standup.symbol
Class SymbolRendererSVG

java.lang.Object
  extended by standup.symbol.SymbolRendererSVG
All Implemented Interfaces:
SymbolRenderer

public class SymbolRendererSVG
extends Object
implements SymbolRenderer


Field Summary
private  org.apache.batik.transcoder.TranscoderOutput bogusOutput
           
private  MySVGTranscoder transcoder
           
 
Constructor Summary
SymbolRendererSVG()
           
 
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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

transcoder

private final MySVGTranscoder transcoder

bogusOutput

private final org.apache.batik.transcoder.TranscoderOutput bogusOutput
Constructor Detail

SymbolRendererSVG

public SymbolRendererSVG()
Method Detail

renderSymbol

public BufferedImage renderSymbol(InputStream fis)
Description copied from interface: SymbolRenderer
Renders the symbol specified in the given FileInputStream in its recommended/default dimension and returns the resulting image as a BufferedImage.

Specified by:
renderSymbol in interface SymbolRenderer
Parameters:
fis - the FileInputStream containing the symbol
Returns:
the rendered symbol bitmap

renderSymbol

public BufferedImage renderSymbol(InputStream fis,
                                  int height)
Description copied from interface: SymbolRenderer
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.

Specified by:
renderSymbol in interface SymbolRenderer
Parameters:
fis - the FileInputStream containing the symbol
Returns:
the rendered symbol bitmap with the given height