From be2491b093b1f0ca430bede679ecbb670041e483 Mon Sep 17 00:00:00 2001 From: cassio Date: Tue, 2 Jul 2013 09:46:45 +0400 Subject: restructuring of boca's git --- src/libchart/classes/Point.php | 83 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 83 insertions(+) create mode 100644 src/libchart/classes/Point.php (limited to 'src/libchart/classes/Point.php') diff --git a/src/libchart/classes/Point.php b/src/libchart/classes/Point.php new file mode 100644 index 0000000..5c0d9ec --- /dev/null +++ b/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