|
||||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||
java.lang.ObjectPictureUtil
PictureUtil - a class for displaying Picture's. Each new picture is displayed in a separate frame, layed out in a grid on the screen.
Motivated by the JavaPicture class from Georgia Tech's Media Computation class
Picture,
PictureColor,
Image| Constructor Summary | |
PictureUtil()
|
|
| Method Summary | |
static void |
save(Picture picture,
java.lang.String fileName)
Saves the specified picture to the specified file as a JPEG image. |
static void |
show(Picture picture)
Displays a picture. |
static void |
show(Picture picture,
java.lang.String title)
Displays a picture with title |
static void |
showException(java.lang.Exception ex)
Internal utility method to display exceptions to the screen in a pop-up window. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public PictureUtil()
| Method Detail |
public static void show(Picture picture,
java.lang.String title)
picture - The picture to showtitle - The title in the window framepublic static void show(Picture picture)
picture - The picture to show
public static void save(Picture picture,
java.lang.String fileName)
picture - The picture to be savedfileName - The name of the file to save the picture in.public static void showException(java.lang.Exception ex)
ex - The exception
|
||||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||