[ Index ]

PHP Cross Reference of moodle-2.8

title

Body

[close]

/lib/phpexcel/PHPExcel/Style/ -> Color.php (summary)

PHPExcel Copyright (c) 2006 - 2014 PHPExcel

Copyright: Copyright (c) 2006 - 2014 PHPExcel (http://www.codeplex.com/PHPExcel)
License: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL
Version: ##VERSION##, ##DATE##
File Size: 429 lines (13 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

PHPExcel_Style_Color:: (16 methods):
  __construct()
  bindParent()
  getSharedComponent()
  getStyleArray()
  applyFromArray()
  getARGB()
  setARGB()
  getRGB()
  setRGB()
  _getColourComponent()
  getRed()
  getGreen()
  getBlue()
  changeBrightness()
  indexedColor()
  getHashCode()


Class: PHPExcel_Style_Color  - X-Ref

PHPExcel_Style_Color

__construct($pARGB = PHPExcel_Style_Color::COLOR_BLACK, $isSupervisor = FALSE, $isConditional = FALSE)   X-Ref
Create a new PHPExcel_Style_Color

param: string    $pARGB            ARGB value for the colour
param: boolean    $isSupervisor    Flag indicating if this is a supervisor or not
param: boolean    $isConditional    Flag indicating if this is a conditional style or not

bindParent($parent, $parentPropertyName=NULL)   X-Ref
Bind parent. Only used for supervisor

param: mixed $parent
param: string $parentPropertyName
return: PHPExcel_Style_Color

getSharedComponent()   X-Ref
Get the shared style component for the currently active cell in currently active sheet.
Only used for style supervisor

return: PHPExcel_Style_Color

getStyleArray($array)   X-Ref
Build style array from subcomponents

param: array $array
return: array

applyFromArray($pStyles = NULL)   X-Ref
Apply styles from array

<code>
$objPHPExcel->getActiveSheet()->getStyle('B2')->getFont()->getColor()->applyFromArray( array('rgb' => '808080') );
</code>

param: array    $pStyles    Array containing style information
return: PHPExcel_Style_Color

getARGB()   X-Ref
Get ARGB

return: string

setARGB($pValue = PHPExcel_Style_Color::COLOR_BLACK)   X-Ref
Set ARGB

param: string $pValue
return: PHPExcel_Style_Color

getRGB()   X-Ref
Get RGB

return: string

setRGB($pValue = '000000')   X-Ref
Set RGB

param: string    $pValue    RGB value
return: PHPExcel_Style_Color

_getColourComponent($RGB,$offset,$hex=TRUE)   X-Ref
Get a specified colour component of an RGB value

param: string        $RGB        The colour as an RGB value (e.g. FF00CCCC or CCDDEE
param: int            $offset        Position within the RGB value to extract
param: boolean        $hex        Flag indicating whether the component should be returned as a hex or a
return: string        The extracted colour component

getRed($RGB,$hex=TRUE)   X-Ref
Get the red colour component of an RGB value

param: string        $RGB        The colour as an RGB value (e.g. FF00CCCC or CCDDEE
param: boolean        $hex        Flag indicating whether the component should be returned as a hex or a
return: string        The red colour component

getGreen($RGB,$hex=TRUE)   X-Ref
Get the green colour component of an RGB value

param: string        $RGB        The colour as an RGB value (e.g. FF00CCCC or CCDDEE
param: boolean        $hex        Flag indicating whether the component should be returned as a hex or a
return: string        The green colour component

getBlue($RGB,$hex=TRUE)   X-Ref
Get the blue colour component of an RGB value

param: string        $RGB        The colour as an RGB value (e.g. FF00CCCC or CCDDEE
param: boolean        $hex        Flag indicating whether the component should be returned as a hex or a
return: string        The blue colour component

changeBrightness($hex, $adjustPercentage)   X-Ref
Adjust the brightness of a color

param: string        $hex    The colour as an RGBA or RGB value (e.g. FF00CCCC or CCDDEE)
param: float        $adjustPercentage    The percentage by which to adjust the colour as a float from -1 to 1
return: string        The adjusted colour as an RGBA or RGB value (e.g. FF00CCCC or CCDDEE)

indexedColor($pIndex, $background=FALSE)   X-Ref
Get indexed color

param: int            $pIndex            Index entry point into the colour array
param: boolean        $background        Flag to indicate whether default background or foreground colour
return: PHPExcel_Style_Color

getHashCode()   X-Ref
Get hash code

return: string    Hash code



Generated: Fri Nov 28 20:29:05 2014 Cross-referenced by PHPXref 0.7.1