Packageorg.purepdf.colors
Classpublic class RGBColor
InheritanceRGBColor Inheritance it.sephiroth.utils.ObjectHash
Subclasses ExtendedColor



Public Properties
 PropertyDefined By
  alpha : int
[read-only]
RGBColor
  blue : int
[read-only]
RGBColor
  green : int
[read-only]
RGBColor
  red : int
[read-only]
RGBColor
  rgb : int
[read-only]
RGBColor
Public Methods
 MethodDefined By
  
RGBColor(red:int = 0, green:int = 0, blue:int = 0, alpha:int = 255)
RGBColor
  
RGBColor
  
equals(obj:Object):Boolean
[override]
RGBColor
  
fromARGB(value:int):RGBColor
[static]
RGBColor
  
hashCode():int
[override]
RGBColor
  
setValue(red:int = 0, green:int = 0, blue:int = 0, alpha:int = 255):void
RGBColor
  
validate(color:int):void
RGBColor
Public Constants
 ConstantDefined By
  BLACK : RGBColor
[static]
RGBColor
  BLUE : RGBColor
[static]
RGBColor
  CYAN : RGBColor
[static]
RGBColor
  DARK_GRAY : RGBColor
[static]
RGBColor
  GRAY : RGBColor
[static]
RGBColor
  GREEN : RGBColor
[static]
RGBColor
  LIGHT_GRAY : RGBColor
[static]
RGBColor
  MAGENTA : RGBColor
[static]
RGBColor
  ORANGE : RGBColor
[static]
RGBColor
  PINK : RGBColor
[static]
RGBColor
  RED : RGBColor
[static]
RGBColor
  WHITE : RGBColor
[static]
RGBColor
  YELLOW : RGBColor
[static]
RGBColor
Property Detail
alphaproperty
alpha:int  [read-only]


Implementation
    public function get alpha():int
blueproperty 
blue:int  [read-only]


Implementation
    public function get blue():int
greenproperty 
green:int  [read-only]


Implementation
    public function get green():int
redproperty 
red:int  [read-only]


Implementation
    public function get red():int
rgbproperty 
rgb:int  [read-only]


Implementation
    public function get rgb():int
Constructor Detail
RGBColor()Constructor
public function RGBColor(red:int = 0, green:int = 0, blue:int = 0, alpha:int = 255)

Parameters
red:int (default = 0) — an int value between 0 and 255
 
green:int (default = 0) — an int value between 0 and 255
 
blue:int (default = 0) — an int value between 0 and 255
 
alpha:int (default = 255) — an int value between 0 and 255
Method Detail
darker()method
public function darker():RGBColor

Returns
RGBColor
equals()method 
override public function equals(obj:Object):Boolean

Parameters

obj:Object

Returns
Boolean
fromARGB()method 
public static function fromARGB(value:int):RGBColor

Parameters

value:int

Returns
RGBColor
hashCode()method 
override public function hashCode():int

Returns
int
setValue()method 
public function setValue(red:int = 0, green:int = 0, blue:int = 0, alpha:int = 255):void

Parameters

red:int (default = 0)
 
green:int (default = 0)
 
blue:int (default = 0)
 
alpha:int (default = 255)

validate()method 
public function validate(color:int):void

Parameters

color:int

Constant Detail
BLACKConstant
public static const BLACK:RGBColor

BLUEConstant 
public static const BLUE:RGBColor

CYANConstant 
public static const CYAN:RGBColor

DARK_GRAYConstant 
public static const DARK_GRAY:RGBColor

GRAYConstant 
public static const GRAY:RGBColor

GREENConstant 
public static const GREEN:RGBColor

LIGHT_GRAYConstant 
public static const LIGHT_GRAY:RGBColor

MAGENTAConstant 
public static const MAGENTA:RGBColor

ORANGEConstant 
public static const ORANGE:RGBColor

PINKConstant 
public static const PINK:RGBColor

REDConstant 
public static const RED:RGBColor

WHITEConstant 
public static const WHITE:RGBColor

YELLOWConstant 
public static const YELLOW:RGBColor