You are here

public function PHPExcel_Chart_GridLines::setShadowProperties in Loft Data Grids 7.2

Same name and namespace in other branches
  1. 6.2 vendor/phpoffice/phpexcel/Classes/PHPExcel/Chart/GridLines.php \PHPExcel_Chart_GridLines::setShadowProperties()

Set Shadow Properties

Parameters

int $sh_presets:

string $sh_color_value:

string $sh_color_type:

int $sh_color_alpha:

string $sh_blur:

int $sh_angle:

float $sh_distance:

File

vendor/phpoffice/phpexcel/Classes/PHPExcel/Chart/GridLines.php, line 291

Class

PHPExcel_Chart_GridLines
Created by PhpStorm. User: Wiktor Trzonkowski Date: 7/2/14 Time: 2:36 PM

Code

public function setShadowProperties($sh_presets, $sh_color_value = NULL, $sh_color_type = NULL, $sh_color_alpha = NULL, $sh_blur = NULL, $sh_angle = NULL, $sh_distance = NULL) {
  $this
    ->_activateObject()
    ->_setShadowPresetsProperties((int) $sh_presets)
    ->_setShadowColor(is_null($sh_color_value) ? $this->_shadow_properties['color']['value'] : $sh_color_value, is_null($sh_color_alpha) ? (int) $this->_shadow_properties['color']['alpha'] : $this
    ->getTrueAlpha($sh_color_alpha), is_null($sh_color_type) ? $this->_shadow_properties['color']['type'] : $sh_color_type)
    ->_setShadowBlur($sh_blur)
    ->_setShadowAngle($sh_angle)
    ->_setShadowDistance($sh_distance);
}