net.sourceforge.mp3dings.editors
Class APICImageEditor
java.lang.Object
net.sourceforge.mp3dings.editors.APICImageEditor
public class APICImageEditor
- extends Object
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
IMAGE_MAX_DIMENSION
public static final int IMAGE_MAX_DIMENSION
- Maximum display size for images
- See Also:
- Constant Field Values
DESCRIPTION_MAX_LENGTH
public static final int DESCRIPTION_MAX_LENGTH
- See Also:
- Constant Field Values
ACTION_IMAGE_CHANGED
public static final String ACTION_IMAGE_CHANGED
- Action command string for notifications of image (size) changes
- See Also:
- Constant Field Values
APICImageEditor
public APICImageEditor()
APICImageEditor
public APICImageEditor(APICImage pic)
registerExtension
public static void registerExtension(String extension,
String mimetype)
setImage
public void setImage(APICImage pic)
asImageComponent
public static ImageComponent asImageComponent(Component c)
saveImage
public static void saveImage(InputStream source,
File ftarget)
throws IOException
- Throws:
IOException
saveImage
public void saveImage(File ftarget)
throws IOException,
MalformedURLException
- Throws:
IOException
MalformedURLException
getImage
public APICImage getImage()
throws MalformedURLException,
IOException
- Throws:
MalformedURLException
IOException
getUI
public Component getUI()
addActionListener
public void addActionListener(ActionListener al)
removeActionListener
public void removeActionListener(ActionListener al)
setRenderer
public void setRenderer(String mimetype,
ImageRenderer renderer)
setDefaultRenderer
public void setDefaultRenderer(ImageRenderer renderer)
addRenderer
public void addRenderer(ImageRenderer renderer)
getRenderer
public ImageRenderer getRenderer(String mimetype)
fireActionPerformed
protected void fireActionPerformed(ActionEvent e)
fireActionPerformed
protected void fireActionPerformed(String actionCommand)
getDefault
public static APICImageEditor getDefault()
getDialog
public static APICImageEditor.EditorDialog getDialog(Component parent,
String title,
APICImageEditor editor)