PaintedPath pp = new PaintedPath(s);
processPaintedPathAttributes(pp, attributes);
return pp;
} else if (type.equals("text")) {
PaintedString string = new PaintedString(content);
processPaintedStringAttributes(string, attributes);
string.translate(coords[0], coords[1]);
return string;
}
return null;
}