From 866658cded5b92ddb2681dead1ebaf111d712fcc Mon Sep 17 00:00:00 2001 From: cassiopc Date: Mon, 6 Aug 2012 11:09:10 +0200 Subject: init --- boca-1.5.0/src/libchart/classes/Point.php | 83 +++++++++++++++++++++++++++++++ 1 file changed, 83 insertions(+) create mode 100644 boca-1.5.0/src/libchart/classes/Point.php (limited to 'boca-1.5.0/src/libchart/classes/Point.php') diff --git a/boca-1.5.0/src/libchart/classes/Point.php b/boca-1.5.0/src/libchart/classes/Point.php new file mode 100644 index 0000000..5c0d9ec --- /dev/null +++ b/boca-1.5.0/src/libchart/classes/Point.php @@ -0,0 +1,83 @@ +x = $x; + $this->y = $y; + if($c != null) { + list($r,$g,$b) = $c; + $this->color = new Color($r,$g,$b); + $shadowFactor = 0.5; + $this->shadowColor = new Color($r * $shadowFactor, + $g * $shadowFactor, + $b * $shadowFactor); + } else { + $this->color = null; + $this->shadowColor = null; + } + } + + /** + * Gets the x coordinate (label) + * + * @access public + * @return integer x coordinate (label) + */ + + function getX() + { + return $this->x; + } + + /** + * Gets the y coordinate (value) + * + * @access public + * @return integer y coordinate (value) + */ + + function getY() + { + return $this->y; + } + + function getColor() { return $this->color; } + function getShadowColor() { return $this->shadowColor; } + } +?> -- cgit v1.2.3