summaryrefslogtreecommitdiffstats
path: root/src/interfaces/element.php
diff options
context:
space:
mode:
authorKore Nordmann <github@kore-nordmann.de>2006-10-26 14:08:20 +0000
committerKore Nordmann <github@kore-nordmann.de>2006-10-26 14:08:20 +0000
commitb6069cc0bfb2a7baaf2e79263cfc9c222d9e8299 (patch)
treea59d5e0b75fefd08ece3c927211f6f6e965e7933 /src/interfaces/element.php
parent7e56dbbe610469d173133cc6f2d19da5039079bb (diff)
downloadzetacomponents-graph-b6069cc0bfb2a7baaf2e79263cfc9c222d9e8299.zip
zetacomponents-graph-b6069cc0bfb2a7baaf2e79263cfc9c222d9e8299.tar.gz
- Added some more tests for read and write accesss on properties
Diffstat (limited to 'src/interfaces/element.php')
-rw-r--r--src/interfaces/element.php21
1 files changed, 15 insertions, 6 deletions
diff --git a/src/interfaces/element.php b/src/interfaces/element.php
index 3ddc5e6..c78ff86 100644
--- a/src/interfaces/element.php
+++ b/src/interfaces/element.php
@@ -14,8 +14,6 @@
* Title of chart element.
* @property ezcGraphColor $background
* Background color of chart element.
- * @property ezcGraphBoundings $boundings
- * Boundings of this elements.
* @property ezcGraphColor $border
* Border color of chart element.
* @property int $padding
@@ -36,9 +34,11 @@
* position top or bottom.
* @property ezcGraphFontOptions $font
* Font used for this element.
- * @property bool $fontCloned
- * Indicates if font configuration was already cloned for this
- * specific element.
+ * @property-read bool $fontCloned
+ * Indicates if font configuration was already cloned for this
+ * specific element.
+ * @property-read ezcGraphBoundings $boundings
+ * Boundings of this elements.
*
* @package Graph
*/
@@ -157,8 +157,17 @@ abstract class ezcGraphChartElement extends ezcBaseOptions
throw new ezcBaseValueException( 'position', $propertyValue, 'integer' );
}
break;
+ case 'maxTitleHeight':
+ $this->properties['maxTitleHeight'] = max( 0, (int) $propertyValue );
+ break;
+ case 'portraitTitleSize':
+ $this->properties['portraitTitleSize'] = max( 0., min( 1., (float) $propertyValue ) );
+ break;
+ case 'landscapeTitleSize':
+ $this->properties['landscapeTitleSize'] = max( 0., min( 1., (float) $propertyValue ) );
+ break;
default:
- throw new ezcGraphNoSuchDataSetException( $propertyName );
+ throw new ezcBasePropertyNotFoundException( $propertyName );
break;
}
}
OpenPOWER on IntegriCloud