public Rectangle2D getBoundingBox() throws SVGException { if (href instanceof ShapeElement) { ShapeElement shapeEle = (ShapeElement)href; shapeEle.pushParentContext(this); Rectangle2D bounds = shapeEle.getBoundingBox(); shapeEle.popParentContext(); bounds = refXform.createTransformedShape(bounds).getBounds2D(); bounds = boundsToParent(bounds); return bounds; } return null; }
@Override public Rectangle2D getBoundingBox() throws SVGException { SVGElement ref = diagram.getUniverse().getElement(href); if (ref instanceof ShapeElement) { ShapeElement shapeEle = (ShapeElement) ref; shapeEle.pushParentContext(this); Rectangle2D bounds = shapeEle.getBoundingBox(); shapeEle.popParentContext(); bounds = refXform.createTransformedShape(bounds).getBounds2D(); bounds = boundsToParent(bounds); return bounds; } return null; }
public Rectangle2D getBoundingBox() throws SVGException { SVGElement ref = diagram.getUniverse().getElement(href); if (ref instanceof ShapeElement) { ShapeElement shapeEle = (ShapeElement) ref; shapeEle.pushParentContext(this); Rectangle2D bounds = shapeEle.getBoundingBox(); shapeEle.popParentContext(); bounds = refXform.createTransformedShape(bounds).getBounds2D(); bounds = boundsToParent(bounds); return bounds; } return null; }
@Override public Rectangle2D getBoundingBox() throws SVGException { SVGElement ref = diagram.getUniverse().getElement(href); if (ref instanceof ShapeElement) { ShapeElement shapeEle = (ShapeElement) ref; shapeEle.pushParentContext(this); Rectangle2D bounds = shapeEle.getBoundingBox(); shapeEle.popParentContext(); bounds = refXform.createTransformedShape(bounds).getBounds2D(); bounds = boundsToParent(bounds); return bounds; } return null; }