org.apache.pivot.wtk.skin.terra
Class TerraTheme

java.lang.Object
  extended by org.apache.pivot.wtk.Theme
      extended by org.apache.pivot.wtk.skin.terra.TerraTheme

public final class TerraTheme
extends Theme

Terra theme.


Field Summary
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 darken(Color color)
          Returns a darker version of the specified color.
 Color getColor(int index)
          Gets the color found at the specified index in 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.
 Image getSmallMessageIcon(MessageType messageType)
          Gets the "small" image that this theme uses to represent messages of the specified type.
 void setFont(Font font)
          Sets the theme's font.
 
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

LOCATION_PROPERTY

public static final String LOCATION_PROPERTY
See Also:
Constant Field Values
Constructor Detail

TerraTheme

public TerraTheme()
Method Detail

getFont

public Font getFont()
Gets the theme's font.

Specified by:
getFont in class Theme

setFont

public void setFont(Font font)
Sets the theme's font.

Specified by:
setFont in class Theme

getColor

public Color getColor(int index)
Gets the color found at the specified index in the theme's color palette.

Parameters:
index - A color palette index, from 0 to 23.

getMessageIcon

public Image getMessageIcon(MessageType messageType)
Gets the image that this theme uses to represent messages of the specified type.


getSmallMessageIcon

public Image getSmallMessageIcon(MessageType messageType)
Gets the "small" image that this theme uses to represent messages of the specified type.


brighten

public static Color brighten(Color color)
Returns a brighter version of the specified color. Specifically, it increases the brightness (in the HSB color model) by 0.1.


darken

public static Color darken(Color color)
Returns a darker version of the specified color. Specifically, it decreases the brightness (in the HSB color model) by 0.1.