|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectbr.usp.ime.klava.segmentit.util.ImageIOUtils
public class ImageIOUtils
Provides utility methods to open and save images.
| Constructor Summary | |
|---|---|
ImageIOUtils()
|
|
| Method Summary | |
|---|---|
static java.awt.image.BufferedImage |
open(java.awt.Component parent)
Displays a JFileChooser to open a BufferedImage. |
static java.awt.image.BufferedImage |
open(java.awt.Component parent,
java.lang.String title)
Displays a JFileChooser to open a BufferedImage. |
static java.io.File[] |
openFiles()
Displays a JFileChooser to open multiple BufferedImages. |
static void |
save(java.lang.String title,
java.awt.image.BufferedImage image,
java.awt.Component parent)
Displays a JFileChooser to save image. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ImageIOUtils()
| Method Detail |
|---|
public static void save(java.lang.String title,
java.awt.image.BufferedImage image,
java.awt.Component parent)
JFileChooser to save image.
title - a title for the JFileChooser windowimage - a BufferedImage to be savedparent - the parent Component of the JFileChooser (may
be null)
public static java.awt.image.BufferedImage open(java.awt.Component parent,
java.lang.String title)
JFileChooser to open a BufferedImage.
title - a title for the JFileChooser windowparent - the parent Component of the JFileChooser (may
be null)
BufferedImage or null if no file was selectedpublic static java.awt.image.BufferedImage open(java.awt.Component parent)
JFileChooser to open a BufferedImage.
parent - the parent Component of the JFileChooser (may
be null)
BufferedImage or null if no file was selectedpublic static java.io.File[] openFiles()
JFileChooser to open multiple BufferedImages.
BufferedImages or null if no file was
selected
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||