return listOfCurveSegments;
}
} else if (contextObject instanceof BoundingBox) {
BoundingBox boundingBox = (BoundingBox) contextObject;
if (elementName.equals("position")) {
Point point = (Point) newContextObject;
setNamespace(point, namespaceURI);
boundingBox.setPosition(point);
return point;
} else if (elementName.equals("dimensions")) {
Dimensions dimensions = (Dimensions) newContextObject;
setNamespace(dimensions, namespaceURI);
boundingBox.setDimensions(dimensions);
return dimensions;
}
} else if (contextObject instanceof CurveSegment) {
if (elementName.equals("start")) {
CurveSegment lineSegment = (CurveSegment) contextObject;
Point start = (Point) newContextObject;
lineSegment.setStart(start);
setNamespace(start, namespaceURI);
return start;
} else if (elementName.equals("end")) {
CurveSegment lineSegment = (CurveSegment) contextObject;
Point end = (Point) newContextObject;
lineSegment.setEnd(end);
setNamespace(end, namespaceURI);
return end;
} else if (elementName.equals("basePoint1")) {
CubicBezier lineSegment = (CubicBezier) contextObject;