tit.gui.icon.ZipIconFactory Class Reference

Inheritance diagram for tit.gui.icon.ZipIconFactory:

tit.gui.icon.IconFactory List of all members.

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"

Detailed Description

IconFacory which reads tis icons from a zip file.
Author:
Bart Sas


Constructor & Destructor Documentation

tit.gui.icon.ZipIconFactory.ZipIconFactory ( ZipFile  zipinit  ) 

Constructs a new ZipIconFactory.

Parameters:
zipinit The zip file from which the icons are read.

tit.gui.icon.ZipIconFactory.ZipIconFactory ( File  file  )  throws ZipException, IOException

Constructs a new ZipIconFactory.

Parameters:
file The file from which the icons are read.
Exceptions:
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.

Parameters:
name The name of the file from which the icons are read.
Exceptions:
IOException Is thrown if an I/O error occurrs.
ZipException Is thrown when a ZIP format error occurrs.


Member Function Documentation

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 bytes.

Parameters:
input The input stream from which the bytes are read.
Returns:
An array of bytes containing the contents of input.
Exceptions:
IOException Is thrown when something goes wrong while reading.

Icon tit.gui.icon.ZipIconFactory.getNewIcon (  ) 

Returns the new icon.

Returns:
The new icon.

Implements tit.gui.icon.IconFactory.

Icon tit.gui.icon.ZipIconFactory.getSaveIcon (  ) 

Returns the save icon.

Returns:
The save icon.

Implements tit.gui.icon.IconFactory.

Icon tit.gui.icon.ZipIconFactory.getLoadIcon (  ) 

Returns the load icon.

Returns:
The load icon.

Implements tit.gui.icon.IconFactory.

Icon tit.gui.icon.ZipIconFactory.getImportIcon (  ) 

Returns the import icon.

Returns:
The import icon.

Implements tit.gui.icon.IconFactory.

Icon tit.gui.icon.ZipIconFactory.getExportIcon (  ) 

Returns the export icon.

Returns:
The export icon.

Implements tit.gui.icon.IconFactory.

Icon tit.gui.icon.ZipIconFactory.getEditIcon (  ) 

Returns the edit icon.

Returns:
The edit icon.

Implements tit.gui.icon.IconFactory.

Icon tit.gui.icon.ZipIconFactory.getAddIcon (  ) 

Returns the add icon.

Returns:
The add icon.

Implements tit.gui.icon.IconFactory.

Icon tit.gui.icon.ZipIconFactory.getRemoveIcon (  ) 

Returns the remove icon.

Returns:
The remove icon.

Implements tit.gui.icon.IconFactory.

Icon tit.gui.icon.ZipIconFactory.getInfoIcon (  ) 

Returns the info icon.

Returns:
The info icon.

Implements tit.gui.icon.IconFactory.

Icon tit.gui.icon.ZipIconFactory.getExitIcon (  ) 

Returns the exit icon.

Returns:
The exit icon.

Implements tit.gui.icon.IconFactory.

Icon tit.gui.icon.ZipIconFactory.getPreferencesIcon (  ) 

Returns the exit icon.

Returns:
The exit icon.

Implements tit.gui.icon.IconFactory.


Member Data Documentation

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.


The documentation for this class was generated from the following file:
Generated on Sun Jun 3 16:44:00 2007 by  doxygen 1.5.1