Class ImageCache

java.lang.Object
cl.obcom.desktopfx.core.ImageCache

public final class ImageCache extends Object
Image cache of the Desktop.
  • Constructor Details

    • ImageCache

      public ImageCache(Desktop desktop, ExtensionBase extension)
      Constructs a new ImageCache instance.
      Parameters:
      desktop - the Desktop codebase.
      extension - the Desktop extension instance.
      Throws:
      NullPointerException - if desktop is null.
  • Method Details

    • getWindow32Image

      public Image getWindow32Image()
      Returns the DesktopFX Window32 Image.
      Returns:
      the DesktopFX Window32 Image.
    • getTreeImage

      public Image getTreeImage(String name)
      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 - if name is null.
      IllegalStateException - if default tree image not found.
    • getToolImage

      public Image getToolImage(String name)
      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 - if name is null.
      IllegalStateException - if default tool image not found.
    • getImage

      public Image getImage(String name)
      Returns the image indexed by supplied name or null 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 - if name is null.