setAttribute(element, "rx", rect.getRadius());
setAttribute(element, "ry", rect.getRadius());
}
} else if (sprite instanceof CircleSprite) {
CircleSprite circle = (CircleSprite) sprite;
if (circle.isCenterXDirty()) {
setAttribute(element, "cx", circle.getCenterX());
}
if (circle.isCenterYDirty()) {
setAttribute(element, "cy", circle.getCenterY());
}
if (circle.isRadiusDirty()) {
setAttribute(element, "r", circle.getRadius());
}
} else if (sprite instanceof EllipseSprite) {
EllipseSprite ellipse = (EllipseSprite) sprite;
if (ellipse.isCenterXDirty()) {
setAttribute(element, "cx", ellipse.getCenterX());