@Override public void modelChanged(ChangeEvent event) { if (monitorModel) { SVGViewBoxElementModel model = (SVGViewBoxElementModel) record.getModel(); if (model.getElement().hasAttribute(SVGConstants.SVG_TRANSFORM_ATTRIBUTE)) { g.setAttribute( SVGConstants.SVG_TRANSFORM_ATTRIBUTE, model.getElement().getAttribute(SVGConstants.SVG_TRANSFORM_ATTRIBUTE)); } float x = model.get(SVGConstants.SVG_X_ATTRIBUTE); float y = model.get(SVGConstants.SVG_Y_ATTRIBUTE); float width = model.get(SVGConstants.SVG_WIDTH_ATTRIBUTE); float height = model.get(SVGConstants.SVG_HEIGHT_ATTRIBUTE); posHandle.getX().getBaseVal().newValueSpecifiedUnits(Unit.PX, x); posHandle.getY().getBaseVal().newValueSpecifiedUnits(Unit.PX, y); posHandle.getWidth().getBaseVal().newValueSpecifiedUnits(Unit.PX, width); posHandle.getHeight().getBaseVal().newValueSpecifiedUnits(Unit.PX, height); update(); } }