private void overwriteTextDefault(Attributes attrs) {
		// loop through all attributes, setting appropriate values
		for (int i = 0; i < attrs.getLength(); i++) {
			if (attrs.getQName(i).equals("fontname"))
				textDef.setFontName(attrs.getValue(i));
			else if (attrs.getQName(i).equals("fontsize"))
				textDef.setFontSize(Float.valueOf(attrs.getValue(i)));
			else if (attrs.getQName(i).equals("fontcolor"))
				textDef.setFontColor((new Color(Integer.valueOf(attrs.getValue(
						i).substring(1), 16))));
			else if (attrs.getQName(i).equals("alpha"))
				textDef.setFontAlpha(Integer.valueOf(attrs.getValue(i)));
			else if (attrs.getQName(i).equals("backgroundcolor"))
				textDef.setBackgroundColor(new Color(Integer.valueOf(attrs
						.getValue(i).substring(1), 16)));
			else if (attrs.getQName(i).equals("backgroundalpha"))
				textDef.setBackgroundAlpha(Integer.valueOf(attrs.getValue(i)));
		}
	}