summaryrefslogtreecommitdiffstats
path: root/src/element
diff options
context:
space:
mode:
authorKore Nordmann <github@kore-nordmann.de>2006-10-27 10:27:14 +0000
committerKore Nordmann <github@kore-nordmann.de>2006-10-27 10:27:14 +0000
commit4ed2de1f6271653a6f965237a245d0d4c2535aab (patch)
treef5add06d6b7d81e687e978f334d01e4ebc9f0ad3 /src/element
parent1658235bc062aed25270711694430deba7c31c77 (diff)
downloadzetacomponents-graph-4ed2de1f6271653a6f965237a245d0d4c2535aab.zip
zetacomponents-graph-4ed2de1f6271653a6f965237a245d0d4c2535aab.tar.gz
- Added more tests and fixed some minor setter and getter bugs
Diffstat (limited to 'src/element')
-rw-r--r--src/element/axis.php4
-rw-r--r--src/element/text.php6
2 files changed, 3 insertions, 7 deletions
diff --git a/src/element/axis.php b/src/element/axis.php
index 7a0b76b..edcefb1 100644
--- a/src/element/axis.php
+++ b/src/element/axis.php
@@ -33,6 +33,8 @@
* Distance between label an axis
* @property int $maxArrowHeadSize
* Maximum Size used to draw arrow heads.
+ * @property ezcGraphAxisLabelRenderer $axisLabelRenderer
+ * AxisLabelRenderer used to render labels and grid on this axis.
*
* @package Graph
*/
@@ -152,7 +154,7 @@ abstract class ezcGraphChartElementAxis extends ezcGraphChartElement
}
else
{
- throw new ezcBasePropertyNotFoundException( $propertyName );
+ throw new ezcBaseValueException( $propertyName, $propertyValue, 'ezcGraphAxisLabelRenderer' );
}
break;
default:
diff --git a/src/element/text.php b/src/element/text.php
index 64b34ab..4792468 100644
--- a/src/element/text.php
+++ b/src/element/text.php
@@ -64,12 +64,6 @@ class ezcGraphChartElementText extends ezcGraphChartElement
*/
public function render( ezcGraphRenderer $renderer, ezcGraphBoundings $boundings )
{
- if ( empty( $this->properties['title'] ) )
- {
- return $boundings;
- }
-
-
$height = (int) min(
round( $this->properties['maxHeight'] * ( $boundings->y1 - $boundings->y0 ) ),
$this->properties['font']->maxFontSize + $this->padding * 2 + $this->margin * 2
OpenPOWER on IntegriCloud