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

Created by PhpStorm. More...

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

Public Member Functions

 setAxisNumberProperties ($format_code)
 Get Series Data Type. More...
 
 getAxisNumberFormat ()
 Get Axis Number Format Data Type. More...
 
 getAxisNumberSourceLinked ()
 Get Axis Number Source Linked. More...
 
 setAxisOptionsProperties ($axis_labels, $horizontal_crosses_value=null, $horizontal_crosses=null, $axis_orientation=null, $major_tmt=null, $minor_tmt=null, $minimum=null, $maximum=null, $major_unit=null, $minor_unit=null)
 Set Axis Options Properties. More...
 
 getAxisOptionsProperty ($property)
 Get Axis Options Property. More...
 
 setAxisOrientation ($orientation)
 Set Axis Orientation Property. More...
 
 setFillParameters ($color, $alpha=0, $type=self::EXCEL_COLOR_TYPE_ARGB)
 Set Fill Property. More...
 
 setLineParameters ($color, $alpha=0, $type=self::EXCEL_COLOR_TYPE_ARGB)
 Set Line Property. More...
 
 getFillProperty ($property)
 Get Fill Property. More...
 
 getLineProperty ($property)
 Get Line Property. 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 Style Properties. More...
 
 getLineStyleProperty ($elements)
 Get Line Style Property. More...
 
 getLineStyleArrowWidth ($arrow)
 Get Line Style Arrow Excel Width. More...
 
 getLineStyleArrowLength ($arrow)
 Get Line Style Arrow Excel Length. 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...
 
 setGlowProperties ($size, $color_value=null, $color_alpha=null, $color_type=null)
 Set Glow Properties. More...
 
 getGlowProperty ($property)
 Get Glow Property. More...
 
 setSoftEdges ($size)
 Set Soft Edges Size. More...
 
 getSoftEdgesSize ()
 Get Soft Edges Size. More...
 

Private Member Functions

 setShadowPresetsProperties ($shadow_presets)
 Set Shadow Color. More...
 
 setShadowProperiesMapValues (array $properties_map, &$reference=null)
 Set Shadow Properties from Mapped 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...
 
 setGlowSize ($size)
 Set Glow Color. More...
 
 setGlowColor ($color, $alpha, $type)
 Set Glow Color. More...
 

Private Attributes

 $axisNumber
 
 $axisOptions
 
 $fillProperties
 
 $lineProperties
 
 $lineStyleProperties
 
 $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: 6/17/14 Time: 12:11 PM.

Definition at line 11 of file Axis.php.

Member Function Documentation

◆ getAxisNumberFormat()

PhpOffice\PhpSpreadsheet\Chart\Axis::getAxisNumberFormat ( )

Get Axis Number Format Data Type.

Returns
string

Definition at line 150 of file Axis.php.

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

151  {
152  return $this->axisNumber['format'];
153  }
+ Here is the caller graph for this function:

◆ getAxisNumberSourceLinked()

PhpOffice\PhpSpreadsheet\Chart\Axis::getAxisNumberSourceLinked ( )

Get Axis Number Source Linked.

Returns
string

Definition at line 160 of file Axis.php.

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

161  {
162  return (string) $this->axisNumber['source_linked'];
163  }
+ Here is the caller graph for this function:

◆ getAxisOptionsProperty()

PhpOffice\PhpSpreadsheet\Chart\Axis::getAxisOptionsProperty (   $property)

Get Axis Options Property.

Parameters
string$property
Returns
string

Definition at line 201 of file Axis.php.

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

202  {
203  return $this->axisOptions[$property];
204  }
+ Here is the caller graph for this function:

◆ getFillProperty()

PhpOffice\PhpSpreadsheet\Chart\Axis::getFillProperty (   $property)

Get Fill Property.

Parameters
string$property
Returns
string

Definition at line 247 of file Axis.php.

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

248  {
249  return $this->fillProperties[$property];
250  }
+ Here is the caller graph for this function:

◆ getGlowProperty()

PhpOffice\PhpSpreadsheet\Chart\Axis::getGlowProperty (   $property)

Get Glow Property.

Parameters
array | string$property
Returns
string

Definition at line 496 of file Axis.php.

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

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

497  {
498  return $this->getArrayElementsValue($this->glowProperties, $property);
499  }
getArrayElementsValue($properties, $elements)
Definition: Properties.php:356
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getLineProperty()

PhpOffice\PhpSpreadsheet\Chart\Axis::getLineProperty (   $property)

Get Line Property.

Parameters
string$property
Returns
string

Definition at line 259 of file Axis.php.

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

260  {
261  return $this->lineProperties[$property];
262  }
+ Here is the caller graph for this function:

◆ getLineStyleArrowLength()

PhpOffice\PhpSpreadsheet\Chart\Axis::getLineStyleArrowLength (   $arrow)

Get Line Style Arrow Excel Length.

Parameters
string$arrow
Returns
string

Definition at line 321 of file Axis.php.

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

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

322  {
323  return $this->getLineStyleArrowSize($this->lineStyleProperties['arrow'][$arrow]['size'], 'len');
324  }
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:

◆ getLineStyleArrowWidth()

PhpOffice\PhpSpreadsheet\Chart\Axis::getLineStyleArrowWidth (   $arrow)

Get Line Style Arrow Excel Width.

Parameters
string$arrow
Returns
string

Definition at line 309 of file Axis.php.

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

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

310  {
311  return $this->getLineStyleArrowSize($this->lineStyleProperties['arrow'][$arrow]['size'], 'w');
312  }
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\Axis::getLineStyleProperty (   $elements)

Get Line Style Property.

Parameters
array | string$elements
Returns
string

Definition at line 297 of file Axis.php.

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

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

298  {
299  return $this->getArrayElementsValue($this->lineStyleProperties, $elements);
300  }
getArrayElementsValue($properties, $elements)
Definition: Properties.php:356
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getShadowProperty()

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

Get Shadow Property.

Parameters
string|string[]$elements
Returns
null|array|int|string

Definition at line 466 of file Axis.php.

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

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

467  {
468  return $this->getArrayElementsValue($this->shadowProperties, $elements);
469  }
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\Axis::getSoftEdgesSize ( )

Get Soft Edges Size.

Returns
string

Definition at line 550 of file Axis.php.

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

551  {
552  return $this->softEdges['size'];
553  }
+ Here is the caller graph for this function:

◆ setAxisNumberProperties()

PhpOffice\PhpSpreadsheet\Chart\Axis::setAxisNumberProperties (   $format_code)

Get Series Data Type.

Parameters
mixed$format_code

Definition at line 139 of file Axis.php.

139  : void
140  {
141  $this->axisNumber['format'] = (string) $format_code;
142  $this->axisNumber['source_linked'] = 0;
143  }

◆ setAxisOptionsProperties()

PhpOffice\PhpSpreadsheet\Chart\Axis::setAxisOptionsProperties (   $axis_labels,
  $horizontal_crosses_value = null,
  $horizontal_crosses = null,
  $axis_orientation = null,
  $major_tmt = null,
  $minor_tmt = null,
  $minimum = null,
  $maximum = null,
  $major_unit = null,
  $minor_unit = null 
)

Set Axis Options Properties.

Parameters
string$axis_labels
string$horizontal_crosses_value
string$horizontal_crosses
string$axis_orientation
string$major_tmt
string$minor_tmt
string$minimum
string$maximum
string$major_unit
string$minor_unit

Definition at line 179 of file Axis.php.

179  : void
180  {
181  $this->axisOptions['axis_labels'] = (string) $axis_labels;
182  ($horizontal_crosses_value !== null) ? $this->axisOptions['horizontal_crosses_value'] = (string) $horizontal_crosses_value : null;
183  ($horizontal_crosses !== null) ? $this->axisOptions['horizontal_crosses'] = (string) $horizontal_crosses : null;
184  ($axis_orientation !== null) ? $this->axisOptions['orientation'] = (string) $axis_orientation : null;
185  ($major_tmt !== null) ? $this->axisOptions['major_tick_mark'] = (string) $major_tmt : null;
186  ($minor_tmt !== null) ? $this->axisOptions['minor_tick_mark'] = (string) $minor_tmt : null;
187  ($minor_tmt !== null) ? $this->axisOptions['minor_tick_mark'] = (string) $minor_tmt : null;
188  ($minimum !== null) ? $this->axisOptions['minimum'] = (string) $minimum : null;
189  ($maximum !== null) ? $this->axisOptions['maximum'] = (string) $maximum : null;
190  ($major_unit !== null) ? $this->axisOptions['major_unit'] = (string) $major_unit : null;
191  ($minor_unit !== null) ? $this->axisOptions['minor_unit'] = (string) $minor_unit : null;
192  }

◆ setAxisOrientation()

PhpOffice\PhpSpreadsheet\Chart\Axis::setAxisOrientation (   $orientation)

Set Axis Orientation Property.

Parameters
string$orientation

Definition at line 211 of file Axis.php.

211  : void
212  {
213  $this->axisOptions['orientation'] = (string) $orientation;
214  }

◆ setFillParameters()

PhpOffice\PhpSpreadsheet\Chart\Axis::setFillParameters (   $color,
  $alpha = 0,
  $type = self::EXCEL_COLOR_TYPE_ARGB 
)

Set Fill Property.

Parameters
string$color
int$alpha
string$type

Definition at line 223 of file Axis.php.

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

223  : void
224  {
225  $this->fillProperties = $this->setColorProperties($color, $alpha, $type);
226  }
$type
setColorProperties($color, $alpha, $type)
Definition: Properties.php:138
+ Here is the call graph for this function:

◆ setGlowColor()

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

Set Glow Color.

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

Definition at line 526 of file Axis.php.

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

527  {
528  $this->glowProperties['color'] = $this->setColorProperties($color, $alpha, $type);
529 
530  return $this;
531  }
$type
setColorProperties($color, $alpha, $type)
Definition: Properties.php:138
+ Here is the call graph for this function:

◆ setGlowProperties()

PhpOffice\PhpSpreadsheet\Chart\Axis::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 479 of file Axis.php.

References $size, and PhpOffice\PhpSpreadsheet\Chart\Axis\setGlowSize().

479  : void
480  {
481  $this->setGlowSize($size)
482  ->setGlowColor(
483  $color_value ?? $this->glowProperties['color']['value'],
484  $color_alpha ?? (int) $this->glowProperties['color']['alpha'],
485  $color_type ?? $this->glowProperties['color']['type']
486  );
487  }
$size
Definition: RandomTest.php:84
setGlowSize($size)
Set Glow Color.
Definition: Axis.php:508
+ Here is the call graph for this function:

◆ setGlowSize()

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

Set Glow Color.

Parameters
float$size
Returns
$this

Definition at line 508 of file Axis.php.

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

Referenced by PhpOffice\PhpSpreadsheet\Chart\Axis\setGlowProperties().

509  {
510  if ($size !== null) {
511  $this->glowProperties['size'] = $this->getExcelPointsWidth($size);
512  }
513 
514  return $this;
515  }
$size
Definition: RandomTest.php:84
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ setLineParameters()

PhpOffice\PhpSpreadsheet\Chart\Axis::setLineParameters (   $color,
  $alpha = 0,
  $type = self::EXCEL_COLOR_TYPE_ARGB 
)

Set Line Property.

Parameters
string$color
int$alpha
string$type

Definition at line 235 of file Axis.php.

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

235  : void
236  {
237  $this->lineProperties = $this->setColorProperties($color, $alpha, $type);
238  }
$type
setColorProperties($color, $alpha, $type)
Definition: Properties.php:138
+ Here is the call graph for this function:

◆ setLineStyleProperties()

PhpOffice\PhpSpreadsheet\Chart\Axis::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 Style 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 277 of file Axis.php.

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

277  : void
278  {
279  ($line_width !== null) ? $this->lineStyleProperties['width'] = $this->getExcelPointsWidth((float) $line_width) : null;
280  ($compound_type !== null) ? $this->lineStyleProperties['compound'] = (string) $compound_type : null;
281  ($dash_type !== null) ? $this->lineStyleProperties['dash'] = (string) $dash_type : null;
282  ($cap_type !== null) ? $this->lineStyleProperties['cap'] = (string) $cap_type : null;
283  ($join_type !== null) ? $this->lineStyleProperties['join'] = (string) $join_type : null;
284  ($head_arrow_type !== null) ? $this->lineStyleProperties['arrow']['head']['type'] = (string) $head_arrow_type : null;
285  ($head_arrow_size !== null) ? $this->lineStyleProperties['arrow']['head']['size'] = (string) $head_arrow_size : null;
286  ($end_arrow_type !== null) ? $this->lineStyleProperties['arrow']['end']['type'] = (string) $end_arrow_type : null;
287  ($end_arrow_size !== null) ? $this->lineStyleProperties['arrow']['end']['size'] = (string) $end_arrow_size : null;
288  }
+ Here is the call graph for this function:

◆ setShadowAngle()

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

Set Shadow Angle.

Parameters
int$angle
Returns
$this

Definition at line 434 of file Axis.php.

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

435  {
436  if ($angle !== null) {
437  $this->shadowProperties['direction'] = (string) $this->getExcelPointsAngle($angle);
438  }
439 
440  return $this;
441  }
$angle
+ Here is the call graph for this function:

◆ setShadowBlur()

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

Set Shadow Blur.

Parameters
float$blur
Returns
$this

Definition at line 418 of file Axis.php.

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

419  {
420  if ($blur !== null) {
421  $this->shadowProperties['blur'] = (string) $this->getExcelPointsWidth($blur);
422  }
423 
424  return $this;
425  }
+ Here is the call graph for this function:

◆ setShadowColor()

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

Set Shadow Color.

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

Definition at line 404 of file Axis.php.

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

405  {
406  $this->shadowProperties['color'] = $this->setColorProperties($color, $alpha, $type);
407 
408  return $this;
409  }
$type
setColorProperties($color, $alpha, $type)
Definition: Properties.php:138
+ Here is the call graph for this function:

◆ setShadowDistance()

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

Set Shadow Distance.

Parameters
float$distance
Returns
$this

Definition at line 450 of file Axis.php.

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

451  {
452  if ($distance !== null) {
453  $this->shadowProperties['distance'] = (string) $this->getExcelPointsWidth($distance);
454  }
455 
456  return $this;
457  }
+ Here is the call graph for this function:

◆ setShadowPresetsProperties()

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

Set Shadow Color.

Parameters
int$shadow_presets
Returns
$this

Definition at line 357 of file Axis.php.

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

Referenced by PhpOffice\PhpSpreadsheet\Chart\Axis\setShadowProperties().

358  {
359  $this->shadowProperties['presets'] = $shadow_presets;
360  $this->setShadowProperiesMapValues($this->getShadowPresetsMap($shadow_presets));
361 
362  return $this;
363  }
getShadowPresetsMap($shadow_presets_option)
Definition: Properties.php:164
setShadowProperiesMapValues(array $properties_map, &$reference=null)
Set Shadow Properties from Mapped Values.
Definition: Axis.php:372
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ setShadowProperiesMapValues()

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

Set Shadow Properties from Mapped Values.

Parameters
mixed$reference
Returns
$this

Definition at line 372 of file Axis.php.

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

373  {
374  $base_reference = $reference;
375  foreach ($properties_map as $property_key => $property_val) {
376  if (is_array($property_val)) {
377  if ($reference === null) {
378  $reference = &$this->shadowProperties[$property_key];
379  } else {
380  $reference = &$reference[$property_key];
381  }
382  $this->setShadowProperiesMapValues($property_val, $reference);
383  } else {
384  if ($base_reference === null) {
385  $this->shadowProperties[$property_key] = $property_val;
386  } else {
387  $reference[$property_key] = $property_val;
388  }
389  }
390  }
391 
392  return $this;
393  }
setShadowProperiesMapValues(array $properties_map, &$reference=null)
Set Shadow Properties from Mapped Values.
Definition: Axis.php:372
+ Here is the caller graph for this function:

◆ setShadowProperties()

PhpOffice\PhpSpreadsheet\Chart\Axis::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
string$sh_color_alpha
float$sh_blur
int$sh_angle
float$sh_distance

Definition at line 337 of file Axis.php.

References PhpOffice\PhpSpreadsheet\Chart\Axis\setShadowPresetsProperties().

337  : void
338  {
339  $this->setShadowPresetsProperties((int) $sh_presets)
340  ->setShadowColor(
341  $sh_color_value ?? $this->shadowProperties['color']['value'],
342  $sh_color_alpha ?? (int) $this->shadowProperties['color']['alpha'],
343  $sh_color_type ?? $this->shadowProperties['color']['type']
344  )
345  ->setShadowBlur($sh_blur)
346  ->setShadowAngle($sh_angle)
347  ->setShadowDistance($sh_distance);
348  }
setShadowPresetsProperties($shadow_presets)
Set Shadow Color.
Definition: Axis.php:357
+ Here is the call graph for this function:

◆ setSoftEdges()

PhpOffice\PhpSpreadsheet\Chart\Axis::setSoftEdges (   $size)

Set Soft Edges Size.

Parameters
float$size

Definition at line 538 of file Axis.php.

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

538  : void
539  {
540  if ($size !== null) {
541  $softEdges['size'] = (string) $this->getExcelPointsWidth($size);
542  }
543  }
$size
Definition: RandomTest.php:84
+ Here is the call graph for this function:

Field Documentation

◆ $axisNumber

PhpOffice\PhpSpreadsheet\Chart\Axis::$axisNumber
private
Initial value:
= [
'format' => self::FORMAT_CODE_GENERAL

Definition at line 18 of file Axis.php.

◆ $axisOptions

PhpOffice\PhpSpreadsheet\Chart\Axis::$axisOptions
private
Initial value:
= [
'minimum' => null

Definition at line 28 of file Axis.php.

◆ $fillProperties

PhpOffice\PhpSpreadsheet\Chart\Axis::$fillProperties
private
Initial value:
= [
'type' => self::EXCEL_COLOR_TYPE_ARGB

Definition at line 46 of file Axis.php.

◆ $glowProperties

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

Definition at line 116 of file Axis.php.

◆ $lineProperties

PhpOffice\PhpSpreadsheet\Chart\Axis::$lineProperties
private
Initial value:
= [
'type' => self::EXCEL_COLOR_TYPE_ARGB

Definition at line 57 of file Axis.php.

◆ $lineStyleProperties

PhpOffice\PhpSpreadsheet\Chart\Axis::$lineStyleProperties
private
Initial value:
= [
'width' => '9525'

Definition at line 68 of file Axis.php.

◆ $shadowProperties

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

Definition at line 91 of file Axis.php.

◆ $softEdges

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

Definition at line 130 of file Axis.php.

Referenced by PhpOffice\PhpSpreadsheet\Chart\Axis\setSoftEdges().


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