com.lizardtech.djvubean.toolbar
Class ToolbarImages
java.lang.Object
com.lizardtech.djvubean.toolbar.ToolbarImages
public class ToolbarImages
- extends java.lang.Object
The ToolbarImages class acts as a static holder for all the images used by
the Toolbar class.
- Version:
- $Revision: 1.8 $
- Author:
- $author$
Field Summary |
static java.util.Hashtable |
table
Map each of the images to a name. |
Method Summary |
static java.awt.Image |
createImage(java.awt.Component parent,
java.lang.String id)
Returns the specified image in the Hashtable. |
static java.util.Hashtable |
getHashtable(java.awt.Component parent)
Query/create the Hashtable of image names to images. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
table
public static java.util.Hashtable table
- Map each of the images to a name.
ToolbarImages
public ToolbarImages()
getHashtable
public static java.util.Hashtable getHashtable(java.awt.Component parent)
throws java.io.IOException
- Query/create the Hashtable of image names to images.
- Parameters:
parent
- The component to create the images for.
- Returns:
- Hashtable of images.
- Throws:
java.io.IOException
- If an IOException occurs decoding the static images.
createImage
public static java.awt.Image createImage(java.awt.Component parent,
java.lang.String id)
throws java.io.IOException
- Returns the specified image in the Hashtable.
- Parameters:
parent
- Component to create the image.id
- Name of the image.
- Returns:
- The newly created image.
- Throws:
java.io.IOException
- if an IOException occurs decoding the static data.