summaryrefslogtreecommitdiffstats
path: root/src/palette
diff options
context:
space:
mode:
authorKore Nordmann <github@kore-nordmann.de>2006-06-06 12:22:35 +0000
committerKore Nordmann <github@kore-nordmann.de>2006-06-06 12:22:35 +0000
commitc925b7cbd916a294e96d361585c396cd107a827e (patch)
tree6ceee293182e603f560fda96b6177f9ac0b20751 /src/palette
parenta1cf00931ec31b6c7c45ecd182b410c6e7cf4781 (diff)
downloadzetacomponents-graph-c925b7cbd916a294e96d361585c396cd107a827e.zip
zetacomponents-graph-c925b7cbd916a294e96d361585c396cd107a827e.tar.gz
- Added test for palettes
- Added basic implementatoin of palettes # Not used for automatic colorization yet
Diffstat (limited to 'src/palette')
-rw-r--r--src/palette/black.php100
-rw-r--r--src/palette/tango.php101
2 files changed, 201 insertions, 0 deletions
diff --git a/src/palette/black.php b/src/palette/black.php
new file mode 100644
index 0000000..3c97294
--- /dev/null
+++ b/src/palette/black.php
@@ -0,0 +1,100 @@
+<?php
+/**
+ * File containing the abstract ezcGraphPaletteBlack class
+ *
+ * @package Graph
+ * @version //autogentag//
+ * @copyright Copyright (C) 2005, 2006 eZ systems as. All rights reserved.
+ * @license http://ez.no/licenses/new_bsd New BSD License
+ */
+/**
+ * Color pallet for ezcGraph based on Tango style guidelines at
+ * http://tango-project.org/Generic_Icon_Theme_Guidelines
+ *
+ * @package Graph
+ */
+class ezcGraphPaletteBlack extends ezcGraphPalette
+{
+ /**
+ * Backgroundcolor
+ *
+ * @var ezcGraphColor
+ */
+ protected $background = '#000000';
+
+ /**
+ * Axiscolor
+ *
+ * @var ezcGraphColor
+ */
+ protected $axisColor = '#EEEEEC';
+
+ /**
+ * Array with colors for datasets
+ *
+ * @var array
+ */
+ protected $dataSetColor = array(
+ '#729FCF',
+ '#EF2929',
+ '#FCE94F',
+ '#8AE234',
+ '#F57900',
+ '#AD7FA8',
+
+ );
+
+ /**
+ * Array with symbols for datasets
+ *
+ * @var array
+ */
+ protected $dataSetSymbol = array(
+ ezcGraph::BULLET,
+ );
+
+ /**
+ * Fontface
+ *
+ * @var string
+ */
+ protected $fontFace = 'Vera.ttf';
+
+ /**
+ * Fontcolor
+ *
+ * @var ezcGraphColor
+ */
+ protected $fontColor = '#D3D7CF';
+
+ /**
+ * Bordercolor
+ *
+ * @var ezcGraphColor
+ */
+ protected $borderColor = '#555753';
+
+ /**
+ * Borderwidth
+ *
+ * @var integer
+ * @access protected
+ */
+ protected $borderWidth = 0;
+
+ /**
+ * Padding in elements
+ *
+ * @var integer
+ */
+ protected $padding = 1;
+
+ /**
+ * Margin of elements
+ *
+ * @var integer
+ */
+ protected $margin = 1;
+}
+
+?>
diff --git a/src/palette/tango.php b/src/palette/tango.php
new file mode 100644
index 0000000..08f6746
--- /dev/null
+++ b/src/palette/tango.php
@@ -0,0 +1,101 @@
+<?php
+/**
+ * File containing the abstract ezcGraphPaletteTango class
+ *
+ * @package Graph
+ * @version //autogentag//
+ * @copyright Copyright (C) 2005, 2006 eZ systems as. All rights reserved.
+ * @license http://ez.no/licenses/new_bsd New BSD License
+ */
+/**
+ * Color pallet for ezcGraph based on Tango style guidelines at
+ * http://tango-project.org/Generic_Icon_Theme_Guidelines
+ *
+ * @package Graph
+ */
+class ezcGraphPaletteTango extends ezcGraphPalette
+{
+ /**
+ * Backgroundcolor
+ *
+ * @var ezcGraphColor
+ */
+ protected $background = '#EEEEEC';
+
+ /**
+ * Axiscolor
+ *
+ * @var ezcGraphColor
+ */
+ protected $axisColor = '#2E3436';
+
+ /**
+ * Array with colors for datasets
+ *
+ * @var array
+ */
+ protected $dataSetColor = array(
+ '#3465A4',
+ '#4E9A06',
+ '#CC0000',
+ '#EDD400',
+ '#75505B',
+ '#F57900',
+ '#204A87',
+ '#C17D11',
+ );
+
+ /**
+ * Array with symbols for datasets
+ *
+ * @var array
+ */
+ protected $dataSetSymbol = array(
+ ezcGraph::BULLET,
+ );
+
+ /**
+ * Fontface
+ *
+ * @var string
+ */
+ protected $fontFace = 'Vera.ttf';
+
+ /**
+ * Fontcolor
+ *
+ * @var ezcGraphColor
+ */
+ protected $fontColor = '#888A85';
+
+ /**
+ * Bordercolor
+ *
+ * @var ezcGraphColor
+ */
+ protected $borderColor = '#BABDB6';
+
+ /**
+ * Borderwidth
+ *
+ * @var integer
+ * @access protected
+ */
+ protected $borderWidth = 0;
+
+ /**
+ * Padding in elements
+ *
+ * @var integer
+ */
+ protected $padding = 1;
+
+ /**
+ * Margin of elements
+ *
+ * @var integer
+ */
+ protected $margin = 1;
+}
+
+?>
OpenPOWER on IntegriCloud