SVGUtils.addAttribute(attr, "cx", "" + this.center.getX()); SVGUtils.addAttribute(attr, "cy", "" + this.center.getY());
SVGUtils.addAttribute(attr, "cx", SVGUtils.formatNumberAttribute( this.center.getX())); SVGUtils.addAttribute(attr, "cy", SVGUtils.formatNumberAttribute( this.center.getY()));
	public void toSAX(ContentHandler handler, Map svgContext)			throws SAXException {		AttributesImpl attr = new AttributesImpl();		super.setCommonAttributes(attr);		if (startParameter == DEFAULT_START_PARAMETER				&& endParameter == DEFAULT_END_PARAMETER) {			SVGUtils.addAttribute(attr, "cx", "" + this.center.getX());			SVGUtils.addAttribute(attr, "cy", "" + this.center.getY());			double major = this.getHalfMajorAxisLength();			double minor = this.ratio * major;			SVGUtils.addAttribute(attr, "rx", "" + major);			SVGUtils.addAttribute(attr, "ry", "" + minor);			// chek for rotation//			if (this.majorAxisDirection.getY() != 0.0) {//				double angle = Math//						.atan(1 / (this.majorAxisDirection.getY() / this.majorAxisDirection//								.getX()));//				SVGUtils.addAttribute(attr, "transform", "rotate(" + angle//						+ "  " + this.center.getX() + " " + this.center.getY()//						+ ")");//			}			double angle = this.getRotationAngle();			if (angle != 0.0) {				StringBuffer buf = new StringBuffer();				buf.append("rotate(");				buf.append((-1.0 * Math.toDegrees(angle)));				buf.append(' ');				buf.append(this.center.getX());				buf.append(' ');				buf.append(this.center.getY());				buf.append(')');				SVGUtils.addAttribute(attr, "transform", buf.toString());			}			SVGUtils.addAttribute(attr, "fill", "none");			SVGUtils.emptyElement(handler, SVGConstants.SVG_ELLIPSE, attr);		} else {			SVGUtils.addAttribute(attr, "d", getSVGPath());			SVGUtils.emptyElement(handler, SVGConstants.SVG_PATH, attr);		}	}