org.jtheque.core.managers.resource
Interface IResourceManager

All Known Implementing Classes:
ResourceManager

public interface IResourceManager

A resource manager.

Author:
Baptiste Wicht

Method Summary
 JThequeAction getAction(java.lang.String name)
          Return the action of the specified name.
 java.awt.Color getColor(java.lang.String name)
          Return the color of the specified name.
 javax.swing.ImageIcon getIcon(java.lang.String id)
          Load and return the icon.
 javax.swing.ImageIcon getIcon(java.lang.String id, ImageType type)
          Load and return the icon.
 javax.swing.ImageIcon getIcon(java.lang.String basename, java.lang.String id, ImageType type)
          Load and return the icon.
 java.awt.image.BufferedImage getImage(java.lang.String id)
          Load and return the image.
 java.awt.image.BufferedImage getImage(java.lang.String id, ImageType type)
          Load and return the image.
 java.awt.image.BufferedImage getImage(java.lang.String id, ImageType type, int width)
          Load, return and resize the image.
 java.awt.image.BufferedImage getImage(java.lang.String id, int width)
          Load, return and resize the image.
 java.awt.image.BufferedImage getImage(java.lang.String basename, java.lang.String id, ImageType type)
          Load and return the image.
 java.awt.image.BufferedImage getImage(java.lang.String basename, java.lang.String id, ImageType type, int width)
          Load, return and resize the image.
 org.springframework.core.io.Resource getResource(java.lang.String path)
          Return the ressource of the path.
 java.io.InputStream getResourceAsStream(java.lang.String path)
          Return the ressource as stream.
 

Method Detail

getResource

org.springframework.core.io.Resource getResource(java.lang.String path)
Return the ressource of the path.

Parameters:
path - The path to the ressource.
Returns:
The loaded Ressource.

getResourceAsStream

java.io.InputStream getResourceAsStream(java.lang.String path)
Return the ressource as stream.

Parameters:
path - The path to the ressource.
Returns:
The inputstream of the loaded ressource.

getIcon

javax.swing.ImageIcon getIcon(java.lang.String basename,
                              java.lang.String id,
                              ImageType type)
Load and return the icon.

Parameters:
basename - The images basename.
id - The image index.
type - The image type.
Returns:
The loaded icon.

getIcon

javax.swing.ImageIcon getIcon(java.lang.String id,
                              ImageType type)
Load and return the icon.

Parameters:
id - The image index.
type - The image type.
Returns:
The loaded icon.

getIcon

javax.swing.ImageIcon getIcon(java.lang.String id)
Load and return the icon.

Parameters:
id - The image index.
Returns:
The loaded icon.

getImage

java.awt.image.BufferedImage getImage(java.lang.String basename,
                                      java.lang.String id,
                                      ImageType type,
                                      int width)
Load, return and resize the image.

Parameters:
basename - The image base name.
id - The image index.
type - The image type.
width - The width.
Returns:
The loaded icon.

getImage

java.awt.image.BufferedImage getImage(java.lang.String basename,
                                      java.lang.String id,
                                      ImageType type)
Load and return the image.

Parameters:
basename - The image base name.
id - The image index.
type - The image type.
Returns:
The loaded icon.

getImage

java.awt.image.BufferedImage getImage(java.lang.String id,
                                      ImageType type,
                                      int width)
Load, return and resize the image.

Parameters:
id - The image index.
type - The image type.
width - The width.
Returns:
The loaded icon.

getImage

java.awt.image.BufferedImage getImage(java.lang.String id,
                                      ImageType type)
Load and return the image.

Parameters:
id - The image index.
type - The image type.
Returns:
The loaded icon.

getImage

java.awt.image.BufferedImage getImage(java.lang.String id,
                                      int width)
Load, return and resize the image.

Parameters:
id - The image index.
width - The width.
Returns:
The loaded icon.

getImage

java.awt.image.BufferedImage getImage(java.lang.String id)
Load and return the image.

Parameters:
id - The image index.
Returns:
The loaded icon.

getColor

java.awt.Color getColor(java.lang.String name)
Return the color of the specified name.

Parameters:
name - The name of the color.
Returns:
The color of the specified name.

getAction

JThequeAction getAction(java.lang.String name)
Return the action of the specified name.

Parameters:
name - The name of the color.
Returns:
The action of the specified name.


Copyright © 2009 JTheque. All Rights Reserved.