|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.pivot.wtk.Theme
org.apache.pivot.wtk.skin.terra.TerraTheme
public final class TerraTheme
Terra theme.
| Field Summary | |
|---|---|
static String |
COMMAND_BUTTON_STYLE
|
static String |
LOCATION_PROPERTY
|
| Fields inherited from class org.apache.pivot.wtk.Theme |
|---|
BOLD_KEY, componentSkinMap, ITALIC_KEY, NAME_KEY, PROVIDER_NAME, SIZE_KEY |
| Constructor Summary | |
|---|---|
TerraTheme()
|
|
| Method Summary | |
|---|---|
static Color |
brighten(Color color)
Returns a brighter version of the specified color. |
static Color |
brighten(Color color,
float adjustment)
Returns a brighter version of the specified color. |
static Color |
darken(Color color)
Returns a darker version of the specified color. |
static Color |
darken(Color color,
float adjustment)
Returns a darker version of the specified color. |
Color |
getBaseColor(int index)
Gets a base color from the theme's color palette. |
Color |
getColor(int index)
Gets a value from the theme's color palette. |
Font |
getFont()
Gets the theme's font. |
Image |
getMessageIcon(MessageType messageType)
Gets the image that this theme uses to represent messages of the specified type. |
int |
getNumberOfColors()
Gets the total number of Colors |
int |
getNumberOfPaletteColors()
Gets the number of Palette Colors |
Image |
getSmallMessageIcon(MessageType messageType)
Gets the small image that this theme uses to represent messages of the specified type. |
void |
setBaseColor(int index,
Color baseColor)
Sets a base color in the theme's color palette. |
void |
setColor(int index,
Color color)
Sets a value in the theme's color palette. |
void |
setFont(Font font)
Sets the theme's font. |
void |
setMessageIcon(MessageType messageType,
Image messageIcon)
Sets the image that this theme uses to represent messages of the specified type. |
void |
setSmallMessageIcon(MessageType messageType,
Image smallMessageIcon)
Sets the small image that this theme uses to represent messages of the specified type. |
| Methods inherited from class org.apache.pivot.wtk.Theme |
|---|
deriveFont, get, getSkinClass, getTheme, set |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String LOCATION_PROPERTY
public static final String COMMAND_BUTTON_STYLE
| Constructor Detail |
|---|
public TerraTheme()
| Method Detail |
|---|
public Font getFont()
getFont in class Themepublic void setFont(Font font)
setFont in class Themepublic Color getColor(int index)
index -
public void setColor(int index,
Color color)
index - color - public Color getBaseColor(int index)
index -
public void setBaseColor(int index,
Color baseColor)
index - baseColor - public int getNumberOfPaletteColors()
public int getNumberOfColors()
public Image getMessageIcon(MessageType messageType)
messageType -
public void setMessageIcon(MessageType messageType,
Image messageIcon)
messageType - messageIcon - public Image getSmallMessageIcon(MessageType messageType)
messageType -
public void setSmallMessageIcon(MessageType messageType,
Image smallMessageIcon)
messageType - smallMessageIcon - public static Color brighten(Color color)
public static Color darken(Color color)
public static Color brighten(Color color,
float adjustment)
public static Color darken(Color color,
float adjustment)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||