summaryrefslogtreecommitdiffstats
path: root/src/element
diff options
context:
space:
mode:
authorKore Nordmann <github@kore-nordmann.de>2007-04-26 09:55:24 +0000
committerKore Nordmann <github@kore-nordmann.de>2007-04-26 09:55:24 +0000
commit02bed03a4e8d2acee8c5d5a2de09602164213e98 (patch)
treed2484101144d349061bd8ddeaae36b549fce084f /src/element
parent76285842b1610e26e7d99dbc02e8edf90549861b (diff)
downloadzetacomponents-graph-02bed03a4e8d2acee8c5d5a2de09602164213e98.zip
zetacomponents-graph-02bed03a4e8d2acee8c5d5a2de09602164213e98.tar.gz
- Fixes issue #10675: Arrow heads on axis too small
Diffstat (limited to 'src/element')
-rw-r--r--src/element/axis.php12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/element/axis.php b/src/element/axis.php
index b57c75d..3f3f868 100644
--- a/src/element/axis.php
+++ b/src/element/axis.php
@@ -31,6 +31,8 @@
* Size of axis label
* @property int $labelMargin
* Distance between label an axis
+ * @property int $minArrowHeadSize
+ * Minimum Size used to draw arrow heads.
* @property int $maxArrowHeadSize
* Maximum Size used to draw arrow heads.
* @property ezcGraphAxisLabelRenderer $axisLabelRenderer
@@ -71,6 +73,7 @@ abstract class ezcGraphChartElementAxis extends ezcGraphChartElement
$this->properties['label'] = false;
$this->properties['labelSize'] = 14;
$this->properties['labelMargin'] = 2;
+ $this->properties['minArrowHeadSize'] = 4;
$this->properties['maxArrowHeadSize'] = 8;
$this->properties['labelCallback'] = null;
@@ -182,6 +185,15 @@ abstract class ezcGraphChartElementAxis extends ezcGraphChartElement
$this->properties['maxArrowHeadSize'] = (int) $propertyValue;
break;
+ case 'minArrowHeadSize':
+ if ( !is_numeric( $propertyValue ) ||
+ ( $propertyValue <= 0 ) )
+ {
+ throw new ezcBaseValueException( $propertyName, $propertyValue, 'int >= 0' );
+ }
+
+ $this->properties['minArrowHeadSize'] = (int) $propertyValue;
+ break;
case 'axisLabelRenderer':
if ( $propertyValue instanceof ezcGraphAxisLabelRenderer )
{
OpenPOWER on IntegriCloud