JHotDraw 7.5.1

org.jhotdraw.color
Class HSLColorSpace

java.lang.Object
  extended by java.awt.color.ColorSpace
      extended by org.jhotdraw.color.HSLColorSpace
All Implemented Interfaces:
java.io.Serializable, NamedColorSpace

public class HSLColorSpace
extends java.awt.color.ColorSpace
implements NamedColorSpace

A HSL color space with additive complements in the hue color wheel: red is opposite cyan, magenta is opposite green, blue is opposite yellow.

Version:
$Id: HSLColorSpace.java 640 2010-01-22 16:43:45Z rawcoder $
Author:
Werner Randelshofer
See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.awt.color.ColorSpace
CS_CIEXYZ, CS_GRAY, CS_LINEAR_RGB, CS_PYCC, CS_sRGB, TYPE_2CLR, TYPE_3CLR, TYPE_4CLR, TYPE_5CLR, TYPE_6CLR, TYPE_7CLR, TYPE_8CLR, TYPE_9CLR, TYPE_ACLR, TYPE_BCLR, TYPE_CCLR, TYPE_CMY, TYPE_CMYK, TYPE_DCLR, TYPE_ECLR, TYPE_FCLR, TYPE_GRAY, TYPE_HLS, TYPE_HSV, TYPE_Lab, TYPE_Luv, TYPE_RGB, TYPE_XYZ, TYPE_YCbCr, TYPE_Yxy
 
Constructor Summary
HSLColorSpace()
           
 
Method Summary
 boolean equals(java.lang.Object o)
           
 float[] fromCIEXYZ(float[] colorvalue)
           
 float[] fromRGB(float[] rgbvalue)
           
static HSLColorSpace getInstance()
           
 float getMaxValue(int component)
           
 float getMinValue(int component)
           
 java.lang.String getName()
           
 java.lang.String getName(int idx)
           
 int hashCode()
           
 float[] toCIEXYZ(float[] colorvalue)
           
 float[] toRGB(float[] components)
           
 
Methods inherited from class java.awt.color.ColorSpace
getInstance, getNumComponents, getType, isCS_sRGB
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HSLColorSpace

public HSLColorSpace()
Method Detail

getInstance

public static HSLColorSpace getInstance()

toRGB

public float[] toRGB(float[] components)
Specified by:
toRGB in class java.awt.color.ColorSpace

fromRGB

public float[] fromRGB(float[] rgbvalue)
Specified by:
fromRGB in class java.awt.color.ColorSpace

toCIEXYZ

public float[] toCIEXYZ(float[] colorvalue)
Specified by:
toCIEXYZ in class java.awt.color.ColorSpace

fromCIEXYZ

public float[] fromCIEXYZ(float[] colorvalue)
Specified by:
fromCIEXYZ in class java.awt.color.ColorSpace

getName

public java.lang.String getName(int idx)
Overrides:
getName in class java.awt.color.ColorSpace

getMaxValue

public float getMaxValue(int component)
Overrides:
getMaxValue in class java.awt.color.ColorSpace

getMinValue

public float getMinValue(int component)
Overrides:
getMinValue in class java.awt.color.ColorSpace

equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

getName

public java.lang.String getName()
Specified by:
getName in interface NamedColorSpace

Copyright 1996-2010 (c) by the authors and contributors of the JHotDraw project.
Some rights reserved.