summaryrefslogtreecommitdiffstats
path: root/src/colors
diff options
context:
space:
mode:
authorKore Nordmann <github@kore-nordmann.de>2006-09-20 15:12:20 +0000
committerKore Nordmann <github@kore-nordmann.de>2006-09-20 15:12:20 +0000
commit9d8baefbdf52a83adfb2efed5ebe4bd7b7f765a7 (patch)
treea5b7b9bdd5be0ffcbf3456fdb0c6c681d3de2c14 /src/colors
parent3fe622918bd1c3e2694ecb2c7d244b9c33eb5693 (diff)
downloadzetacomponents-graph-9d8baefbdf52a83adfb2efed5ebe4bd7b7f765a7.zip
zetacomponents-graph-9d8baefbdf52a83adfb2efed5ebe4bd7b7f765a7.tar.gz
- Added and improved documentation
Diffstat (limited to 'src/colors')
-rw-r--r--src/colors/linear_gradient.php9
-rw-r--r--src/colors/radial_gradient.php11
2 files changed, 17 insertions, 3 deletions
diff --git a/src/colors/linear_gradient.php b/src/colors/linear_gradient.php
index 3bbde96..6d6fd7b 100644
--- a/src/colors/linear_gradient.php
+++ b/src/colors/linear_gradient.php
@@ -10,7 +10,8 @@
/**
* Class representing linear gradient fills. For drivers which cannot draw
- * gradients it falls back to a native ezcGraphColor
+ * gradients it falls back to a native ezcGraphColor. In this case the start
+ * color of the gradient will be used.
*
* @property ezcGraphCoordinate $startPoint
* Starting point of the gradient.
@@ -132,6 +133,12 @@ class ezcGraphLinearGradient extends ezcGraphColor
}
}
+ /**
+ * Returns a unique string representation for the gradient.
+ *
+ * @access public
+ * @return void
+ */
public function __toString()
{
return sprintf( 'LinearGradient_%d_%d_%d_%d_%02x%02x%02x%02x_%02x%02x%02x%02x',
diff --git a/src/colors/radial_gradient.php b/src/colors/radial_gradient.php
index 78b22ca..54f2946 100644
--- a/src/colors/radial_gradient.php
+++ b/src/colors/radial_gradient.php
@@ -9,8 +9,9 @@
*/
/**
- * Class representing linear gradient fills. For drivers which cannot draw
- * gradients it falls back to a native ezcGraphColor
+ * Class representing radial gradient fills. For drivers which cannot draw
+ * gradients it falls back to a native ezcGraphColor. In this case the start
+ * color of the gradient will be used.
*
* @property ezcGraphCoordinate $center
* Center point of the gradient.
@@ -137,6 +138,12 @@ class ezcGraphRadialGradient extends ezcGraphColor
}
}
+ /**
+ * Returns a unique string representation for the gradient.
+ *
+ * @access public
+ * @return void
+ */
public function __toString()
{
return sprintf( 'RadialGradient_%d_%d_%d_%d_%.2f_%02x%02x%02x%02x_%02x%02x%02x%02x',
OpenPOWER on IntegriCloud