Mp3dings 
20100427

net.sourceforge.mp3dings.editors.imageeditor
Class JAIRenderer

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

public class JAIRenderer
extends Object
implements ImageRenderer


Constructor Summary
JAIRenderer(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
 

Constructor Detail

JAIRenderer

public JAIRenderer(int maxDimension)
Method Detail

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

isMimeTypeSupported

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

getSupportedMimeTypes

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

Mp3dings 
20100427