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

java.lang.Object
  extended by org.gudy.azureus2.ui.swt.mainwindow.HSLColor

public class HSLColor
extends Object


Constructor Summary
HSLColor()
           
 
Method Summary
 void blend(int R, int G, int B, float fPercent)
           
 void brighten(float fPercent)
           
 int getBlue()
           
 int getGreen()
           
 int getHue()
           
 int getLuminence()
           
 int getRed()
           
 int getSaturation()
           
 void initHSLbyRGB(int R, int G, int B)
           
 void initRGBbyHSL(int H, int S, int L)
           
 void reverseColor()
           
 void setHue(int iToValue)
           
 void setLuminence(int iToValue)
           
 void setSaturation(int iToValue)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HSLColor

public HSLColor()
Method Detail

initHSLbyRGB

public void initHSLbyRGB(int R,
                         int G,
                         int B)

initRGBbyHSL

public void initRGBbyHSL(int H,
                         int S,
                         int L)

getHue

public int getHue()

setHue

public void setHue(int iToValue)

getSaturation

public int getSaturation()

setSaturation

public void setSaturation(int iToValue)

getLuminence

public int getLuminence()

setLuminence

public void setLuminence(int iToValue)

getRed

public int getRed()

getGreen

public int getGreen()

getBlue

public int getBlue()

reverseColor

public void reverseColor()

brighten

public void brighten(float fPercent)

blend

public void blend(int R,
                  int G,
                  int B,
                  float fPercent)