/** * 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, $radius, $id = null, $style = null) { $circle = new SVGCircle('<circle></circle>'); $circle->setCx($cx); $circle->setCy($cy); $circle->setRadius($radius); $circle->setId($id); $circle->setStyle($style); return $circle; }