diff options
author | Kore Nordmann <github@kore-nordmann.de> | 2006-06-02 12:25:08 +0000 |
---|---|---|
committer | Kore Nordmann <github@kore-nordmann.de> | 2006-06-02 12:25:08 +0000 |
commit | af2abec76e82803d5d87f67c95c0009e09315aa5 (patch) | |
tree | c33946ac22bd0c15b878d584529da24ad42ef526 /src/options/chart.php | |
parent | 3e7be683345e3c54bbf07e082c9c2d8784d5b041 (diff) | |
download | zetacomponents-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.php | 17 |
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; |