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;
BasePoint1 basePoint1 = (BasePoint1) newContextObject;
lineSegment.setBasePoint1(basePoint1);
setNamespace(basePoint1, namespaceURI);
return basePoint1;
} else if (elementName.equals("basePoint2")) {
CubicBezier lineSegment = (CubicBezier) contextObject;
BasePoint2 basePoint2 = (BasePoint2) newContextObject;
lineSegment.setBasePoint2(basePoint2);
setNamespace(basePoint2, namespaceURI);
return basePoint2;
}
} else if (contextObject instanceof SpeciesReferenceGlyph
&& groupList.equals(LayoutList.listOfSpeciesReferenceGlyphs)) {