com.rabbit.plastik.util
Class ColorStyle

java.lang.Object
  extended by com.rabbit.plastik.util.ColorStyle

public class ColorStyle
extends java.lang.Object


Field Summary
static java.lang.String activeBackground
           
static java.lang.String activeBlend
           
static java.lang.String activeForeground
           
static java.lang.String activeTitleBtnBg
           
static java.lang.String alternateBackground
           
static java.lang.String background
           
static java.lang.String buttonBackground
           
static java.awt.Color buttonColorBot1
           
static java.awt.Color buttonColorBot2
           
static java.awt.Color buttonColorTop1
           
static java.awt.Color buttonColorTop2
           
static java.awt.Color buttonContourColor
           
static java.lang.String buttonForeground
           
static java.lang.String contrast
           
static java.lang.String foreground
           
static java.lang.String inactiveBackground
           
static java.lang.String inactiveBlend
           
static java.lang.String inactiveForeground
           
static java.lang.String inactiveTitleBtnBg
           
static java.lang.String linkColor
           
static java.lang.String selectBackground
           
static java.lang.String selectForeground
           
static java.lang.String visitedLinkColor
           
static java.lang.String windowBackground
           
static java.lang.String windowForeground
           
 
Constructor Summary
ColorStyle()
           
 
Method Summary
static java.awt.Color alphaBlend(java.awt.Color bg, java.awt.Color fg, int alpha)
           
static void buildWidgetColors(java.io.InputStream is)
           
static java.awt.Color dark(java.awt.Color c, int factor)
           
static java.awt.Color getColor(java.lang.String name)
           
static java.awt.Color light(java.awt.Color c, int factor)
           
static java.util.Hashtable loadColorTheme(java.io.InputStream is)
           
static void main(java.lang.String[] args)
           
static void showColors()
           
 void tm()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

buttonColorTop1

public static java.awt.Color buttonColorTop1

buttonColorTop2

public static java.awt.Color buttonColorTop2

buttonColorBot1

public static java.awt.Color buttonColorBot1

buttonColorBot2

public static java.awt.Color buttonColorBot2

buttonContourColor

public static java.awt.Color buttonContourColor

activeBackground

public static final java.lang.String activeBackground
See Also:
Constant Field Values

activeBlend

public static final java.lang.String activeBlend
See Also:
Constant Field Values

activeForeground

public static final java.lang.String activeForeground
See Also:
Constant Field Values

activeTitleBtnBg

public static final java.lang.String activeTitleBtnBg
See Also:
Constant Field Values

alternateBackground

public static final java.lang.String alternateBackground
See Also:
Constant Field Values

background

public static final java.lang.String background
See Also:
Constant Field Values

buttonBackground

public static final java.lang.String buttonBackground
See Also:
Constant Field Values

buttonForeground

public static final java.lang.String buttonForeground
See Also:
Constant Field Values

contrast

public static final java.lang.String contrast
See Also:
Constant Field Values

foreground

public static final java.lang.String foreground
See Also:
Constant Field Values

inactiveBackground

public static final java.lang.String inactiveBackground
See Also:
Constant Field Values

inactiveBlend

public static final java.lang.String inactiveBlend
See Also:
Constant Field Values

inactiveForeground

public static final java.lang.String inactiveForeground
See Also:
Constant Field Values

inactiveTitleBtnBg

public static final java.lang.String inactiveTitleBtnBg
See Also:
Constant Field Values

linkColor

public static final java.lang.String linkColor
See Also:
Constant Field Values

selectBackground

public static final java.lang.String selectBackground
See Also:
Constant Field Values

selectForeground

public static final java.lang.String selectForeground
See Also:
Constant Field Values

visitedLinkColor

public static final java.lang.String visitedLinkColor
See Also:
Constant Field Values

windowBackground

public static final java.lang.String windowBackground
See Also:
Constant Field Values

windowForeground

public static final java.lang.String windowForeground
See Also:
Constant Field Values
Constructor Detail

ColorStyle

public ColorStyle()
Method Detail

main

public static void main(java.lang.String[] args)
                 throws java.lang.Exception
Throws:
java.lang.Exception

buildWidgetColors

public static void buildWidgetColors(java.io.InputStream is)
                              throws java.lang.Exception
Throws:
java.lang.Exception

getColor

public static java.awt.Color getColor(java.lang.String name)

showColors

public static void showColors()

loadColorTheme

public static java.util.Hashtable loadColorTheme(java.io.InputStream is)
                                          throws java.lang.Exception
Throws:
java.lang.Exception

tm

public void tm()

dark

public static java.awt.Color dark(java.awt.Color c,
                                  int factor)

light

public static java.awt.Color light(java.awt.Color c,
                                   int factor)

alphaBlend

public static java.awt.Color alphaBlend(java.awt.Color bg,
                                        java.awt.Color fg,
                                        int alpha)