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; } } ?>