/** * Resets the control points of the given edge. */ public Object resetEdge(Object edge) { mxGeometry geo = model.getGeometry(edge); if (geo != null) { // Resets the control points List<mxPoint> points = geo.getPoints(); if (points != null && !points.isEmpty()) { geo = (mxGeometry) geo.clone(); geo.setPoints(null); model.setGeometry(edge, geo); } } return edge; }
/** * Resets the control points of the given edge. */ public Object resetEdge(Object edge) { mxGeometry geo = model.getGeometry(edge); if (geo != null) { // Resets the control points List<mxPoint> points = geo.getPoints(); if (points != null && !points.isEmpty()) { geo = (mxGeometry) geo.clone(); geo.setPoints(null); model.setGeometry(edge, geo); } } return edge; }
geometry.setPoints(pts);
geometry.setPoints(pts);
geo.setPoints(mxpoints); geo.setRelative(false); vedge.setGeometry(geo);
geo.setPoints(mxpoints); vedge.setGeometry(geo);
geometry.setPoints(points); model.setGeometry(edge, geometry);
geometry.setPoints(points); model.setGeometry(edge, geometry);
cell.getGeometry().setPoints(points);