/** * Construct a circle * * @param integer $cx the center x * @param integer $cy the center y * @param integer $radius the radius of circle * @param string $id the id of element * @param SVGStyle $style style of element * * @return SVGCircle */ public static function getInstance($cx, $cy, $radiusX, $radiusY, $id = null, $style = null) { $circle = new SVGEllipse('<ellipse></ellipse>'); $circle->setCx($cx); $circle->setCy($cy); $circle->setRadius($radiusX, $radiusY); $circle->setId($id); $circle->setStyle($style); return $circle; }