}
public static VPConstraintFigure dupVPConstraintFigure(VPConstraintFigure vpcfSrc
, HashMap<String,String> mName , HashMap<String,Figure> mFigure
, DrawingView dvDest) {
VPConstraintFigure result = new VPConstraintFigure();
result.setAttribute("id" , mName.get(vpcfSrc.getAttribute("id")));
result.setAttribute("bounds" , vpcfSrc.getAttribute("bounds"));
result.setAttribute("topLeg" , vpcfSrc.getAttribute("topLeg"));
result.setAttribute("botLeg" , vpcfSrc.getAttribute("botLeg"));
result.setAttribute("frameColor" , vpcfSrc.getAttribute("frameColor"));
result.setAttribute("VPType" , vpcfSrc.getAttribute("VPType"));
dvDest.add(result);
result.moveBy(vpcfSrc.getDisplayBox().x , vpcfSrc.getDisplayBox().y);
mName.put((String)vpcfSrc.getAttribute("id") , UIDupHelper.FIGURE_ID_PREFIX + vpcfSrc.getAttribute("id"));
mFigure.put(UIDupHelper.FIGURE_ID_PREFIX + vpcfSrc.getAttribute("id") , result);
return result;