jdbreport.model
Class PictureSVG
java.lang.Object
jdbreport.model.Picture
jdbreport.model.PictureSVG
- Direct Known Subclasses:
- PictureWMF
public class PictureSVG
- extends Picture
- Version:
- 1.0 15.10.2010
- Author:
- Andrey Kholmanskih
Methods inherited from class jdbreport.model.Picture |
checkImageWriterFormat, createBuf, getFormat, getHeight, getIcon, getIcon, getImage, getRenderedImage, getRenderedImage, getWidth, isScale, load, load, paint, paint, paint, saveToFile, setFormat, setScale |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TIFF
public static final String TIFF
- See Also:
- Constant Field Values
SVG
public static final String SVG
- See Also:
- Constant Field Values
WMF
public static final String WMF
- See Also:
- Constant Field Values
WMF_TRANSCODER_ERROR_BASE
public static final int WMF_TRANSCODER_ERROR_BASE
- See Also:
- Constant Field Values
ERROR_NULL_INPUT
public static final int ERROR_NULL_INPUT
- See Also:
- Constant Field Values
ERROR_INCOMPATIBLE_INPUT_TYPE
public static final int ERROR_INCOMPATIBLE_INPUT_TYPE
- See Also:
- Constant Field Values
ERROR_INCOMPATIBLE_OUTPUT_TYPE
public static final int ERROR_INCOMPATIBLE_OUTPUT_TYPE
- See Also:
- Constant Field Values
PictureSVG
public PictureSVG(String format)
PictureSVG
public PictureSVG(byte[] buf)
- Parameters:
buf
-
PictureSVG
public PictureSVG(byte[] buf,
String format)
- Parameters:
buf
- format
-
getBuf
public byte[] getBuf()
- Overrides:
getBuf
in class Picture
setBuf
public void setBuf(byte[] buf)
- Overrides:
setBuf
in class Picture
getXML
public String getXML()
createDocument
public Document createDocument()
throws IOException
- Throws:
IOException
createIcon
protected ImageIcon createIcon(int w,
int h)
- Overrides:
createIcon
in class Picture
createImage
public BufferedImage createImage()
- Overrides:
createImage
in class Picture
createImage
public BufferedImage createImage(int width,
int height,
String format)
wmfToSvg
public void wmfToSvg(byte[] wmfBuf)
throws org.apache.batik.transcoder.TranscoderException
- Throws:
org.apache.batik.transcoder.TranscoderException