public static class StyleParser.ImageInfo extends Object
Constructor and Description |
---|
ImageInfo(String image)
Creates an ImageInfo to wrap the specified image.
|
Modifier and Type | Method and Description |
---|---|
Image |
getImage(Resources theme)
Gets the image object that this image info references.
|
String |
toString()
Returns a string representation of the object.
|
public ImageInfo(String image)
image
- Either the path to an image on the classpath (signified by a leading '/', or
the name of an image that can be found in the theme resource file.public String toString()
Object
public Image getImage(Resources theme)
theme
- The theme resource file to use to get the image. Note: If the image name has a leading '/', then
the image will be loaded from the classpath. Otherwise the theme resource file will be used.