Mp3dings 
20100427

net.sourceforge.mp3dings.editors.imageeditor
Interface ImageRenderer

All Known Implementing Classes:
ImageIconRenderer, JAIRenderer, SVGRenderer

public interface ImageRenderer


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)
           
 

Method Detail

getImageComponent

ImageComponent getImageComponent(String mimetype,
                                 byte[] imagedata,
                                 File f,
                                 String url)
                                 throws IOException
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.

Throws:
IOException

isMimeTypeSupported

boolean isMimeTypeSupported(String mime)

getSupportedMimeTypes

String[] getSupportedMimeTypes()

Mp3dings 
20100427