diff options
author | Kore Nordmann <github@kore-nordmann.de> | 2006-10-26 14:08:20 +0000 |
---|---|---|
committer | Kore Nordmann <github@kore-nordmann.de> | 2006-10-26 14:08:20 +0000 |
commit | b6069cc0bfb2a7baaf2e79263cfc9c222d9e8299 (patch) | |
tree | a59d5e0b75fefd08ece3c927211f6f6e965e7933 /src/element | |
parent | 7e56dbbe610469d173133cc6f2d19da5039079bb (diff) | |
download | zetacomponents-graph-b6069cc0bfb2a7baaf2e79263cfc9c222d9e8299.zip zetacomponents-graph-b6069cc0bfb2a7baaf2e79263cfc9c222d9e8299.tar.gz |
- Added some more tests for read and write accesss on properties
Diffstat (limited to 'src/element')
-rw-r--r-- | src/element/axis.php | 4 | ||||
-rw-r--r-- | src/element/background.php | 2 | ||||
-rw-r--r-- | src/element/legend.php | 13 | ||||
-rw-r--r-- | src/element/text.php | 2 |
4 files changed, 12 insertions, 9 deletions
diff --git a/src/element/axis.php b/src/element/axis.php index b554464..7a0b76b 100644 --- a/src/element/axis.php +++ b/src/element/axis.php @@ -15,9 +15,9 @@ * @property float $axisSpace * Percent of the chart space used to display axis labels and * arrowheads instead of data values. - * @property ezcGraphColor $majorStep + * @property ezcGraphColor $majorGrid * Color of major majorGrid. - * @property ezcGraphColor $minorStep + * @property ezcGraphColor $minorGrid * Color of minor majorGrid. * @property mixed $majorStep * Labeled major steps displayed on the axis. diff --git a/src/element/background.php b/src/element/background.php index 50c82c4..e6b3885 100644 --- a/src/element/background.php +++ b/src/element/background.php @@ -99,7 +99,7 @@ class ezcGraphChartElementBackground extends ezcGraphChartElement } else { - throw new ezcBaseValeException( $propertyName, $propertyValue, '0 <= int <= 3' ); + throw new ezcBaseValueException( $propertyName, $propertyValue, '0 <= int <= 3' ); } break; case 'position': diff --git a/src/element/legend.php b/src/element/legend.php index e348b75..d9953b5 100644 --- a/src/element/legend.php +++ b/src/element/legend.php @@ -80,19 +80,22 @@ class ezcGraphChartElementLegend extends ezcGraphChartElement switch ( $propertyName ) { case 'padding': - $this->padding = max( 0, (int) $propertyValue ); + $this->properties['padding'] = max( 0, (int) $propertyValue ); break; case 'symbolSize': - $this->symbolSize = max( 1, (int) $propertyValue ); + $this->properties['symbolSize'] = max( 1, (int) $propertyValue ); break; case 'landscapeSize': - $this->landscapeSize = max( 0, min( 1, (float) $propertyValue ) ); + $this->properties['landscapeSize'] = max( 0, min( 1, (float) $propertyValue ) ); break; case 'portraitSize': - $this->portraitSize = max( 0, min( 1, (float) $propertyValue ) ); + $this->properties['portraitSize'] = max( 0, min( 1, (float) $propertyValue ) ); + break; + case 'minimumSymbolSize': + $this->properties['minimumSymbolSize'] = max( 0, min( 1, (float) $propertyValue ) ); break; case 'spacing': - $this->portraitSize = max( 0, (int) $propertyValue ); + $this->properties['spacing'] = max( 0, (int) $propertyValue ); break; default: parent::__set( $propertyName, $propertyValue ); diff --git a/src/element/text.php b/src/element/text.php index 36e6809..64b34ab 100644 --- a/src/element/text.php +++ b/src/element/text.php @@ -10,7 +10,7 @@ /** * Chart element to display texts in a chart * - * @property float $height + * @property float $maxHeight * Maximum percent of bounding used to display the text. * * @package Graph |