Packagecom.yahoo.astra.utils
Classpublic class ColorSpace

A collection of constants and methods for use with colorspaces.



Public Methods
 MethodDefined by
  
classToColorSpace(type:Class):String
[static] Taking an IColor implementation as input, returns the string constant that represents the colorspace for the class.
ColorSpace
  
colorSpaceToClass(colorSpace:String):Class
[static] Taking a string constant for a colorspace, returns the IColor implementation for that colorspace.
ColorSpace
Public Constants
 ConstantDefined by
  CMY : String = "cmy"
[static] A constant representing the CMY colorspace.
ColorSpace
  CMYK : String = "cmyk"
[static] A constant representing the CMYK colorspace.
ColorSpace
  HSB : String = "hsb"
[static] A constant representing the HSB colorspace.
ColorSpace
  RGB : String = "rgb"
[static] A constant representing the RGB colorspace.
ColorSpace
Method detail
classToColorSpace()method
public static function classToColorSpace(type:Class):String

Taking an IColor implementation as input, returns the string constant that represents the colorspace for the class.

Parameters
type:Class — the IColor implementation

Returns
String — the string constant representing the colorspace
colorSpaceToClass()method 
public static function colorSpaceToClass(colorSpace:String):Class

Taking a string constant for a colorspace, returns the IColor implementation for that colorspace.

Parameters
colorSpace:String — the string constant

Returns
Class — the IColor implementation
Constant detail
CMYconstant
public static const CMY:String = "cmy"

A constant representing the CMY colorspace.

See also

com.yahoo.astra.util.CMYColor
CMYKconstant 
public static const CMYK:String = "cmyk"

A constant representing the CMYK colorspace.

See also

com.yahoo.astra.util.CMYKColor
HSBconstant 
public static const HSB:String = "hsb"

A constant representing the HSB colorspace.

See also

com.yahoo.astra.util.HSBColor
RGBconstant 
public static const RGB:String = "rgb"

A constant representing the RGB colorspace.

See also

com.yahoo.astra.util.RGBColor