|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Theme
API for information held by the theme.
Since themes are considered to be user-created, these methods are more lenient than usual; they do not throw exceptions.
Field Summary | |
---|---|
static java.lang.String |
META
Theme property type: meta |
static java.lang.String |
META_AUTHORS
Theme property: theme authors |
static java.lang.String |
META_DESCRIPTION
Theme property: theme description |
static java.lang.String |
META_NAME
Theme property: theme name |
static java.lang.String |
META_PREVIEW
Theme property: theme preview |
Method Summary | |
---|---|
boolean |
getBooleanProperty(java.lang.String themeType,
java.lang.String property,
boolean def)
Obtains a boolean property. |
java.awt.image.BufferedImage |
getImageProperty(java.lang.String themeType,
java.lang.String property,
boolean transparency,
java.lang.Class<?> defaultReference,
java.lang.String defaultFilename)
Obtains an image property. |
int |
getIntProperty(java.lang.String themeType,
java.lang.String property,
int def)
Obtains an integer property. |
java.io.File |
getLocation()
|
java.lang.String |
getStringProperty(java.lang.String themeType,
java.lang.String property,
java.lang.String def)
Obtains a string property. |
textlayout.stylesheet.Stylesheet[] |
getStylesheets()
Obtains the theme's stylesheets (if provided). |
Field Detail |
---|
static final java.lang.String META
static final java.lang.String META_NAME
static final java.lang.String META_AUTHORS
static final java.lang.String META_DESCRIPTION
static final java.lang.String META_PREVIEW
Method Detail |
---|
java.io.File getLocation()
int getIntProperty(java.lang.String themeType, java.lang.String property, int def)
themeType
- Type of window/item under consideration, or Theme.METAproperty
- Name of propertydef
- Default value of property if not specified, or if specified but not an integer
boolean getBooleanProperty(java.lang.String themeType, java.lang.String property, boolean def)
themeType
- Type of window/item under consideration, or Theme.METAproperty
- Name of propertydef
- Default value of property if not specified
java.lang.String getStringProperty(java.lang.String themeType, java.lang.String property, java.lang.String def)
themeType
- Type of window/item under consideration, or Theme.METAproperty
- Name of propertydef
- Default value of property if not specified
java.awt.image.BufferedImage getImageProperty(java.lang.String themeType, java.lang.String property, boolean transparency, java.lang.Class<?> defaultReference, java.lang.String defaultFilename)
themeType
- Type of window/item under consideration, or Theme.META,
or null to request a file directly from this theme (will not search
parent themes or use the default reference).property
- Name of property, or file if themeType is nulltransparency
- If true, transparency from image will be used; otherwise
you'll get a solid imagedefaultReference
- A class that can be used as reference to load a default
image, or null if no defaultdefaultFilename
- Filename for default image, or null if no default
textlayout.stylesheet.Stylesheet[] getStylesheets()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |