Color oldColor = g.getColor();
Stroke oldStroke = g.getStroke();
SVGLength strokeWidth=(SVGLength)attributes.get("stroke-width");
SVGColor stroke=(SVGColor)attributes.get("stroke");
SVGColor fill=(SVGColor)attributes.get("fill");
Shape s =getShape();
if(fill.getValue()!=null){
g.setColor(fill.getValue());
g.fill(s);
}
if(stroke.getValue()!=null){
Stroke bs = new BasicStroke(strokeWidth.getValue().floatValue(),BasicStroke.CAP_BUTT,BasicStroke.JOIN_MITER);
g.setStroke(bs);