net.sourceforge.mp3dings.editors.imageeditor
Class ImageIconRenderer
java.lang.Object
net.sourceforge.mp3dings.editors.imageeditor.ImageIconRenderer
- All Implemented Interfaces:
- ImageRenderer
public class ImageIconRenderer
- extends Object
- implements ImageRenderer
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ImageIconRenderer
public ImageIconRenderer(int maxDimension)
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