|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.neu.ccs.gui.ImageTools
Class ImageTools is a special purpose class for reading
images in various formats from a directory on the local system.
| Field Summary | |
static FilenameFilter |
imageFilter
The filter to pick out jpg, gif, and png files. |
| Constructor Summary | |
private |
ImageTools()
Prevent instantiation. |
| Method Summary | |
static String[] |
readAllImageFileNames(String directory)
Returns all image file names in the given directory. |
static Image[] |
readAllImages(String directory)
Reads all image files in the given directory. |
static ImagePaintable[] |
readAllImagesAsPaintable(String directory)
Reads all image files in the given directory. |
static ImagePaintableLite[] |
readAllImagesAsPaintableLite(String directory)
Reads all image files in the given directory. |
static String[] |
readImageFileNames(String directory,
String filelist)
Returns all image file names in the given directory that are present in the given file list. |
static Image[] |
readImages(String directory,
String filelist)
Reads the image files in the given directory with the given filelist that contains the image file names. |
static Image[] |
readImages(String directory,
String[] imageFileNames)
Reads the image files in the given directory with the given image file names. |
static ImagePaintable[] |
readImagesAsPaintable(String directory,
String filelist)
Reads the image files in the given directory with the given filelist that contains the image file names. |
static ImagePaintable[] |
readImagesAsPaintable(String directory,
String[] imageFileNames)
Reads the image files in the given directory with the given image file names. |
static ImagePaintableLite[] |
readImagesAsPaintableLite(String directory,
String filelist)
Reads the image files in the given directory with the given filelist that contains the image file names. |
static ImagePaintableLite[] |
readImagesAsPaintableLite(String directory,
String[] imageFileNames)
Reads the image files in the given directory with the given image file names. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final FilenameFilter imageFilter
| Constructor Detail |
private ImageTools()
| Method Detail |
public static Image[] readImages(String directory,
String[] imageFileNames)
Reads the image files in the given directory with the given image file names.
Returns the image list as Image[].
If no image files are available, returns an empty array.
directory - the directory with the imagesimageFileNames - the array of image file names
Image[]
public static Image[] readImages(String directory,
String filelist)
Reads the image files in the given directory with the given filelist that contains the image file names.
The filelist is assumed to be a file in the same directory as the images.
Returns the image list as Image[].
If no image files are available, returns an empty array.
If filelist is null or is an empty string,
then this method reads all images in the directory.
directory - the directory with the images and image file listfilelist - the name of the text file with the image file list
Image[]public static Image[] readAllImages(String directory)
Reads all image files in the given directory.
Returns the image list as Image[].
If no image files are available, returns an empty array.
directory - the directory with the images
Image[]
public static ImagePaintable[] readImagesAsPaintable(String directory,
String[] imageFileNames)
Reads the image files in the given directory with the given image file names.
Returns the image list as ImagePaintable[].
If no image files are available, returns an empty array.
directory - the directory with the imagesimageFileNames - the array of image file names
ImagePaintable[]
public static ImagePaintable[] readImagesAsPaintable(String directory,
String filelist)
Reads the image files in the given directory with the given filelist that contains the image file names.
The filelist is assumed to be a file in the same directory as the images.
Returns the image list as ImagePaintable[].
If no image files are available, returns an empty array.
If filelist is null or is an empty string,
then this method reads all images in the directory.
directory - the directory with the images and image file listfilelist - the name of the text file with the image file list
ImagePaintable[]public static ImagePaintable[] readAllImagesAsPaintable(String directory)
Reads all image files in the given directory.
Returns the image list as ImagePaintable[].
If no image files are available, returns an empty array.
directory - the directory with the images
ImagePaintable[]
public static ImagePaintableLite[] readImagesAsPaintableLite(String directory,
String[] imageFileNames)
Reads the image files in the given directory with the given image file names.
Returns the image list as ImagePaintableLite[].
If no image files are available, returns an empty array.
directory - the directory with the imagesimageFileNames - the array of image file names
ImagePaintableLite[]
public static ImagePaintableLite[] readImagesAsPaintableLite(String directory,
String filelist)
Reads the image files in the given directory with the given filelist that contains the image file names.
The filelist is assumed to be a file in the same directory as the images.
Returns the image list as ImagePaintableLite[].
If no image files are available, returns an empty array.
If filelist is null or is an empty string,
then this method reads all images in the directory.
directory - the directory with the images and image file listfilelist - the name of the text file with the image file list
ImagePaintableLite[]public static ImagePaintableLite[] readAllImagesAsPaintableLite(String directory)
Reads all image files in the given directory.
Returns the image list as ImagePaintableLite[].
If no image files are available, returns an empty array.
directory - the directory with the images
ImagePaintableLite[]public static String[] readAllImageFileNames(String directory)
Returns all image file names in the given directory.
If the directory is null or no image files
are available, returns an empty array.
directory - the directory with the images
public static String[] readImageFileNames(String directory,
String filelist)
Returns all image file names in the given directory that are present in the given file list.
If the directory is null or no image files
are available, returns an empty array.
If the file list is null or blank, then
returns all image file names in the directory.
directory - the directory with the images and image file listfilelist - the name of the text file with the image file list
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||