Inheritance diagram for tit.gui.icon.ZipIconFactory:
Public Member Functions | |
ZipIconFactory (ZipFile zipinit) | |
ZipIconFactory (File file) throws ZipException, IOException | |
ZipIconFactory (String name) throws ZipException, IOException | |
Icon | getNewIcon () |
Icon | getSaveIcon () |
Icon | getLoadIcon () |
Icon | getImportIcon () |
Icon | getExportIcon () |
Icon | getEditIcon () |
Icon | getAddIcon () |
Icon | getRemoveIcon () |
Icon | getInfoIcon () |
Icon | getExitIcon () |
Icon | getPreferencesIcon () |
Static Private Member Functions | |
static byte[] | readAllBytesFrom (InputStream input) throws IOException |
Private Attributes | |
ZipFile | zip |
Static Private Attributes | |
static final IconFactory | DEFAULT_ICONS = new DefaultIconFactory() |
static final String | NEW_ICON = "new.png" |
static final String | SAVE_ICON = "save.png" |
static final String | LOAD_ICON = "load.png" |
static final String | IMPORT_ICON = "import.png" |
static final String | EXPORT_ICON = "export.png" |
static final String | EDIT_ICON = "edit.png" |
static final String | ADD_ICON = "add.png" |
static final String | REMOVE_ICON = "remove.png" |
static final String | INFO_ICON = "info.png" |
static final String | EXIT_ICON = "exit.png" |
static final String | PEFERENCES_ICON = "preferences.png" |
tit.gui.icon.ZipIconFactory.ZipIconFactory | ( | ZipFile | zipinit | ) |
Constructs a new ZipIconFactory
.
zipinit | The zip file from which the icons are read. |
tit.gui.icon.ZipIconFactory.ZipIconFactory | ( | File | file | ) | throws ZipException, IOException |
Constructs a new ZipIconFactory
.
file | The file from which the icons are read. |
IOException | Is thrown if an I/O error occurrs. | |
ZipException | Is thrown when a ZIP format error occurrs. |
tit.gui.icon.ZipIconFactory.ZipIconFactory | ( | String | name | ) | throws ZipException, IOException |
Constructs a new ZipIconFactory
.
name | The name of the file from which the icons are read. |
IOException | Is thrown if an I/O error occurrs. | |
ZipException | Is thrown when a ZIP format error occurrs. |
static byte [] tit.gui.icon.ZipIconFactory.readAllBytesFrom | ( | InputStream | input | ) | throws IOException [static, private] |
Reads all the bytes in an input-stream, and returns them as an array of byte
s.
input | The input stream from which the bytes are read. |
input
. IOException | Is thrown when something goes wrong while reading. |
Icon tit.gui.icon.ZipIconFactory.getNewIcon | ( | ) |
Icon tit.gui.icon.ZipIconFactory.getSaveIcon | ( | ) |
Icon tit.gui.icon.ZipIconFactory.getLoadIcon | ( | ) |
Icon tit.gui.icon.ZipIconFactory.getImportIcon | ( | ) |
Icon tit.gui.icon.ZipIconFactory.getExportIcon | ( | ) |
Icon tit.gui.icon.ZipIconFactory.getEditIcon | ( | ) |
Icon tit.gui.icon.ZipIconFactory.getAddIcon | ( | ) |
Icon tit.gui.icon.ZipIconFactory.getRemoveIcon | ( | ) |
Icon tit.gui.icon.ZipIconFactory.getInfoIcon | ( | ) |
Icon tit.gui.icon.ZipIconFactory.getExitIcon | ( | ) |
Icon tit.gui.icon.ZipIconFactory.getPreferencesIcon | ( | ) |
final IconFactory tit.gui.icon.ZipIconFactory.DEFAULT_ICONS = new DefaultIconFactory() [static, private] |
The default icons.
ZipFile tit.gui.icon.ZipIconFactory.zip [private] |
The zip file from which the icons are read.
final String tit.gui.icon.ZipIconFactory.NEW_ICON = "new.png" [static, private] |
The name of the new-icon.
final String tit.gui.icon.ZipIconFactory.SAVE_ICON = "save.png" [static, private] |
The name of the save-icon.
final String tit.gui.icon.ZipIconFactory.LOAD_ICON = "load.png" [static, private] |
The name of the load-icon.
final String tit.gui.icon.ZipIconFactory.IMPORT_ICON = "import.png" [static, private] |
The name of the import-icon.
final String tit.gui.icon.ZipIconFactory.EXPORT_ICON = "export.png" [static, private] |
The name of the export-icon.
final String tit.gui.icon.ZipIconFactory.EDIT_ICON = "edit.png" [static, private] |
The name of the edit-icon.
final String tit.gui.icon.ZipIconFactory.ADD_ICON = "add.png" [static, private] |
The name of the add-icon.
final String tit.gui.icon.ZipIconFactory.REMOVE_ICON = "remove.png" [static, private] |
The name of the remove-icon.
final String tit.gui.icon.ZipIconFactory.INFO_ICON = "info.png" [static, private] |
The name of the info-icon.
final String tit.gui.icon.ZipIconFactory.EXIT_ICON = "exit.png" [static, private] |
The name of the exit-icon.
final String tit.gui.icon.ZipIconFactory.PEFERENCES_ICON = "preferences.png" [static, private] |
The name of the preferences-icon.