standup.symbol
Class SymbolRendererSVG
java.lang.Object
standup.symbol.SymbolRendererSVG
- All Implemented Interfaces:
- SymbolRenderer
public class SymbolRendererSVG
- extends Object
- implements SymbolRenderer
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 |
transcoder
private final MySVGTranscoder transcoder
bogusOutput
private final org.apache.batik.transcoder.TranscoderOutput bogusOutput
SymbolRendererSVG
public SymbolRendererSVG()
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