Class ImageCache
java.lang.Object
cl.obcom.desktopfx.core.ImageCache
-
Constructor Summary
ConstructorsConstructorDescriptionImageCache(Desktop desktop, ExtensionBase extension) Constructs a newImageCacheinstance. -
Method Summary
Modifier and TypeMethodDescriptionReturns the image indexed by supplied name ornullif not found.getToolImage(String name) Returns the toolbar image indexed by specified name.getTreeImage(String name) Returns the tree image indexed by specified name.Returns the DesktopFX Window32 Image.
-
Constructor Details
-
ImageCache
Constructs a newImageCacheinstance.- Parameters:
desktop- the Desktop codebase.extension- the Desktop extension instance.- Throws:
NullPointerException- ifdesktopisnull.Exception- if another error occurs creating ImageCache.
-
-
Method Details
-
getWindow32Image
Returns the DesktopFX Window32 Image.- Returns:
- the DesktopFX Window32 Image.
-
getTreeImage
Returns the tree image indexed by specified name.- Parameters:
name- the name of the tree image (can include extension).- Returns:
- the tree image indexed by
nameor default tree image. - Throws:
NullPointerException- ifnameisnull.IllegalStateException- if default tree image not found.
-
getToolImage
Returns the toolbar image indexed by specified name.- Parameters:
name- the name of the toolbar image (can include extension).- Returns:
- the toolbar image indexed
nameor default toolbar image. - Throws:
NullPointerException- ifnameisnull.IllegalStateException- if default tool image not found.
-
getImage
Returns the image indexed by supplied name ornullif not found.- Parameters:
name- the name of the required image (can include extension).- Returns:
- the image indexed by supplied name or
nullif not found. - Throws:
NullPointerException- ifnameisnull.
-