view
Class SaveComponent
java.lang.Object
view.SaveComponent
public class SaveComponent
- extends Object
A small class that allows saving a component in one of the output formats
the ImageIO package of jdk 1.4 supports. A file-choser dialog is presented
and the component is stored therein if the user confirms.
- See Also:
PrintComponent
|
Method Summary |
static boolean |
save(Component show)
Saves an arbitrary component. |
static boolean |
save(Component show,
String ext,
File out)
Saves an arbitrary component, providing an image extension that hold the
image type, like jpg, plus the file where the image should be saved. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SaveComponent
public SaveComponent()
save
public static boolean save(Component show)
throws IOException
- Saves an arbitrary component.
- Throws:
IOException
save
public static boolean save(Component show,
String ext,
File out)
throws IOException
- Saves an arbitrary component, providing an image extension that hold the
image type, like jpg, plus the file where the image should be saved.
- Throws:
IOException