ILIAS
release_5-2 Revision v5.2.25-18-g3f80b828510
|
Public Member Functions | |
__construct ($pARGB=PHPExcel_Style_Color::COLOR_BLACK, $isSupervisor=FALSE, $isConditional=FALSE) | |
Create a new PHPExcel_Style_Color. More... | |
bindParent ($parent, $parentPropertyName=NULL) | |
Bind parent. More... | |
getSharedComponent () | |
Get the shared style component for the currently active cell in currently active sheet. More... | |
getStyleArray ($array) | |
Build style array from subcomponents. More... | |
applyFromArray ($pStyles=NULL) | |
Apply styles from array. More... | |
getARGB () | |
Get ARGB. More... | |
setARGB ($pValue=PHPExcel_Style_Color::COLOR_BLACK) | |
Set ARGB. More... | |
getRGB () | |
Get RGB. More... | |
setRGB ($pValue='000000') | |
Set RGB. More... | |
getHashCode () | |
Get hash code. More... | |
Public Member Functions inherited from PHPExcel_Style_Supervisor | |
__construct ($isSupervisor=FALSE) | |
Create a new PHPExcel_Style_Alignment. More... | |
bindParent ($parent, $parentPropertyName=NULL) | |
Bind parent. More... | |
getIsSupervisor () | |
Is this a supervisor or a cell style component? More... | |
getActiveSheet () | |
Get the currently active sheet. More... | |
getSelectedCells () | |
Get the currently active cell coordinate in currently active sheet. More... | |
getActiveCell () | |
Get the currently active cell coordinate in currently active sheet. More... | |
__clone () | |
Implement PHP __clone to create a deep clone, not just a shallow copy. More... | |
Static Public Member Functions | |
static | getRed ($RGB, $hex=TRUE) |
Get the red colour component of an RGB value. More... | |
static | getGreen ($RGB, $hex=TRUE) |
Get the green colour component of an RGB value. More... | |
static | getBlue ($RGB, $hex=TRUE) |
Get the blue colour component of an RGB value. More... | |
static | changeBrightness ($hex, $adjustPercentage) |
Adjust the brightness of a color. More... | |
static | indexedColor ($pIndex, $background=FALSE) |
Get indexed color. More... | |
Data Fields | |
const | COLOR_BLACK = 'FF000000' |
const | COLOR_WHITE = 'FFFFFFFF' |
const | COLOR_RED = 'FFFF0000' |
const | COLOR_DARKRED = 'FF800000' |
const | COLOR_BLUE = 'FF0000FF' |
const | COLOR_DARKBLUE = 'FF000080' |
const | COLOR_GREEN = 'FF00FF00' |
const | COLOR_DARKGREEN = 'FF008000' |
const | COLOR_YELLOW = 'FFFFFF00' |
const | COLOR_DARKYELLOW = 'FF808000' |
Protected Attributes | |
$_argb = NULL | |
$_parentPropertyName | |
Protected Attributes inherited from PHPExcel_Style_Supervisor | |
$_isSupervisor | |
$_parent | |
Static Protected Attributes | |
static | $_indexedColors |
Static Private Member Functions | |
static | _getColourComponent ($RGB, $offset, $hex=TRUE) |
Get a specified colour component of an RGB value. More... | |
PHPExcel_Style_Color::__construct | ( | $pARGB = PHPExcel_Style_Color::COLOR_BLACK , |
|
$isSupervisor = FALSE , |
|||
$isConditional = FALSE |
|||
) |
Create a new PHPExcel_Style_Color.
string | $pARGB | ARGB value for the colour |
boolean | $isSupervisor | Flag indicating if this is a supervisor or not Leave this value at default unless you understand exactly what its ramifications are |
boolean | $isConditional | Flag indicating if this is a conditional style or not Leave this value at default unless you understand exactly what its ramifications are |
|
staticprivate |
Get a specified colour component of an RGB value.
string | $RGB | The colour as an RGB value (e.g. FF00CCCC or CCDDEE |
int | $offset | Position within the RGB value to extract |
boolean | $hex | Flag indicating whether the component should be returned as a hex or a decimal value |
PHPExcel_Style_Color::applyFromArray | ( | $pStyles = NULL | ) |
Apply styles from array.
$objPHPExcel->getActiveSheet()->getStyle('B2')->getFont()->getColor()->applyFromArray( array('rgb' => '808080') );
array | $pStyles | Array containing style information |
PHPExcel_Exception |
Definition at line 160 of file Color.php.
References PHPExcel_Style_Supervisor\getActiveSheet(), PHPExcel_Style_Supervisor\getSelectedCells(), getStyleArray(), setARGB(), and setRGB().
PHPExcel_Style_Color::bindParent | ( | $parent, | |
$parentPropertyName = NULL |
|||
) |
Bind parent.
Only used for supervisor
mixed | $parent | |
string | $parentPropertyName |
|
static |
Adjust the brightness of a color.
string | $hex | The colour as an RGBA or RGB value (e.g. FF00CCCC or CCDDEE) |
float | $adjustPercentage | The percentage by which to adjust the colour as a float from -1 to 1 |
Definition at line 300 of file Color.php.
References $blue, $green, and $red.
Referenced by PHPExcel_Reader_Excel2007\_readColor().
PHPExcel_Style_Color::getARGB | ( | ) |
Get ARGB.
Definition at line 183 of file Color.php.
References $_argb, and getSharedComponent().
|
static |
Get the blue colour component of an RGB value.
string | $RGB | The colour as an RGB value (e.g. FF00CCCC or CCDDEE |
boolean | $hex | Flag indicating whether the component should be returned as a hex or a decimal value |
|
static |
Get the green colour component of an RGB value.
string | $RGB | The colour as an RGB value (e.g. FF00CCCC or CCDDEE |
boolean | $hex | Flag indicating whether the component should be returned as a hex or a decimal value |
PHPExcel_Style_Color::getHashCode | ( | ) |
Get hash code.
Implements PHPExcel_IComparable.
Definition at line 419 of file Color.php.
References getSharedComponent().
|
static |
Get the red colour component of an RGB value.
string | $RGB | The colour as an RGB value (e.g. FF00CCCC or CCDDEE |
boolean | $hex | Flag indicating whether the component should be returned as a hex or a decimal value |
PHPExcel_Style_Color::getRGB | ( | ) |
Get RGB.
Definition at line 214 of file Color.php.
References getSharedComponent().
PHPExcel_Style_Color::getSharedComponent | ( | ) |
Get the shared style component for the currently active cell in currently active sheet.
Only used for style supervisor
Definition at line 114 of file Color.php.
Referenced by getARGB(), getHashCode(), and getRGB().
PHPExcel_Style_Color::getStyleArray | ( | $array | ) |
|
static |
Get indexed color.
int | $pIndex | Index entry point into the colour array |
boolean | $background | Flag to indicate whether default background or foreground colour should be returned if the indexed colour doesn't exist |
Definition at line 338 of file Color.php.
References array.
Referenced by PHPExcel_Reader_Excel2007_Chart\_readColor(), and PHPExcel_Reader_Excel2007\_readColor().
PHPExcel_Style_Color::setARGB | ( | $pValue = PHPExcel_Style_Color::COLOR_BLACK | ) |
Set ARGB.
string | $pValue |
Definition at line 196 of file Color.php.
References array, COLOR_BLACK, PHPExcel_Style_Supervisor\getActiveSheet(), PHPExcel_Style_Supervisor\getSelectedCells(), and getStyleArray().
Referenced by applyFromArray().
PHPExcel_Style_Color::setRGB | ( | $pValue = '000000' | ) |
Set RGB.
string | $pValue | RGB value |
Definition at line 227 of file Color.php.
References array, PHPExcel_Style_Supervisor\getActiveSheet(), PHPExcel_Style_Supervisor\getSelectedCells(), and getStyleArray().
Referenced by applyFromArray().
|
protected |
const PHPExcel_Style_Color::COLOR_BLACK = 'FF000000' |
Definition at line 39 of file Color.php.
Referenced by PHPExcel_Style_Border\__construct(), PHPExcel_Style_Fill\__construct(), PHPExcel_Worksheet_Drawing_Shadow\__construct(), PHPExcel_Style_Font\__construct(), PHPExcel_Writer_Excel5_Worksheet\_writeCFRule(), and setARGB().
const PHPExcel_Style_Color::COLOR_WHITE = 'FFFFFFFF' |
Definition at line 40 of file Color.php.
Referenced by PHPExcel_Style_Fill\__construct().