|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Painter Resource Map
Method Summary | |
Color |
getColor(java.lang.String resourceId)
Retrieves a color for the specified Id |
java.lang.String |
getId(int size,
java.lang.String resourceId)
Creates a resource identifier for an image |
ImageModel |
getImage(int size,
java.lang.String resourceId)
Retrieves an image for the specified Id |
ImageModel |
getImage(java.lang.String resourceId)
Retrieves an image for the specified Id |
java.lang.Object |
getResource(int size,
java.lang.String resourceId)
Retrieves an image for the specified Id |
java.lang.String |
getResourceDir()
Returns the base directory used for resource by the PainterFactory |
java.lang.String |
getString(java.lang.String resourceId,
boolean returnNull)
Retrieves an String for the specified Id |
java.lang.String |
getString(java.lang.String resourceId,
java.lang.Object[] params,
boolean returnNull)
Retrieves an String for the specified Id |
void |
register(java.lang.String resourceId,
java.lang.Object resource)
Registers a locale resource |
void |
registerColor(java.lang.String resourceId,
Color color)
Registers one locale color |
void |
registerImage(int size,
java.lang.String resourceId,
ImageModel image)
Registers one locale image |
void |
registerImage(java.lang.String resourceId,
ImageModel image)
Registers one local image |
void |
registerString(java.lang.String resourceId,
java.lang.String text)
Registers a string resource |
void |
setColorPalette(ColorPalette palette)
Sets the color palette. |
void |
setResourceDir(java.lang.String resourceDir)
Sets the directory used for resource by the PainterFactory |
Method Detail |
public java.lang.String getResourceDir()
public java.lang.Object getResource(int size, java.lang.String resourceId)
size
- The sizeresourceId
- The resource id
null
public void setResourceDir(java.lang.String resourceDir)
resourceDir
- The resource directorypublic ImageModel getImage(java.lang.String resourceId)
resourceId
- Image Id
null
public ImageModel getImage(int size, java.lang.String resourceId)
size
- Image SizeresourceId
- Image Id
null
public Color getColor(java.lang.String resourceId)
resourceId
- Color Id
null
public java.lang.String getString(java.lang.String resourceId, boolean returnNull)
resourceId
- String IdreturnNull
- controls whether to return null or a not present indicator
null
public java.lang.String getString(java.lang.String resourceId, java.lang.Object[] params, boolean returnNull)
resourceId
- String Idparams
- Array with parameters for markup substitutionreturnNull
- controls whether to return null or a not present indicator
null
public void setColorPalette(ColorPalette palette)
palette
- Color Palettepublic void registerImage(java.lang.String resourceId, ImageModel image)
resourceId
- The Image Resource Idimage
- The Imagepublic void registerImage(int size, java.lang.String resourceId, ImageModel image)
size
- The image sizeresourceId
- The Image Resource Idimage
- The Imagepublic void registerColor(java.lang.String resourceId, Color color)
resourceId
- The Image Resource Idcolor
- the Colorpublic void registerString(java.lang.String resourceId, java.lang.String text)
resourceId
- The string resource Idtext
- The text associated with the resource Idpublic void register(java.lang.String resourceId, java.lang.Object resource)
resourceId
- The Resource Idresource
- The Resourcepublic java.lang.String getId(int size, java.lang.String resourceId)
size
- The image sizeresourceId
- The Image Resource Id
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |