Mp3dings 
20100427

net.sourceforge.mp3dings.editors.imageeditor
Class SVGRenderer

java.lang.Object
  extended by net.sourceforge.mp3dings.editors.imageeditor.SVGRenderer
All Implemented Interfaces:
ImageRenderer

public class SVGRenderer
extends Object
implements ImageRenderer


Field Summary
static String MIME_TYPE_SVG
           
 
Constructor Summary
SVGRenderer(int maxDimension)
           
 
Method Summary
 ImageComponent getImageComponent(String mimetype, byte[] imagedata, File f, String url)
          Returns a component that renders the image data of the specified mime type or null if this renderer cannot render the image.
 String[] getSupportedMimeTypes()
           
 boolean isMimeTypeSupported(String mime)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MIME_TYPE_SVG

public static final String MIME_TYPE_SVG
See Also:
Constant Field Values
Constructor Detail

SVGRenderer

public SVGRenderer(int maxDimension)
Method Detail

isMimeTypeSupported

public boolean isMimeTypeSupported(String mime)
Specified by:
isMimeTypeSupported in interface ImageRenderer

getSupportedMimeTypes

public String[] getSupportedMimeTypes()
Specified by:
getSupportedMimeTypes in interface ImageRenderer

getImageComponent

public ImageComponent getImageComponent(String mimetype,
                                        byte[] imagedata,
                                        File f,
                                        String url)
                                 throws IOException
Description copied from interface: ImageRenderer
Returns a component that renders the image data of the specified mime type or null if this renderer cannot render the image. The ImageRenderer must check the input data in argument order. If imagedata is non-null it must be used as input else if f is non-null it must be used and url may be used only if both imagedata and f are null. The renderer must not modify imagedata.

The returned component must fire a mouse event if a popup trigger mouse event occurs anywhere within its area. The renderer yields control over the returned component to the caller and must not modify it afterwards.

Specified by:
getImageComponent in interface ImageRenderer
Throws:
IOException

Mp3dings 
20100427