jdbreport.model
Class PictureSVG

java.lang.Object
  extended by jdbreport.model.Picture
      extended by jdbreport.model.PictureSVG
Direct Known Subclasses:
PictureWMF

public class PictureSVG
extends Picture

Version:
1.0 15.10.2010
Author:
Andrey Kholmanskih

Field Summary
static int ERROR_INCOMPATIBLE_INPUT_TYPE
           
static int ERROR_INCOMPATIBLE_OUTPUT_TYPE
           
static int ERROR_NULL_INPUT
           
static String SVG
           
static String TIFF
           
static String WMF
           
static int WMF_TRANSCODER_ERROR_BASE
           
 
Fields inherited from class jdbreport.model.Picture
buf, format, height, icon, iconHeight, iconWidth, JPEG, JPG, PNG, width
 
Constructor Summary
PictureSVG(byte[] buf)
           
PictureSVG(byte[] buf, String format)
           
PictureSVG(String format)
           
 
Method Summary
 Document createDocument()
           
protected  ImageIcon createIcon(int w, int h)
           
 BufferedImage createImage()
           
 BufferedImage createImage(int width, int height, String format)
           
 byte[] getBuf()
           
 String getXML()
           
 void setBuf(byte[] buf)
           
 void wmfToSvg(byte[] wmfBuf)
           
 
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
 

Field Detail

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
Constructor Detail

PictureSVG

public PictureSVG(String format)

PictureSVG

public PictureSVG(byte[] buf)
Parameters:
buf -

PictureSVG

public PictureSVG(byte[] buf,
                  String format)
Parameters:
buf -
format -
Method Detail

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