/** * 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; }
List<mxPoint> pts = geometry.getPoints();
List<mxPoint> pts = geometry.getPoints();
List<mxPoint> points = geometry.getPoints(); Point pt = null;
List<mxPoint> points = geometry.getPoints(); Point pt = null;
List<mxPoint> points = (List<mxPoint>) geo.getPoints();
clone.setRelative(isRelative()); List<mxPoint> pts = getPoints();
clone.setRelative(isRelative()); List<mxPoint> pts = getPoints();
if (geo != null) List<mxPoint> mxpoints = edge.getGeometry().getPoints(); if (mxpoints != null)
.getCellGeometry(state.getCell()); mxCellState clone = (mxCellState) state.clone(); List<mxPoint> points = geometry.getPoints(); mxGraphView view = clone.getView();
.getCellGeometry(state.getCell()); mxCellState clone = (mxCellState) state.clone(); List<mxPoint> points = geometry.getPoints(); mxGraphView view = clone.getView();
List<mxPoint> points = (List<mxPoint>) geo.getPoints();
List<mxPoint> points = g.getPoints();
List<mxPoint> points = g.getPoints();
updatePoints(state, geo.getPoints(), source, target); updateFloatingTerminalPoints(state, source, target);
updatePoints(state, geo.getPoints(), source, target); updateFloatingTerminalPoints(state, source, target);
if (cell != null && cell.getGeometry() != null) points = cell.getGeometry().getPoints();