summaryrefslogtreecommitdiffstats
path: root/src/structs
diff options
context:
space:
mode:
authorKore Nordmann <github@kore-nordmann.de>2006-05-09 08:50:57 +0000
committerKore Nordmann <github@kore-nordmann.de>2006-05-09 08:50:57 +0000
commitded1cd35661c0a5536cc236e694f7cf6a9b79c19 (patch)
treea50b76078fa81bb2f59ea49c8f6c9938297fb846 /src/structs
parent0cf687a2469cbcc2682a53634269d4da18eb1100 (diff)
downloadzetacomponents-graph-ded1cd35661c0a5536cc236e694f7cf6a9b79c19.zip
zetacomponents-graph-ded1cd35661c0a5536cc236e694f7cf6a9b79c19.tar.gz
- Added static methods to ezcGraphColor to create colors from deifferent color
representations
Diffstat (limited to 'src/structs')
-rw-r--r--src/structs/color.php41
1 files changed, 41 insertions, 0 deletions
diff --git a/src/structs/color.php b/src/structs/color.php
index 049610a..2ad24be 100644
--- a/src/structs/color.php
+++ b/src/structs/color.php
@@ -32,6 +32,47 @@ class ezcGraphColor
{
throw new ezcBasePropertyNotFoundException( $name );
}
+
+ /**
+ * Creates an ezcGraphColor object from a hexadecimal color representation
+ *
+ * @param mixed $string Hexadecimal color representation
+ * @return ezcGraphColor
+ */
+ static public function fromHex( $string )
+ {
+ }
+
+ /**
+ * Creates an ezcGraphColor object from an array of integers
+ *
+ * @param array $array Array of integer color values
+ * @return ezcGraphColor
+ */
+ static public function fromIntegerArray( array $array )
+ {
+ }
+
+ /**
+ * Creates an ezcGraphColor object from an array of floats
+ *
+ * @param array $array Array of float color values
+ * @return ezcGraphColor
+ */
+ static public function fromFloatArray( array $array )
+ {
+ }
+
+ /**
+ * Tries to detect type of color color definition and returns an
+ * ezcGraphColor object
+ *
+ * @param mixed $color Some kind of color definition
+ * @return ezcGraphColor
+ */
+ static public function create( $color )
+ {
+ }
}
?
OpenPOWER on IntegriCloud