summaryrefslogtreecommitdiffstats
path: root/src/options/chart.php
diff options
context:
space:
mode:
authorKore Nordmann <github@kore-nordmann.de>2006-06-02 12:25:08 +0000
committerKore Nordmann <github@kore-nordmann.de>2006-06-02 12:25:08 +0000
commitaf2abec76e82803d5d87f67c95c0009e09315aa5 (patch)
treec33946ac22bd0c15b878d584529da24ad42ef526 /src/options/chart.php
parent3e7be683345e3c54bbf07e082c9c2d8784d5b041 (diff)
downloadzetacomponents-graph-af2abec76e82803d5d87f67c95c0009e09315aa5.zip
zetacomponents-graph-af2abec76e82803d5d87f67c95c0009e09315aa5.tar.gz
- Moved font configuration to elements
Diffstat (limited to 'src/options/chart.php')
-rw-r--r--src/options/chart.php17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/options/chart.php b/src/options/chart.php
index a81193c..bb437d6 100644
--- a/src/options/chart.php
+++ b/src/options/chart.php
@@ -56,7 +56,21 @@ class ezcGraphChartOptions extends ezcBaseOptions
* @var int
*/
protected $borderWidth;
+
+ /**
+ * Font used in the graph
+ *
+ * @var int
+ */
+ protected $font;
+ public function __construct( array $options=array() )
+ {
+ $this->font = new ezcGraphFontOptions();
+
+ parent::__construct( $options );
+ }
+
/**
* Set an option value
*
@@ -107,6 +121,9 @@ class ezcGraphChartOptions extends ezcBaseOptions
case 'borderWidth':
$this->borderWidth = max( 1, (int) $propertyValue );
break;
+ case 'font':
+ $this->font->font = $propertyValue;
+ break;
default:
throw new ezcBasePropertyNotFoundException( $propertyName );
break;
OpenPOWER on IntegriCloud