ch.uzh.ifi.attempto.echocomp
Class Style

java.lang.Object
  extended by ch.uzh.ifi.attempto.echocomp.Style

public class Style
extends java.lang.Object

This class defines some style attributes that are used by the components of this package.

Author:
Tobias Kuhn

Field Summary
static nextapp.echo.app.Color darkBackground
          The dark background color.
static nextapp.echo.app.Color darkDisabled
          The dark color for disabled components
static nextapp.echo.app.Color darkForeground
          The dark foreground color.
static nextapp.echo.app.Font.Typeface fontTypeface
          The font typeface.
static nextapp.echo.app.Color lightBackground
          The light background color.
static nextapp.echo.app.Color lightDisabled
          The light color for disabled components
static nextapp.echo.app.Color lightForeground
          The light foreground color.
static nextapp.echo.app.Color mediumBackground
          The medium background color.
static nextapp.echo.app.Color mediumForeground
          The medium foreground color.
static nextapp.echo.app.Color shadedBackground
          The color for shaded background areas.
static nextapp.echo.app.StyleSheet styleSheet
          The style sheet containing the shadows for internal windows.
static nextapp.echo.app.Color windowTitleBackground
          The color for the title background of internal windows.
 
Method Summary
static nextapp.echo.app.ResourceImageReference getImage(java.lang.String file)
          Returns an image reference for the given file.
static nextapp.echo.app.Color shiftColor(nextapp.echo.app.Color c, int colorShift)
          This method is used to modify a given color by keeping its brightness and saturation.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

styleSheet

public static nextapp.echo.app.StyleSheet styleSheet
The style sheet containing the shadows for internal windows.


lightBackground

public static nextapp.echo.app.Color lightBackground
The light background color.


mediumBackground

public static nextapp.echo.app.Color mediumBackground
The medium background color.


darkBackground

public static nextapp.echo.app.Color darkBackground
The dark background color.


shadedBackground

public static nextapp.echo.app.Color shadedBackground
The color for shaded background areas.


lightForeground

public static nextapp.echo.app.Color lightForeground
The light foreground color.


mediumForeground

public static nextapp.echo.app.Color mediumForeground
The medium foreground color.


darkForeground

public static nextapp.echo.app.Color darkForeground
The dark foreground color.


lightDisabled

public static nextapp.echo.app.Color lightDisabled
The light color for disabled components


darkDisabled

public static nextapp.echo.app.Color darkDisabled
The dark color for disabled components


windowTitleBackground

public static nextapp.echo.app.Color windowTitleBackground
The color for the title background of internal windows.


fontTypeface

public static nextapp.echo.app.Font.Typeface fontTypeface
The font typeface.

Method Detail

shiftColor

public static nextapp.echo.app.Color shiftColor(nextapp.echo.app.Color c,
                                                int colorShift)
This method is used to modify a given color by keeping its brightness and saturation. A shift value of 120, for example, means a shift by 120 "degrees" towards violet. A shift of 360 is a full rotation and result in the original color.

Parameters:
c - The original color.
colorShift - The color shift value.
Returns:
The modified color.

getImage

public static nextapp.echo.app.ResourceImageReference getImage(java.lang.String file)
Returns an image reference for the given file. The same reference is returned when this method is called twice for the same file.

Parameters:
file - Path and file name of an image file.
Returns:
An image reference for the given file.


Copyright 2008-2012, AceWiki developers