* @param ctx the bridge context to use
* @param e the text element
*/
protected Point2D getLocation(BridgeContext ctx, Element e) {
try {
SVGOMTextPositioningElement te = (SVGOMTextPositioningElement) e;
// 'x' attribute - default is 0
SVGOMAnimatedLengthList _x = (SVGOMAnimatedLengthList) te.getX();
_x.check();
SVGLengthList xs = _x.getAnimVal();
float x = 0;
if (xs.getNumberOfItems() > 0) {
x = xs.getItem(0).getValue();
}
// 'y' attribute - default is 0
SVGOMAnimatedLengthList _y = (SVGOMAnimatedLengthList) te.getY();
_y.check();
SVGLengthList ys = _y.getAnimVal();
float y = 0;
if (ys.getNumberOfItems() > 0) {
y = ys.getItem(0).getValue();