* @throws XmlReaderException if there is a parsing error.
*/
protected void doneParsing() throws XmlReaderException {
if (this.point1Handler == null || this.point2Handler == null
|| this.color1Handler == null || this.color2Handler == null) {
throw new XmlReaderException("Not all required subelements are defined.");
}
this.gradient = new GradientPaint
((Point2D) this.point1Handler.getObject(),
(Color) this.color1Handler.getObject(),
(Point2D) this.point2Handler.getObject(),