| Package | com.yahoo.astra.utils |
| Class | public class Color |
| Property | Defined by | ||
|---|---|---|---|
| hexValue : uint
The hexadecimal value of a color.
| Color | ||
| name : String
The common name of a color.
| Color | ||
| Method | Defined by | ||
|---|---|---|---|
|
Color(name:String, hexValue:uint)
Constructor.
| Color | ||
|
getColorByHexValue(hexValue:uint):Color
[static]
Returns the corresponding Color object from the hexadecimal value.
| Color | ||
|
getColorByName(name:String):Color
[static]
Returns the corresponding Color object from the string name.
| Color | ||
|
toString():String
Returns a string value using the common color name.
| Color | ||
| Constant | Defined by | ||
|---|---|---|---|
| AQUA : Color
[static]
| Color | ||
| BLACK : Color
[static]
| Color | ||
| BLUE : Color
[static]
| Color | ||
| FUCHSIA : Color
[static]
| Color | ||
| GRAY : Color
[static]
| Color | ||
| GREEN : Color
[static]
| Color | ||
| LIME : Color
[static]
| Color | ||
| MAROON : Color
[static]
| Color | ||
| NAVY : Color
[static]
| Color | ||
| OLIVE : Color
[static]
| Color | ||
| PURPLE : Color
[static]
| Color | ||
| RED : Color
[static]
| Color | ||
| SILVER : Color
[static]
| Color | ||
| TEAL : Color
[static]
| Color | ||
| WHITE : Color
[static]
| Color | ||
| YELLOW : Color
[static]
| Color | ||
| hexValue | property |
hexValue:uint [read-write]The hexadecimal value of a color.
Implementation public function get hexValue():uint
public function set hexValue(value:uint):void
| name | property |
name:String [read-write]The common name of a color.
Implementation public function get name():String
public function set name(value:String):void
| Color | () | constructor |
public function Color(name:String, hexValue:uint)Constructor.
Parametersname:String — The string name of a color.
|
|
hexValue:uint — The hexadecimal value of a color.
|
| getColorByHexValue | () | method |
public static function getColorByHexValue(hexValue:uint):ColorReturns the corresponding Color object from the hexadecimal value.
ParametershexValue:uint — The hexadecimal value of a color.
|
Color —
A Color object.
|
| getColorByName | () | method |
public static function getColorByName(name:String):ColorReturns the corresponding Color object from the string name.
Parametersname:String — The string name of a color (case-insensitive).
|
Color —
A Color object.
|
| toString | () | method |
public function toString():StringReturns a string value using the common color name.
ReturnsString — String
|
| AQUA | constant |
public static const AQUA:Color
| BLACK | constant |
public static const BLACK:Color
| BLUE | constant |
public static const BLUE:Color
| FUCHSIA | constant |
public static const FUCHSIA:Color
| GRAY | constant |
public static const GRAY:Color
| GREEN | constant |
public static const GREEN:Color
| LIME | constant |
public static const LIME:Color
| MAROON | constant |
public static const MAROON:Color
| NAVY | constant |
public static const NAVY:Color
| OLIVE | constant |
public static const OLIVE:Color
| PURPLE | constant |
public static const PURPLE:Color
| RED | constant |
public static const RED:Color
| SILVER | constant |
public static const SILVER:Color
| TEAL | constant |
public static const TEAL:Color
| WHITE | constant |
public static const WHITE:Color
| YELLOW | constant |
public static const YELLOW:Color