2 require_once
'Properties.php';
22 'format' => self::FORMAT_CODE_GENERAL,
37 'orientation' => self::ORIENTATION_NORMAL,
38 'minor_tick_mark' => self::TICK_MARK_NONE,
39 'major_tick_mark' => self::TICK_MARK_NONE,
40 'axis_labels' => self::AXIS_LABELS_NEXT_TO,
41 'horizontal_crosses' => self::HORIZONTAL_CROSSES_AUTOZERO,
42 'horizontal_crosses_value' => NULL
52 'type' => self::EXCEL_COLOR_TYPE_ARGB,
64 'type' => self::EXCEL_COLOR_TYPE_ARGB,
77 'compound' => self::LINE_STYLE_COMPOUND_SIMPLE,
78 'dash' => self::LINE_STYLE_DASH_SOLID,
79 'cap' => self::LINE_STYLE_CAP_FLAT,
80 'join' => self::LINE_STYLE_JOIN_BEVEL,
83 'type' => self::LINE_STYLE_ARROW_TYPE_NOARROW,
84 'size' => self::LINE_STYLE_ARROW_SIZE_5
87 'type' => self::LINE_STYLE_ARROW_TYPE_NOARROW,
88 'size' => self::LINE_STYLE_ARROW_SIZE_8
100 'presets' => self::SHADOW_PRESETS_NOSHADOW,
103 'type' => self::EXCEL_COLOR_TYPE_STANDARD,
116 'rotWithShape' => NULL
128 'type' => self::EXCEL_COLOR_TYPE_STANDARD,
151 $this->_axis_number[
'format'] = (
string) $format_code;
152 $this->_axis_number[
'source_linked'] = 0;
162 return $this->_axis_number[
'format'];
172 return (
string) $this->_axis_number[
'source_linked'];
192 $axis_orientation = NULL, $major_tmt = NULL, $minor_tmt = NULL, $minimum = NULL, $maximum = NULL, $major_unit = NULL,
193 $minor_unit = NULL) {
195 $this->_axis_options[
'axis_labels'] = (
string) $axis_labels;
196 ($horizontal_crosses_value !== NULL)
197 ? $this->_axis_options[
'horizontal_crosses_value'] = (
string) $horizontal_crosses_value : NULL;
198 ($horizontal_crosses !== NULL) ? $this->_axis_options[
'horizontal_crosses'] = (
string) $horizontal_crosses : NULL;
199 ($axis_orientation !== NULL) ? $this->_axis_options[
'orientation'] = (
string) $axis_orientation : NULL;
200 ($major_tmt !== NULL) ? $this->_axis_options[
'major_tick_mark'] = (
string) $major_tmt : NULL;
201 ($minor_tmt !== NULL) ? $this->_axis_options[
'minor_tick_mark'] = (
string) $minor_tmt : NULL;
202 ($minor_tmt !== NULL) ? $this->_axis_options[
'minor_tick_mark'] = (
string) $minor_tmt : NULL;
203 ($minimum !== NULL) ? $this->_axis_options[
'minimum'] = (
string) $minimum : NULL;
204 ($maximum !== NULL) ? $this->_axis_options[
'maximum'] = (
string) $maximum : NULL;
205 ($major_unit !== NULL) ? $this->_axis_options[
'major_unit'] = (
string) $major_unit : NULL;
206 ($minor_unit !== NULL) ? $this->_axis_options[
'minor_unit'] = (
string) $minor_unit : NULL;
218 return $this->_axis_options[$property];
229 $this->orientation = (
string) $orientation;
267 return $this->_fill_properties[$property];
279 return $this->_line_properties[$property];
298 $dash_type = NULL, $cap_type = NULL, $join_type = NULL, $head_arrow_type = NULL,
299 $head_arrow_size = NULL, $end_arrow_type = NULL, $end_arrow_size = NULL) {
301 (!is_null($line_width)) ? $this->_line_style_properties[
'width'] = $this->
getExcelPointsWidth((
float) $line_width)
303 (!is_null($compound_type)) ? $this->_line_style_properties[
'compound'] = (
string) $compound_type : NULL;
304 (!is_null($dash_type)) ? $this->_line_style_properties[
'dash'] = (
string) $dash_type : NULL;
305 (!is_null($cap_type)) ? $this->_line_style_properties[
'cap'] = (
string) $cap_type : NULL;
306 (!is_null($join_type)) ? $this->_line_style_properties[
'join'] = (
string) $join_type : NULL;
307 (!is_null($head_arrow_type)) ? $this->_line_style_properties[
'arrow'][
'head'][
'type'] = (
string) $head_arrow_type
309 (!is_null($head_arrow_size)) ? $this->_line_style_properties[
'arrow'][
'head'][
'size'] = (
string) $head_arrow_size
311 (!is_null($end_arrow_type)) ? $this->_line_style_properties[
'arrow'][
'end'][
'type'] = (
string) $end_arrow_type
313 (!is_null($end_arrow_size)) ? $this->_line_style_properties[
'arrow'][
'end'][
'size'] = (
string) $end_arrow_size
366 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) {
368 ->_setShadowPresetsProperties((
int) $sh_presets)
370 is_null($sh_color_value) ? $this->_shadow_properties[
'color'][
'value'] : $sh_color_value
371 , is_null($sh_color_alpha) ? (
int) $this->_shadow_properties[
'color'][
'alpha'] : $sh_color_alpha
372 , is_null($sh_color_type) ? $this->_shadow_properties[
'color'][
'type'] : $sh_color_type)
373 ->_setShadowBlur($sh_blur)
374 ->_setShadowAngle($sh_angle)
375 ->_setShadowDistance($sh_distance);
387 $this->_shadow_properties[
'presets'] = $shadow_presets;
403 $base_reference = $reference;
404 foreach ($properties_map as $property_key => $property_val) {
405 if (is_array($property_val)) {
406 if ($reference === NULL) {
407 $reference = & $this->_shadow_properties[$property_key];
409 $reference = & $reference[$property_key];
413 if ($base_reference === NULL) {
414 $this->_shadow_properties[$property_key] = $property_val;
416 $reference[$property_key] = $property_val;
435 $this->_shadow_properties[
'color'] = $this->
setColorProperties($color, $alpha, $type);
449 if ($blur !== NULL) {
481 if ($distance !== NULL) {
512 ->_setGlowSize(
$size)
514 is_null($color_value) ? $this->_glow_properties[
'color'][
'value'] : $color_value
515 , is_null($color_alpha) ? (
int) $this->_glow_properties[
'color'][
'alpha'] : $color_alpha
516 , is_null($color_type) ? $this->_glow_properties[
'color'][
'type'] : $color_type);
540 if (!is_null(
$size)) {
570 if (!is_null(
$size)) {
582 return $this->_soft_edges[
'size'];
getShadowProperty($elements)
Get Glow Property.
getLineStyleArrowSize($array_selector, $array_kay_selector)
setFillParameters($color, $alpha=0, $type=self::EXCEL_COLOR_TYPE_ARGB)
Set Fill Property.
_setShadowColor($color, $alpha, $type)
Set Shadow Color.
getArrayElementsValue($properties, $elements)
getShadowPresetsMap($shadow_presets_option)
_setShadowBlur($blur)
Set Shadow Blur.
Add rich text string
The name of the decorator.
setColorProperties($color, $alpha, $type)
setGlowProperties($size, $color_value=NULL, $color_alpha=NULL, $color_type=NULL)
Set Glow Properties.
getLineProperty($property)
Get Line Property.
getExcelPointsAngle($angle)
getAxisOptionsProperty($property)
Get Axis Options Property.
getSoftEdgesSize()
Get Soft Edges Size.
setAxisOrientation($orientation)
Set Axis Orientation Property.
getGlowProperty($property)
Get Glow Property.
_setShadowPresetsProperties($shadow_presets)
Set Shadow Color.
getLineStyleProperty($elements)
Get Line Style Property.
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.
setSoftEdges($size)
Set Soft Edges Size.
_setShadowProperiesMapValues(array $properties_map, &$reference=NULL)
Set Shadow Properties from Maped Values.
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.
Create styles array
The data for the language used.
getAxisNumberFormat()
Get Axis Number Format Data Type.
getLineStyleArrowWidth($arrow)
Get Line Style Arrow Excel Width.
setLineParameters($color, $alpha=0, $type=self::EXCEL_COLOR_TYPE_ARGB)
Set Line Property.
_setGlowColor($color, $alpha, $type)
Set Glow Color.
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.
getAxisNumberSourceLinked()
Get Axis Number Source Linked.
_setShadowAngle($angle)
Set Shadow Angle.
_setGlowSize($size)
Set Glow Color.
_setShadowDistance($distance)
Set Shadow Distance.
getFillProperty($property)
Get Fill Property.
getExcelPointsWidth($width)
setAxisNumberProperties($format_code)
Get Series Data Type.
getLineStyleArrowLength($arrow)
Get Line Style Arrow Excel Length.