コード例 #1
0
 /**
  * Builds the magnifyingGlass object.
  *
  * If created with no parameter, it defaults to enabled with a zoom factor
  * of 5.
  *
  * Passing a number in upon creation, then the zoomFactor will be set.
  *
  * @param zoomfactor
  * @return \tooltip
  */
 public function __construct($zoomFactor = NULL)
 {
     $this->options = array('zoomFactor');
     if (is_null($zoomFactor)) {
         parent::__construct(array());
     } else {
         parent::__construct(array('zoomFactor' => $zoomFactor));
     }
 }
コード例 #2
0
 /**
  * Builds the colorAxis object with specified options
  *
  * @param array config
  * @return \colorAxis
  */
 public function __construct($config = array())
 {
     $this->options = array('minValue', 'maxValue', 'values', 'colors');
     parent::__construct($config);
 }
コード例 #3
0
 /**
  * Builds the backgroundColor object with specified options
  *
  * Pass an associative array with values for the keys
  * [ stroke | strokeWidth | fill ]
  *
  * @param array Configuration options
  * @return \backgroundColor
  */
 public function __construct($config = array())
 {
     $this->options = array('stroke', 'strokeWidth', 'fill');
     parent::__construct($config);
 }
コード例 #4
0
ファイル: legend.php プロジェクト: melanialani/admin
 /**
  * Builds the legend object when passed an array of configuration options.
  *
  * @param array Options for the legend
  * @return \tooltip
  */
 public function __construct($config = array())
 {
     $this->options = array('position', 'alignment', 'textStyle');
     parent::__construct($config);
 }
コード例 #5
0
ファイル: Axis.php プロジェクト: melanialani/admin
 /**
  * Builds the configuration when passed an array of options.
  *
  * All options can be set by either passing an array with associative
  * values for option => value, or by chaining together the functions once
  * an object has been created.
  *
  * @param array Associative array containing key => value pairs for the
  * various configuration options.
  * @return \Axis
  */
 public function __construct($config = array())
 {
     $this->options = array_merge($this->options, array('baseline', 'baselineColor', 'direction', 'format', 'gridlines', 'minorGridlines', 'logScale', 'textPosition', 'textStyle', 'title', 'titleTextStyle', 'maxAlternation', 'maxTextLines', 'minTextSpacing', 'showTextEvery', 'maxValue', 'minValue', 'viewWindowMode', 'viewWindow'));
     parent::__construct($config);
 }
コード例 #6
0
 /**
  * Builds the chartArea object when passed an array of configuration options.
  *
  * @param array $config
  * @return \chartArea
  */
 public function __construct($config = array())
 {
     $this->options = array('left', 'top', 'width', 'height');
     parent::__construct($config);
 }
コード例 #7
0
ファイル: slice.php プロジェクト: melanialani/admin
 /**
  * Builds the slice object with specified options.
  *
  * @param array Configuration options for the tooltip
  * @return \tooltip
  */
 public function __construct($config = array())
 {
     $this->options = array('color', 'offset', 'textStyle');
     parent::__construct($config);
 }
コード例 #8
0
ファイル: tooltip.php プロジェクト: residents/fw
 /**
  * Builds the tooltip object with specified options.
  *
  * @param array Configuration options for the tooltip
  * @return \tooltip
  */
 public function __construct($config = array())
 {
     $this->options = array('showColorCode', 'textStyle', 'trigger');
     parent::__construct($config);
 }
コード例 #9
0
 /**
  * Builds the textStyle object when passed an array of configuration options.
  *
  * @param array Options for the textStyle
  * @return \tooltip
  */
 public function __construct($config = array())
 {
     $this->options = array('color', 'fontName', 'fontSize');
     parent::__construct($config);
 }
コード例 #10
0
 /**
  * Builds the configuration when passed an array of options.
  *
  * All options can be set by either passing an array with associative
  * values for option => value, or by chaining together the functions once
  * an object has been created.
  *
  * @param array Associative array containing key => value pairs for the
  * various configuration options.
  * @return \sizeAxis
  */
 public function __construct($config = array())
 {
     $this->options = array('maxSize', 'maxValue', 'minSize', 'minValue');
     parent::__construct($config);
 }