Constructor and Description |
---|
ImageCache(Desktop desktop,
ExtensionBase extension)
Constructs a new
ImageCache instance. |
Modifier and Type | Method and Description |
---|---|
Image |
getImage(String name)
Returns the image indexed by supplied name or
null if not found. |
Image |
getToolImage(String name)
Returns the toolbar image indexed by specified name.
|
Image |
getTreeImage(String name)
Returns the tree image indexed by specified name.
|
Image |
getWindow32Image()
Returns the DesktopFX Window32 Image.
|
public ImageCache(Desktop desktop, ExtensionBase extension)
ImageCache
instance.desktop
- the Desktop codebase.extension
- the Desktop extension instance.NullPointerException
- if desktop
is null
.public Image getWindow32Image()
public Image getTreeImage(String name)
name
- the name of the tree image (can include extension).name
or default tree image.NullPointerException
- if name
is null
.IllegalStateException
- if default tree image not found.public Image getToolImage(String name)
name
- the name of the toolbar image (can include extension).name
or default toolbar image.NullPointerException
- if name
is null
.IllegalStateException
- if default tool image not found.public Image getImage(String name)
null
if not found.name
- the name of the required image (can include extension).null
if not found.NullPointerException
- if name
is null
.Copyright © OBCOM INGENIERIA S.A. (Chile). All Rights Reserved.