ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
PhpOffice\PhpSpreadsheet\Chart\GridLines Class Reference

Created by PhpStorm. More...

+ Inheritance diagram for PhpOffice\PhpSpreadsheet\Chart\GridLines:
+ Collaboration diagram for PhpOffice\PhpSpreadsheet\Chart\GridLines:

Public Member Functions

 getObjectState ()
 Get Object State. More...
 
 setLineColorProperties ($value, $alpha=0, $type=self::EXCEL_COLOR_TYPE_STANDARD)
 Set Line Color Properties. More...
 
 setLineStyleProperties ($line_width=null, $compound_type=null, $dash_type=null, $cap_type=null, $join_type=null, $head_arrow_type=null, $head_arrow_size=null, $end_arrow_type=null, $end_arrow_size=null)
 Set Line Color Properties. More...
 
 getLineColorProperty ($parameter)
 Get Line Color Property. More...
 
 getLineStyleProperty ($elements)
 Get Line Style Property. More...
 
 setGlowProperties ($size, $color_value=null, $color_alpha=null, $color_type=null)
 Set Glow Properties. More...
 
 getGlowColor ($property)
 Get Glow Color Property. More...
 
 getGlowSize ()
 Get Glow Size. More...
 
 getLineStyleArrowParameters ($arrow_selector, $property_selector)
 Get Line Style Arrow Parameters. More...
 
 setShadowProperties ($sh_presets, $sh_color_value=null, $sh_color_type=null, $sh_color_alpha=null, $sh_blur=null, $sh_angle=null, $sh_distance=null)
 Set Shadow Properties. More...
 
 getShadowProperty ($elements)
 Get Shadow Property. More...
 
 setSoftEdgesSize ($size)
 Set Soft Edges Size. More...
 
 getSoftEdgesSize ()
 Get Soft Edges Size. More...
 

Private Member Functions

 activateObject ()
 Change Object State to True. More...
 
 setGlowSize ($size)
 Set Glow Size. More...
 
 setGlowColor ($color, $alpha, $type)
 Set Glow Color. More...
 
 setShadowPresetsProperties ($shadow_presets)
 Set Shadow Presets Properties. More...
 
 setShadowProperiesMapValues (array $properties_map, &$reference=null)
 Set Shadow Properties Values. More...
 
 setShadowColor ($color, $alpha, $type)
 Set Shadow Color. More...
 
 setShadowBlur ($blur)
 Set Shadow Blur. More...
 
 setShadowAngle ($angle)
 Set Shadow Angle. More...
 
 setShadowDistance ($distance)
 Set Shadow Distance. More...
 

Private Attributes

 $objectState = false
 
 $lineProperties
 
 $shadowProperties
 
 $glowProperties
 
 $softEdges
 

Additional Inherited Members

- Data Fields inherited from PhpOffice\PhpSpreadsheet\Chart\Properties
const EXCEL_COLOR_TYPE_STANDARD = 'prstClr'
 
const EXCEL_COLOR_TYPE_SCHEME = 'schemeClr'
 
const EXCEL_COLOR_TYPE_ARGB = 'srgbClr'
 
const AXIS_LABELS_LOW = 'low'
 
const AXIS_LABELS_HIGH = 'high'
 
const AXIS_LABELS_NEXT_TO = 'nextTo'
 
const AXIS_LABELS_NONE = 'none'
 
const TICK_MARK_NONE = 'none'
 
const TICK_MARK_INSIDE = 'in'
 
const TICK_MARK_OUTSIDE = 'out'
 
const TICK_MARK_CROSS = 'cross'
 
const HORIZONTAL_CROSSES_AUTOZERO = 'autoZero'
 
const HORIZONTAL_CROSSES_MAXIMUM = 'max'
 
const FORMAT_CODE_GENERAL = 'General'
 
const FORMAT_CODE_NUMBER = '#,##0.00'
 
const FORMAT_CODE_CURRENCY = '$#,##0.00'
 
const FORMAT_CODE_ACCOUNTING = '_($* #,##0.00_);_($* (#,##0.00);_($* "-"??_);_(@_)'
 
const FORMAT_CODE_DATE = 'm/d/yyyy'
 
const FORMAT_CODE_TIME = '[$-F400]h:mm:ss AM/PM'
 
const FORMAT_CODE_PERCENTAGE = '0.00%'
 
const FORMAT_CODE_FRACTION = '# ?/?'
 
const FORMAT_CODE_SCIENTIFIC = '0.00E+00'
 
const FORMAT_CODE_TEXT = '@'
 
const FORMAT_CODE_SPECIAL = '00000'
 
const ORIENTATION_NORMAL = 'minMax'
 
const ORIENTATION_REVERSED = 'maxMin'
 
const LINE_STYLE_COMPOUND_SIMPLE = 'sng'
 
const LINE_STYLE_COMPOUND_DOUBLE = 'dbl'
 
const LINE_STYLE_COMPOUND_THICKTHIN = 'thickThin'
 
const LINE_STYLE_COMPOUND_THINTHICK = 'thinThick'
 
const LINE_STYLE_COMPOUND_TRIPLE = 'tri'
 
const LINE_STYLE_DASH_SOLID = 'solid'
 
const LINE_STYLE_DASH_ROUND_DOT = 'sysDot'
 
const LINE_STYLE_DASH_SQUERE_DOT = 'sysDash'
 
const LINE_STYPE_DASH_DASH = 'dash'
 
const LINE_STYLE_DASH_DASH_DOT = 'dashDot'
 
const LINE_STYLE_DASH_LONG_DASH = 'lgDash'
 
const LINE_STYLE_DASH_LONG_DASH_DOT = 'lgDashDot'
 
const LINE_STYLE_DASH_LONG_DASH_DOT_DOT = 'lgDashDotDot'
 
const LINE_STYLE_CAP_SQUARE = 'sq'
 
const LINE_STYLE_CAP_ROUND = 'rnd'
 
const LINE_STYLE_CAP_FLAT = 'flat'
 
const LINE_STYLE_JOIN_ROUND = 'bevel'
 
const LINE_STYLE_JOIN_MITER = 'miter'
 
const LINE_STYLE_JOIN_BEVEL = 'bevel'
 
const LINE_STYLE_ARROW_TYPE_NOARROW = null
 
const LINE_STYLE_ARROW_TYPE_ARROW = 'triangle'
 
const LINE_STYLE_ARROW_TYPE_OPEN = 'arrow'
 
const LINE_STYLE_ARROW_TYPE_STEALTH = 'stealth'
 
const LINE_STYLE_ARROW_TYPE_DIAMOND = 'diamond'
 
const LINE_STYLE_ARROW_TYPE_OVAL = 'oval'
 
const LINE_STYLE_ARROW_SIZE_1 = 1
 
const LINE_STYLE_ARROW_SIZE_2 = 2
 
const LINE_STYLE_ARROW_SIZE_3 = 3
 
const LINE_STYLE_ARROW_SIZE_4 = 4
 
const LINE_STYLE_ARROW_SIZE_5 = 5
 
const LINE_STYLE_ARROW_SIZE_6 = 6
 
const LINE_STYLE_ARROW_SIZE_7 = 7
 
const LINE_STYLE_ARROW_SIZE_8 = 8
 
const LINE_STYLE_ARROW_SIZE_9 = 9
 
const SHADOW_PRESETS_NOSHADOW = null
 
const SHADOW_PRESETS_OUTER_BOTTTOM_RIGHT = 1
 
const SHADOW_PRESETS_OUTER_BOTTOM = 2
 
const SHADOW_PRESETS_OUTER_BOTTOM_LEFT = 3
 
const SHADOW_PRESETS_OUTER_RIGHT = 4
 
const SHADOW_PRESETS_OUTER_CENTER = 5
 
const SHADOW_PRESETS_OUTER_LEFT = 6
 
const SHADOW_PRESETS_OUTER_TOP_RIGHT = 7
 
const SHADOW_PRESETS_OUTER_TOP = 8
 
const SHADOW_PRESETS_OUTER_TOP_LEFT = 9
 
const SHADOW_PRESETS_INNER_BOTTTOM_RIGHT = 10
 
const SHADOW_PRESETS_INNER_BOTTOM = 11
 
const SHADOW_PRESETS_INNER_BOTTOM_LEFT = 12
 
const SHADOW_PRESETS_INNER_RIGHT = 13
 
const SHADOW_PRESETS_INNER_CENTER = 14
 
const SHADOW_PRESETS_INNER_LEFT = 15
 
const SHADOW_PRESETS_INNER_TOP_RIGHT = 16
 
const SHADOW_PRESETS_INNER_TOP = 17
 
const SHADOW_PRESETS_INNER_TOP_LEFT = 18
 
const SHADOW_PRESETS_PERSPECTIVE_BELOW = 19
 
const SHADOW_PRESETS_PERSPECTIVE_UPPER_RIGHT = 20
 
const SHADOW_PRESETS_PERSPECTIVE_UPPER_LEFT = 21
 
const SHADOW_PRESETS_PERSPECTIVE_LOWER_RIGHT = 22
 
const SHADOW_PRESETS_PERSPECTIVE_LOWER_LEFT = 23
 
- Protected Member Functions inherited from PhpOffice\PhpSpreadsheet\Chart\Properties
 getExcelPointsWidth ($width)
 
 getExcelPointsAngle ($angle)
 
 getTrueAlpha ($alpha)
 
 setColorProperties ($color, $alpha, $type)
 
 getLineStyleArrowSize ($array_selector, $array_kay_selector)
 
 getShadowPresetsMap ($shadow_presets_option)
 
 getArrayElementsValue ($properties, $elements)
 

Detailed Description

Created by PhpStorm.

User: Wiktor Trzonkowski Date: 7/2/14 Time: 2:36 PM.

Definition at line 11 of file GridLines.php.

Member Function Documentation

◆ activateObject()

PhpOffice\PhpSpreadsheet\Chart\GridLines::activateObject ( )
private

Change Object State to True.

Returns
$this

Definition at line 96 of file GridLines.php.

Referenced by PhpOffice\PhpSpreadsheet\Chart\GridLines\setLineColorProperties(), PhpOffice\PhpSpreadsheet\Chart\GridLines\setLineStyleProperties(), PhpOffice\PhpSpreadsheet\Chart\GridLines\setShadowProperties(), and PhpOffice\PhpSpreadsheet\Chart\GridLines\setSoftEdgesSize().

97  {
98  $this->objectState = true;
99 
100  return $this;
101  }
+ Here is the caller graph for this function:

◆ getGlowColor()

PhpOffice\PhpSpreadsheet\Chart\GridLines::getGlowColor (   $property)

Get Glow Color Property.

Parameters
string$property
Returns
string

Definition at line 212 of file GridLines.php.

Referenced by PhpOffice\PhpSpreadsheet\Writer\Xlsx\Chart\writeValueAxis().

213  {
214  return $this->glowProperties['color'][$property];
215  }
+ Here is the caller graph for this function:

◆ getGlowSize()

PhpOffice\PhpSpreadsheet\Chart\GridLines::getGlowSize ( )

Get Glow Size.

Returns
string

Definition at line 222 of file GridLines.php.

Referenced by PhpOffice\PhpSpreadsheet\Writer\Xlsx\Chart\writeValueAxis().

223  {
224  return $this->glowProperties['size'];
225  }
+ Here is the caller graph for this function:

◆ getLineColorProperty()

PhpOffice\PhpSpreadsheet\Chart\GridLines::getLineColorProperty (   $parameter)

Get Line Color Property.

Parameters
string$parameter
Returns
string

Definition at line 172 of file GridLines.php.

Referenced by PhpOffice\PhpSpreadsheet\Writer\Xlsx\Chart\writeValueAxis().

173  {
174  return $this->lineProperties['color'][$parameter];
175  }
+ Here is the caller graph for this function:

◆ getLineStyleArrowParameters()

PhpOffice\PhpSpreadsheet\Chart\GridLines::getLineStyleArrowParameters (   $arrow_selector,
  $property_selector 
)

Get Line Style Arrow Parameters.

Parameters
string$arrow_selector
string$property_selector
Returns
string

Definition at line 273 of file GridLines.php.

References PhpOffice\PhpSpreadsheet\Chart\Properties\getLineStyleArrowSize().

Referenced by PhpOffice\PhpSpreadsheet\Writer\Xlsx\Chart\writeValueAxis().

274  {
275  return $this->getLineStyleArrowSize($this->lineProperties['style']['arrow'][$arrow_selector]['size'], $property_selector);
276  }
getLineStyleArrowSize($array_selector, $array_kay_selector)
Definition: Properties.php:147
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getLineStyleProperty()

PhpOffice\PhpSpreadsheet\Chart\GridLines::getLineStyleProperty (   $elements)

Get Line Style Property.

Parameters
array | string$elements
Returns
string

Definition at line 184 of file GridLines.php.

References PhpOffice\PhpSpreadsheet\Chart\Properties\getArrayElementsValue().

Referenced by PhpOffice\PhpSpreadsheet\Writer\Xlsx\Chart\writeValueAxis().

185  {
186  return $this->getArrayElementsValue($this->lineProperties['style'], $elements);
187  }
getArrayElementsValue($properties, $elements)
Definition: Properties.php:356
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getObjectState()

PhpOffice\PhpSpreadsheet\Chart\GridLines::getObjectState ( )

Get Object State.

Returns
bool

Definition at line 86 of file GridLines.php.

References PhpOffice\PhpSpreadsheet\Chart\GridLines\$objectState.

Referenced by PhpOffice\PhpSpreadsheet\Writer\Xlsx\Chart\writeValueAxis().

+ Here is the caller graph for this function:

◆ getShadowProperty()

PhpOffice\PhpSpreadsheet\Chart\GridLines::getShadowProperty (   $elements)

Get Shadow Property.

Parameters
string|string[]$elements
Returns
string

Definition at line 427 of file GridLines.php.

References PhpOffice\PhpSpreadsheet\Chart\Properties\getArrayElementsValue().

Referenced by PhpOffice\PhpSpreadsheet\Writer\Xlsx\Chart\writeValueAxis().

428  {
429  return $this->getArrayElementsValue($this->shadowProperties, $elements);
430  }
getArrayElementsValue($properties, $elements)
Definition: Properties.php:356
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getSoftEdgesSize()

PhpOffice\PhpSpreadsheet\Chart\GridLines::getSoftEdgesSize ( )

Get Soft Edges Size.

Returns
string

Definition at line 450 of file GridLines.php.

Referenced by PhpOffice\PhpSpreadsheet\Writer\Xlsx\Chart\writeValueAxis().

451  {
452  return $this->softEdges['size'];
453  }
+ Here is the caller graph for this function:

◆ setGlowColor()

PhpOffice\PhpSpreadsheet\Chart\GridLines::setGlowColor (   $color,
  $alpha,
  $type 
)
private

Set Glow Color.

Parameters
string$color
int$alpha
string$type
Returns
$this

Definition at line 250 of file GridLines.php.

References $type, and PhpOffice\PhpSpreadsheet\Chart\Properties\getTrueAlpha().

251  {
252  if ($color !== null) {
253  $this->glowProperties['color']['value'] = (string) $color;
254  }
255  if ($alpha !== null) {
256  $this->glowProperties['color']['alpha'] = $this->getTrueAlpha((int) $alpha);
257  }
258  if ($type !== null) {
259  $this->glowProperties['color']['type'] = (string) $type;
260  }
261 
262  return $this;
263  }
$type
+ Here is the call graph for this function:

◆ setGlowProperties()

PhpOffice\PhpSpreadsheet\Chart\GridLines::setGlowProperties (   $size,
  $color_value = null,
  $color_alpha = null,
  $color_type = null 
)

Set Glow Properties.

Parameters
float$size
string$color_value
int$color_alpha
string$color_type

Definition at line 197 of file GridLines.php.

References $size.

197  : void
198  {
199  $this
200  ->activateObject()
201  ->setGlowSize($size)
202  ->setGlowColor($color_value, $color_alpha, $color_type);
203  }
$size
Definition: RandomTest.php:84

◆ setGlowSize()

PhpOffice\PhpSpreadsheet\Chart\GridLines::setGlowSize (   $size)
private

Set Glow Size.

Parameters
float$size
Returns
$this

Definition at line 234 of file GridLines.php.

References $size, and PhpOffice\PhpSpreadsheet\Chart\Properties\getExcelPointsWidth().

235  {
236  $this->glowProperties['size'] = $this->getExcelPointsWidth((float) $size);
237 
238  return $this;
239  }
$size
Definition: RandomTest.php:84
+ Here is the call graph for this function:

◆ setLineColorProperties()

PhpOffice\PhpSpreadsheet\Chart\GridLines::setLineColorProperties (   $value,
  $alpha = 0,
  $type = self::EXCEL_COLOR_TYPE_STANDARD 
)

Set Line Color Properties.

Parameters
string$value
int$alpha
string$type

Definition at line 110 of file GridLines.php.

References $type, PhpOffice\PhpSpreadsheet\Chart\GridLines\activateObject(), and PhpOffice\PhpSpreadsheet\Chart\Properties\setColorProperties().

110  : void
111  {
112  $this->activateObject()
113  ->lineProperties['color'] = $this->setColorProperties(
114  $value,
115  $alpha,
116  $type
117  );
118  }
$type
activateObject()
Change Object State to True.
Definition: GridLines.php:96
setColorProperties($color, $alpha, $type)
Definition: Properties.php:138
+ Here is the call graph for this function:

◆ setLineStyleProperties()

PhpOffice\PhpSpreadsheet\Chart\GridLines::setLineStyleProperties (   $line_width = null,
  $compound_type = null,
  $dash_type = null,
  $cap_type = null,
  $join_type = null,
  $head_arrow_type = null,
  $head_arrow_size = null,
  $end_arrow_type = null,
  $end_arrow_size = null 
)

Set Line Color Properties.

Parameters
float$line_width
string$compound_type
string$dash_type
string$cap_type
string$join_type
string$head_arrow_type
string$head_arrow_size
string$end_arrow_type
string$end_arrow_size

Definition at line 133 of file GridLines.php.

References PhpOffice\PhpSpreadsheet\Chart\GridLines\activateObject(), and PhpOffice\PhpSpreadsheet\Chart\Properties\getExcelPointsWidth().

133  : void
134  {
135  $this->activateObject();
136  ($line_width !== null)
137  ? $this->lineProperties['style']['width'] = $this->getExcelPointsWidth((float) $line_width)
138  : null;
139  ($compound_type !== null)
140  ? $this->lineProperties['style']['compound'] = (string) $compound_type
141  : null;
142  ($dash_type !== null)
143  ? $this->lineProperties['style']['dash'] = (string) $dash_type
144  : null;
145  ($cap_type !== null)
146  ? $this->lineProperties['style']['cap'] = (string) $cap_type
147  : null;
148  ($join_type !== null)
149  ? $this->lineProperties['style']['join'] = (string) $join_type
150  : null;
151  ($head_arrow_type !== null)
152  ? $this->lineProperties['style']['arrow']['head']['type'] = (string) $head_arrow_type
153  : null;
154  ($head_arrow_size !== null)
155  ? $this->lineProperties['style']['arrow']['head']['size'] = (string) $head_arrow_size
156  : null;
157  ($end_arrow_type !== null)
158  ? $this->lineProperties['style']['arrow']['end']['type'] = (string) $end_arrow_type
159  : null;
160  ($end_arrow_size !== null)
161  ? $this->lineProperties['style']['arrow']['end']['size'] = (string) $end_arrow_size
162  : null;
163  }
activateObject()
Change Object State to True.
Definition: GridLines.php:96
+ Here is the call graph for this function:

◆ setShadowAngle()

PhpOffice\PhpSpreadsheet\Chart\GridLines::setShadowAngle (   $angle)
private

Set Shadow Angle.

Parameters
int$angle
Returns
$this

Definition at line 395 of file GridLines.php.

References $angle, and PhpOffice\PhpSpreadsheet\Chart\Properties\getExcelPointsAngle().

396  {
397  if ($angle !== null) {
398  $this->shadowProperties['direction'] = (string) $this->getExcelPointsAngle($angle);
399  }
400 
401  return $this;
402  }
$angle
+ Here is the call graph for this function:

◆ setShadowBlur()

PhpOffice\PhpSpreadsheet\Chart\GridLines::setShadowBlur (   $blur)
private

Set Shadow Blur.

Parameters
float$blur
Returns
$this

Definition at line 379 of file GridLines.php.

References PhpOffice\PhpSpreadsheet\Chart\Properties\getExcelPointsWidth().

380  {
381  if ($blur !== null) {
382  $this->shadowProperties['blur'] = (string) $this->getExcelPointsWidth($blur);
383  }
384 
385  return $this;
386  }
+ Here is the call graph for this function:

◆ setShadowColor()

PhpOffice\PhpSpreadsheet\Chart\GridLines::setShadowColor (   $color,
  $alpha,
  $type 
)
private

Set Shadow Color.

Parameters
string$color
int$alpha
string$type
Returns
$this

Definition at line 357 of file GridLines.php.

References $type, and PhpOffice\PhpSpreadsheet\Chart\Properties\getTrueAlpha().

358  {
359  if ($color !== null) {
360  $this->shadowProperties['color']['value'] = (string) $color;
361  }
362  if ($alpha !== null) {
363  $this->shadowProperties['color']['alpha'] = $this->getTrueAlpha((int) $alpha);
364  }
365  if ($type !== null) {
366  $this->shadowProperties['color']['type'] = (string) $type;
367  }
368 
369  return $this;
370  }
$type
+ Here is the call graph for this function:

◆ setShadowDistance()

PhpOffice\PhpSpreadsheet\Chart\GridLines::setShadowDistance (   $distance)
private

Set Shadow Distance.

Parameters
float$distance
Returns
$this

Definition at line 411 of file GridLines.php.

References PhpOffice\PhpSpreadsheet\Chart\Properties\getExcelPointsWidth().

412  {
413  if ($distance !== null) {
414  $this->shadowProperties['distance'] = (string) $this->getExcelPointsWidth($distance);
415  }
416 
417  return $this;
418  }
+ Here is the call graph for this function:

◆ setShadowPresetsProperties()

PhpOffice\PhpSpreadsheet\Chart\GridLines::setShadowPresetsProperties (   $shadow_presets)
private

Set Shadow Presets Properties.

Parameters
int$shadow_presets
Returns
$this

Definition at line 310 of file GridLines.php.

References PhpOffice\PhpSpreadsheet\Chart\Properties\getShadowPresetsMap(), and PhpOffice\PhpSpreadsheet\Chart\GridLines\setShadowProperiesMapValues().

311  {
312  $this->shadowProperties['presets'] = $shadow_presets;
313  $this->setShadowProperiesMapValues($this->getShadowPresetsMap($shadow_presets));
314 
315  return $this;
316  }
getShadowPresetsMap($shadow_presets_option)
Definition: Properties.php:164
setShadowProperiesMapValues(array $properties_map, &$reference=null)
Set Shadow Properties Values.
Definition: GridLines.php:325
+ Here is the call graph for this function:

◆ setShadowProperiesMapValues()

PhpOffice\PhpSpreadsheet\Chart\GridLines::setShadowProperiesMapValues ( array  $properties_map,
$reference = null 
)
private

Set Shadow Properties Values.

Parameters
mixed$reference
Returns
$this

Definition at line 325 of file GridLines.php.

Referenced by PhpOffice\PhpSpreadsheet\Chart\GridLines\setShadowPresetsProperties().

326  {
327  $base_reference = $reference;
328  foreach ($properties_map as $property_key => $property_val) {
329  if (is_array($property_val)) {
330  if ($reference === null) {
331  $reference = &$this->shadowProperties[$property_key];
332  } else {
333  $reference = &$reference[$property_key];
334  }
335  $this->setShadowProperiesMapValues($property_val, $reference);
336  } else {
337  if ($base_reference === null) {
338  $this->shadowProperties[$property_key] = $property_val;
339  } else {
340  $reference[$property_key] = $property_val;
341  }
342  }
343  }
344 
345  return $this;
346  }
setShadowProperiesMapValues(array $properties_map, &$reference=null)
Set Shadow Properties Values.
Definition: GridLines.php:325
+ Here is the caller graph for this function:

◆ setShadowProperties()

PhpOffice\PhpSpreadsheet\Chart\GridLines::setShadowProperties (   $sh_presets,
  $sh_color_value = null,
  $sh_color_type = null,
  $sh_color_alpha = null,
  $sh_blur = null,
  $sh_angle = null,
  $sh_distance = null 
)

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

Definition at line 289 of file GridLines.php.

References PhpOffice\PhpSpreadsheet\Chart\GridLines\activateObject(), and PhpOffice\PhpSpreadsheet\Chart\Properties\getTrueAlpha().

289  : void
290  {
291  $this->activateObject()
292  ->setShadowPresetsProperties((int) $sh_presets)
293  ->setShadowColor(
294  $sh_color_value ?? $this->shadowProperties['color']['value'],
295  $sh_color_alpha === null ? (int) $this->shadowProperties['color']['alpha'] : $this->getTrueAlpha($sh_color_alpha),
296  $sh_color_type ?? $this->shadowProperties['color']['type']
297  )
298  ->setShadowBlur($sh_blur)
299  ->setShadowAngle($sh_angle)
300  ->setShadowDistance($sh_distance);
301  }
activateObject()
Change Object State to True.
Definition: GridLines.php:96
+ Here is the call graph for this function:

◆ setSoftEdgesSize()

PhpOffice\PhpSpreadsheet\Chart\GridLines::setSoftEdgesSize (   $size)

Set Soft Edges Size.

Parameters
float$size

Definition at line 437 of file GridLines.php.

References $size, PhpOffice\PhpSpreadsheet\Chart\GridLines\activateObject(), and PhpOffice\PhpSpreadsheet\Chart\Properties\getExcelPointsWidth().

437  : void
438  {
439  if ($size !== null) {
440  $this->activateObject();
441  $this->softEdges['size'] = (string) $this->getExcelPointsWidth($size);
442  }
443  }
$size
Definition: RandomTest.php:84
activateObject()
Change Object State to True.
Definition: GridLines.php:96
+ Here is the call graph for this function:

Field Documentation

◆ $glowProperties

PhpOffice\PhpSpreadsheet\Chart\GridLines::$glowProperties
private
Initial value:
= [
'size' => null

Definition at line 68 of file GridLines.php.

◆ $lineProperties

PhpOffice\PhpSpreadsheet\Chart\GridLines::$lineProperties
private
Initial value:
= [
'color' => [
'type' => self::EXCEL_COLOR_TYPE_STANDARD

Definition at line 23 of file GridLines.php.

◆ $objectState

PhpOffice\PhpSpreadsheet\Chart\GridLines::$objectState = false
private

◆ $shadowProperties

PhpOffice\PhpSpreadsheet\Chart\GridLines::$shadowProperties
private
Initial value:
= [
'presets' => self::SHADOW_PRESETS_NOSHADOW

Definition at line 48 of file GridLines.php.

◆ $softEdges

PhpOffice\PhpSpreadsheet\Chart\GridLines::$softEdges
private
Initial value:
= [
'size' => null

Definition at line 77 of file GridLines.php.


The documentation for this class was generated from the following file: