|
ILIAS
eassessment Revision 61809
|
Inheritance diagram for PHPExcel_Style_Color:
Collaboration diagram for PHPExcel_Style_Color:Public Member Functions | |
| __construct ($pARGB=PHPExcel_Style_Color::COLOR_BLACK, $isSupervisor=false) | |
| Create a new PHPExcel_Style_Color. | |
| bindParent ($parent, $parentPropertyName) | |
| Bind parent. | |
| getIsSupervisor () | |
| Is this a supervisor or a real style component? | |
| getSharedComponent () | |
| Get the shared style component for the currently active cell in currently active sheet. | |
| getActiveSheet () | |
| Get the currently active sheet. | |
| getSelectedCells () | |
| Get the currently active cell coordinate in currently active sheet. | |
| getActiveCell () | |
| Get the currently active cell coordinate in currently active sheet. | |
| getStyleArray ($array) | |
| Build style array from subcomponents. | |
| applyFromArray ($pStyles=null) | |
| Apply styles from array. | |
| getARGB () | |
| Get ARGB. | |
| setARGB ($pValue=PHPExcel_Style_Color::COLOR_BLACK) | |
| Set ARGB. | |
| getRGB () | |
| Get RGB. | |
| setRGB ($pValue= '000000') | |
| Set RGB. | |
| getHashCode () | |
| Get hash code. | |
| __clone () | |
| Implement PHP __clone to create a deep clone, not just a shallow copy. | |
Static Public Member Functions | |
| static | getRed ($RGB, $hex=true) |
| static | getGreen ($RGB, $hex=true) |
| static | getBlue ($RGB, $hex=true) |
| static | changeBrightness ($hex, $adjustPercentage) |
| Adjust the brightness of a color. | |
| static | indexedColor ($pIndex, $background=false) |
| Get indexed color. | |
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' |
Static Private Member Functions | |
| static | _getColourComponent ($RGB, $offset, $hex=true) |
Private Attributes | |
| $_argb | |
| $_isSupervisor | |
| $_parent | |
| $_parentPropertyName | |
Static Private Attributes | |
| static | $_indexedColors |
| PHPExcel_Style_Color::__construct | ( | $pARGB = PHPExcel_Style_Color::COLOR_BLACK, |
|
$isSupervisor = false |
|||
| ) |
Create a new PHPExcel_Style_Color.
| string | $pARGB |
Definition at line 90 of file Color.php.
| PHPExcel_Style_Color::__clone | ( | ) |
|
staticprivate |
Definition at line 294 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 |
| Exception |
Definition at line 214 of file Color.php.
References getActiveSheet(), getSelectedCells(), getStyleArray(), setARGB(), and setRGB().
Here is the call graph for this function:| PHPExcel_Style_Color::bindParent | ( | $parent, | |
| $parentPropertyName | |||
| ) |
Bind parent.
Only used for supervisor
| mixed | $parent | |
| string | $parentPropertyName |
Definition at line 106 of file Color.php.
|
static |
Adjust the brightness of a color.
| string | $hex | The colour as an 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 332 of file Color.php.
References 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::getActiveCell | ( | ) |
Get the currently active cell coordinate in currently active sheet.
Only used for supervisor
Definition at line 173 of file Color.php.
References getActiveSheet().
Here is the call graph for this function:| PHPExcel_Style_Color::getActiveSheet | ( | ) |
Get the currently active sheet.
Only used for supervisor
Definition at line 151 of file Color.php.
Referenced by applyFromArray(), getActiveCell(), getSelectedCells(), setARGB(), and setRGB().
Here is the caller graph for this function:| PHPExcel_Style_Color::getARGB | ( | ) |
Get ARGB.
Definition at line 237 of file Color.php.
References $_argb, and getSharedComponent().
Here is the call graph for this function:
|
static |
Definition at line 317 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 |
Definition at line 309 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 453 of file Color.php.
References getSharedComponent().
Here is the call graph for this function:| PHPExcel_Style_Color::getIsSupervisor | ( | ) |
Is this a supervisor or a real style component?
Definition at line 118 of file Color.php.
References $_isSupervisor.
|
static |
Definition at line 301 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 268 of file Color.php.
References getSharedComponent().
Here is the call graph for this function:| PHPExcel_Style_Color::getSelectedCells | ( | ) |
Get the currently active cell coordinate in currently active sheet.
Only used for supervisor
Definition at line 162 of file Color.php.
References getActiveSheet().
Referenced by applyFromArray(), setARGB(), and setRGB().
Here is the call graph for this function:
Here is the caller 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 129 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 184 of file Color.php.
Referenced by applyFromArray(), setARGB(), and setRGB().
Here is the caller graph for this function:
|
static |
Get indexed color.
| int | $pIndex |
Definition at line 365 of file Color.php.
Referenced by PHPExcel_Reader_Excel2007\_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 250 of file Color.php.
References COLOR_BLACK, getActiveSheet(), 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 |
Definition at line 281 of file Color.php.
References getActiveSheet(), getSelectedCells(), and getStyleArray().
Referenced by applyFromArray().
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
|
private |
Definition at line 69 of file Color.php.
Referenced by getIsSupervisor().
| const PHPExcel_Style_Color::COLOR_BLACK = 'FF000000' |
Definition at line 39 of file Color.php.
Referenced by PHPExcel_Style_Border\__construct(), PHPExcel_Worksheet_Drawing_Shadow\__construct(), PHPExcel_Style_Fill\__construct(), PHPExcel_Style_Font\__construct(), and setARGB().
| const PHPExcel_Style_Color::COLOR_WHITE = 'FFFFFFFF' |
Definition at line 40 of file Color.php.
Referenced by PHPExcel_Style_Fill\__construct().