cx = $cx; $this->cy = $cy; } public function prepareRowAsSVG($options) { return $this->prepareSvg($options); } /** * Prepares and returns the code related to a row in the query result as SVG. * * @param array $options Array containing options related to properties of the point * @return the code related to a row in the query result. */ protected function prepareSvg($options) { $point_options = array( 'name' => $this->label . '_' .$options['id'], 'id' => $this->label . 'id' . '_' . $options['id'], 'class' => 'point', 'fill' => 'white', 'stroke' => $options['color'], 'stroke-width'=> 2, ); $row = ' $val) { $row .= ' ' . $option . '="' . trim($val) . '"'; } $row .= '/>'; return $row; } public function getCx() { return $this->cx; } public function setCx($cx) { $this->cx = $cx; } public function getCy() { return $this->cy; } public function setCy($cy) { $this->cy = $cy; } } ?>