|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object
|
+--javax.swing.filechooser.FileView
|
+--trex.GUI.ImageChooser.ImageFileView
This class implements a file view for application's "load" and "save" dialogs. It connects gif, jpg and png files. Please note that png is the preferred file format for saving images, as gif is only 8bit color depth and jpg is lossy.
This class was mostly stolen from Sun's documentation: FileChooser Demo (whoops... does this hurt GPL?!)
| Constructor Summary | |
ImageFileView()
|
|
| Method Summary | |
String |
getDescription(File f)
Return a description for the file. |
Icon |
getIcon(File f)
Return an icon for the file. |
String |
getName(File f)
Return file's name. |
String |
getTypeDescription(File f)
Return a description for the file type. |
Boolean |
isTraversable(File f)
Whether this directory is traversable. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public ImageFileView()
| Method Detail |
public String getName(File f)
getName in class FileViewf - file.
public String getDescription(File f)
getDescription in class FileViewf - file.
public Boolean isTraversable(File f)
isTraversable in class FileViewf - file
public String getTypeDescription(File f)
getTypeDescription in class FileViewf - file to return type description for
public Icon getIcon(File f)
getIcon in class FileViewf - file to return an icon for
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||