|
ILIAS
release_5-2 Revision v5.2.25-18-g3f80b828510
|
Inheritance diagram for PHPExcel_Style_Color:
Collaboration diagram for PHPExcel_Style_Color: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... | |
| getHashCode () | |
| Get hash code. 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 |
Definition at line 83 of file Color.php.
|
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 |
Definition at line 250 of file Color.php.
Referenced by getBlue(), getGreen(), and getRed().
Here is the caller graph for this function:| 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().
Here is the call graph for this function:| PHPExcel_Style_Color::bindParent | ( | $parent, | |
$parentPropertyName = NULL |
|||
| ) |
Bind parent.
Only used for supervisor
| mixed | $parent | |
| string | $parentPropertyName |
Reimplemented from PHPExcel_Style_Supervisor.
Definition at line 101 of file Color.php.
|
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, $red, getBlue(), getGreen(), and getRed().
Referenced by PHPExcel_Reader_Excel2007\_readColor().
Here is the call graph for this function:
Here is the caller graph for this function:| PHPExcel_Style_Color::getARGB | ( | ) |
Get ARGB.
Definition at line 183 of file Color.php.
References $_argb, and getSharedComponent().
Here is the call graph for this function:
|
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 |
Definition at line 289 of file Color.php.
References _getColourComponent().
Referenced by changeBrightness().
Here is the call graph for this function:
Here is the caller graph for this function:
|
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 |
Definition at line 277 of file Color.php.
References _getColourComponent().
Referenced by changeBrightness().
Here is the call graph for this function:
Here is the caller graph for this function:| PHPExcel_Style_Color::getHashCode | ( | ) |
Get hash code.
Implements PHPExcel_IComparable.
Definition at line 419 of file Color.php.
References getSharedComponent().
Here is the call graph for this function:
|
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 |
Definition at line 265 of file Color.php.
References _getColourComponent().
Referenced by changeBrightness().
Here is the call graph for this function:
Here is the caller graph for this function:| PHPExcel_Style_Color::getRGB | ( | ) |
Get RGB.
Definition at line 214 of file Color.php.
References getSharedComponent().
Here is the call graph for this function:| 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().
Here is the caller graph for this function:| PHPExcel_Style_Color::getStyleArray | ( | $array | ) |
Build style array from subcomponents.
| array | $array |
Definition at line 132 of file Color.php.
Referenced by applyFromArray(), setARGB(), and setRGB().
Here is the caller graph for this function:
|
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.
Referenced by PHPExcel_Reader_Excel2007\_readColor(), and PHPExcel_Reader_Excel2007_Chart\_readColor().
Here is the caller graph for this function:| PHPExcel_Style_Color::setARGB | ( | $pValue = PHPExcel_Style_Color::COLOR_BLACK | ) |
Set ARGB.
| string | $pValue |
Definition at line 196 of file Color.php.
References COLOR_BLACK, PHPExcel_Style_Supervisor\getActiveSheet(), PHPExcel_Style_Supervisor\getSelectedCells(), and getStyleArray().
Referenced by applyFromArray().
Here is the call graph for this function:
Here is the caller graph for this function:| PHPExcel_Style_Color::setRGB | ( | $pValue = '000000' | ) |
Set RGB.
| string | $pValue | RGB value |
Definition at line 227 of file Color.php.
References PHPExcel_Style_Supervisor\getActiveSheet(), PHPExcel_Style_Supervisor\getSelectedCells(), and getStyleArray().
Referenced by applyFromArray().
Here is the call graph for this function:
Here is the caller graph for this function:
|
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_Style_Font\__construct(), PHPExcel_Worksheet_Drawing_Shadow\__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().