summaryrefslogtreecommitdiffstats
path: root/src/graph.php
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/graph.php
parent3fe622918bd1c3e2694ecb2c7d244b9c33eb5693 (diff)
downloadzetacomponents-graph-9d8baefbdf52a83adfb2efed5ebe4bd7b7f765a7.zip
zetacomponents-graph-9d8baefbdf52a83adfb2efed5ebe4bd7b7f765a7.tar.gz
- Added and improved documentation
Diffstat (limited to 'src/graph.php')
-rw-r--r--src/graph.php72
1 files changed, 70 insertions, 2 deletions
diff --git a/src/graph.php b/src/graph.php
index 0a9ffac..ae6c74b 100644
--- a/src/graph.php
+++ b/src/graph.php
@@ -14,29 +14,97 @@
*/
class ezcGraph
{
+ /**
+ * No symbol, will fallback to a rect in the legend
+ */
const NO_SYMBOL = 0;
+ /**
+ * Rhomb like looking symbol
+ */
const DIAMOND = 1;
+ /**
+ * Filled circle
+ */
const BULLET = 2;
+ /**
+ * Non filled circle
+ */
const CIRCLE = 3;
+ /**
+ * Constant used for background repetition. No repeat.
+ */
const NO_REPEAT = 0;
+ /**
+ * Constant used for background repetition. Repeat along the x axis. May be
+ * used as a bitmask together with ezcGraph::VERTICAL.
+ */
const HORIZONTAL = 1;
+ /**
+ * Constant used for background repetition. Repeat along the y axis. May be
+ * used as a bitmask together with ezcGraph::HORIZONTAL.
+ */
const VERTICAL = 2;
+ /**
+ * Constant used for positioning of elements. May be used as a bitmask
+ * together with other postioning constants.
+ * Element will be placed at the top of the current boundings.
+ */
const TOP = 1;
+ /**
+ * Constant used for positioning of elements. May be used as a bitmask
+ * together with other postioning constants.
+ * Element will be placed at the bottom of the current boundings.
+ */
const BOTTOM = 2;
+ /**
+ * Constant used for positioning of elements. May be used as a bitmask
+ * together with other postioning constants.
+ * Element will be placed at the left of the current boundings.
+ */
const LEFT = 4;
+ /**
+ * Constant used for positioning of elements. May be used as a bitmask
+ * together with other postioning constants.
+ * Element will be placed at the right of the current boundings.
+ */
const RIGHT = 8;
+ /**
+ * Constant used for positioning of elements. May be used as a bitmask
+ * together with other postioning constants.
+ * Element will be placed at the horizontalcenter of the current boundings.
+ */
const CENTER = 16;
+ /**
+ * Constant used for positioning of elements. May be used as a bitmask
+ * together with other postioning constants.
+ * Element will be placed at the vertical middle of the current boundings.
+ */
const MIDDLE = 32;
+ /**
+ * Display type for datasets. Pie may only be used with pie charts.
+ */
const PIE = 1;
+ /**
+ * Display type for datasets. Bar and line charts may contain datasets of
+ * type ezcGraph::LINE.
+ */
const LINE = 2;
+ /**
+ * Display type for datasets. Bar and line charts may contain datasets of
+ * type ezcGraph::BAR.
+ */
const BAR = 3;
- // native TTF font
+ /**
+ * Font type definition. Used for True Type fonts.
+ */
const TTF_FONT = 1;
- // PostScript Type1 fonts
+ /**
+ * Font type definition. Used for Postscript Type 1 fonts.
+ */
const PS_FONT = 2;
}
OpenPOWER on IntegriCloud