org.gudy.azureus2.ui.swt.mainwindow
Class Colors

java.lang.Object
  extended by org.gudy.azureus2.ui.swt.mainwindow.Colors
All Implemented Interfaces:
ParameterListener

public class Colors
extends Object
implements ParameterListener

Author:
Olivier Chalouhi, MjrTom 2005/Dec/08: green

Field Summary
static org.eclipse.swt.graphics.Color background
           
static org.eclipse.swt.graphics.Color black
           
static org.eclipse.swt.graphics.Color blue
           
static org.eclipse.swt.graphics.Color[] blues
           
static int BLUES_DARKEST
           
static int BLUES_LIGHTEST
           
static int BLUES_MIDDARK
           
static int BLUES_MIDLIGHT
           
static org.eclipse.swt.graphics.Color colorAltRow
           
static org.eclipse.swt.graphics.Color colorError
           
static org.eclipse.swt.graphics.Color colorErrorBG
           
static org.eclipse.swt.graphics.Color colorInverse
           
static org.eclipse.swt.graphics.Color colorProgressBar
           
static org.eclipse.swt.graphics.Color colorShiftLeft
           
static org.eclipse.swt.graphics.Color colorShiftRight
           
static org.eclipse.swt.graphics.Color colorWarning
           
static org.eclipse.swt.graphics.Color dark_grey
           
static int diffHue
           
static float diffLumPct
           
static float diffSatPct
           
static org.eclipse.swt.graphics.Color[] faded
           
static int FADED_DARKEST
           
static int FADED_LIGHTEST
           
static org.eclipse.swt.graphics.Color fadedGreen
           
static org.eclipse.swt.graphics.Color fadedRed
           
static org.eclipse.swt.graphics.Color fadedYellow
           
static org.eclipse.swt.graphics.Color green
           
static org.eclipse.swt.graphics.Color grey
           
static org.eclipse.swt.graphics.Color light_grey
           
static org.eclipse.swt.graphics.Color red
           
static org.eclipse.swt.graphics.Color red_ConsoleView
           
static org.eclipse.swt.graphics.Color white
           
static org.eclipse.swt.graphics.Color yellow
           
 
Method Summary
 void addColorsChangedListener(ParameterListener l)
           
static Colors getInstance()
           
 void parameterChanged(String parameterName)
          Called, when a parameter has changed.
 void removeColorsChangedListener(ParameterListener l)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

BLUES_LIGHTEST

public static final int BLUES_LIGHTEST
See Also:
Constant Field Values

BLUES_DARKEST

public static final int BLUES_DARKEST
See Also:
Constant Field Values

BLUES_MIDLIGHT

public static final int BLUES_MIDLIGHT
See Also:
Constant Field Values

BLUES_MIDDARK

public static final int BLUES_MIDDARK
See Also:
Constant Field Values

FADED_LIGHTEST

public static final int FADED_LIGHTEST
See Also:
Constant Field Values

FADED_DARKEST

public static final int FADED_DARKEST
See Also:
Constant Field Values

blues

public static org.eclipse.swt.graphics.Color[] blues

faded

public static org.eclipse.swt.graphics.Color[] faded

colorProgressBar

public static org.eclipse.swt.graphics.Color colorProgressBar

colorInverse

public static org.eclipse.swt.graphics.Color colorInverse

colorShiftLeft

public static org.eclipse.swt.graphics.Color colorShiftLeft

colorShiftRight

public static org.eclipse.swt.graphics.Color colorShiftRight

colorError

public static org.eclipse.swt.graphics.Color colorError

colorErrorBG

public static org.eclipse.swt.graphics.Color colorErrorBG

colorAltRow

public static org.eclipse.swt.graphics.Color colorAltRow

colorWarning

public static org.eclipse.swt.graphics.Color colorWarning

black

public static org.eclipse.swt.graphics.Color black

light_grey

public static org.eclipse.swt.graphics.Color light_grey

dark_grey

public static org.eclipse.swt.graphics.Color dark_grey

blue

public static org.eclipse.swt.graphics.Color blue

green

public static org.eclipse.swt.graphics.Color green

fadedGreen

public static org.eclipse.swt.graphics.Color fadedGreen

grey

public static org.eclipse.swt.graphics.Color grey

red

public static org.eclipse.swt.graphics.Color red

fadedRed

public static org.eclipse.swt.graphics.Color fadedRed

yellow

public static org.eclipse.swt.graphics.Color yellow

fadedYellow

public static org.eclipse.swt.graphics.Color fadedYellow

white

public static org.eclipse.swt.graphics.Color white

background

public static org.eclipse.swt.graphics.Color background

red_ConsoleView

public static org.eclipse.swt.graphics.Color red_ConsoleView

diffHue

public static int diffHue

diffSatPct

public static float diffSatPct

diffLumPct

public static float diffLumPct
Method Detail

getInstance

public static Colors getInstance()

addColorsChangedListener

public void addColorsChangedListener(ParameterListener l)

removeColorsChangedListener

public void removeColorsChangedListener(ParameterListener l)

parameterChanged

public void parameterChanged(String parameterName)
Description copied from interface: ParameterListener
Called, when a parameter has changed. The listener could only react if the parameter name is relevant. Or the listener can just read all parameters again.

Specified by:
parameterChanged in interface ParameterListener
Parameters:
parameterName - the name of the parameter that has changed