Package cl.obcom.desktopfx.core
Class ImageCache
java.lang.Object
cl.obcom.desktopfx.core.ImageCache
Image cache of the
Desktop
.-
Constructor Summary
ConstructorDescriptionImageCache
(Desktop desktop, ExtensionBase extension) Constructs a newImageCache
instance. -
Method Summary
Modifier and TypeMethodDescriptionReturns the image indexed by supplied name ornull
if 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 newImageCache
instance.- Parameters:
desktop
- the Desktop codebase.extension
- the Desktop extension instance.- Throws:
NullPointerException
- ifdesktop
isnull
.
-
-
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
name
or default tree image. - Throws:
NullPointerException
- ifname
isnull
.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
name
or default toolbar image. - Throws:
NullPointerException
- ifname
isnull
.IllegalStateException
- if default tool image not found.
-
getImage
Returns the image indexed by supplied name ornull
if not found.- Parameters:
name
- the name of the required image (can include extension).- Returns:
- the image indexed by supplied name or
null
if not found. - Throws:
NullPointerException
- ifname
isnull
.
-