|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jtheque.core.managers.resource.ResourceManager
public final class ResourceManager
A resource manager implementation. WARNING : BeansManager must be inited before this manager for his good working.
Constructor Summary | |
---|---|
ResourceManager()
|
Method Summary | |
---|---|
void |
close()
Close the manager. |
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 path)
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 path)
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. |
void |
init()
Init the manager. |
void |
preInit()
Pre-init the manager. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ResourceManager()
Method Detail |
---|
public void preInit()
IManager
preInit
in interface IManager
public void init() throws ManagerException
IManager
init
in interface IManager
ManagerException
- If an error occurs during the init process.public void close() throws ManagerException
IManager
close
in interface IManager
ManagerException
- If an error occurs during the close process.public javax.swing.ImageIcon getIcon(java.lang.String basename, java.lang.String id, ImageType type)
IResourceManager
getIcon
in interface IResourceManager
basename
- The images basename.id
- The image index.type
- The image type.
public javax.swing.ImageIcon getIcon(java.lang.String id, ImageType type)
IResourceManager
getIcon
in interface IResourceManager
id
- The image index.type
- The image type.
public javax.swing.ImageIcon getIcon(java.lang.String path)
IResourceManager
getIcon
in interface IResourceManager
path
- The image index.
public java.awt.image.BufferedImage getImage(java.lang.String basename, java.lang.String id, ImageType type, int width)
IResourceManager
getImage
in interface IResourceManager
basename
- The image base name.id
- The image index.type
- The image type.width
- The width.
public java.awt.image.BufferedImage getImage(java.lang.String basename, java.lang.String id, ImageType type)
IResourceManager
getImage
in interface IResourceManager
basename
- The image base name.id
- The image index.type
- The image type.
public java.awt.image.BufferedImage getImage(java.lang.String id, ImageType type, int width)
IResourceManager
getImage
in interface IResourceManager
id
- The image index.type
- The image type.width
- The width.
public java.awt.image.BufferedImage getImage(java.lang.String id, ImageType type)
IResourceManager
getImage
in interface IResourceManager
id
- The image index.type
- The image type.
public java.awt.image.BufferedImage getImage(java.lang.String id, int width)
IResourceManager
getImage
in interface IResourceManager
id
- The image index.width
- The width.
public java.awt.image.BufferedImage getImage(java.lang.String path)
IResourceManager
getImage
in interface IResourceManager
path
- The image index.
public java.awt.Color getColor(java.lang.String name)
IResourceManager
getColor
in interface IResourceManager
name
- The name of the color.
public JThequeAction getAction(java.lang.String name)
IResourceManager
getAction
in interface IResourceManager
name
- The name of the color.
public org.springframework.core.io.Resource getResource(java.lang.String path)
IResourceManager
getResource
in interface IResourceManager
path
- The path to the ressource.
public java.io.InputStream getResourceAsStream(java.lang.String path)
IResourceManager
getResourceAsStream
in interface IResourceManager
path
- The path to the ressource.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |