/** * Inner callback to update the mxGeometry of the given mxCell using * mxCell.setGeometry and return the previous mxGeometry. */ protected mxGeometry geometryForCellChanged(Object cell, mxGeometry geometry) { mxGeometry previous = getGeometry(cell); ((mxICell) cell).setGeometry(geometry); return previous; }
/** * Inner callback to update the mxGeometry of the given mxCell using * mxCell.setGeometry and return the previous mxGeometry. */ protected mxGeometry geometryForCellChanged(Object cell, mxGeometry geometry) { mxGeometry previous = getGeometry(cell); ((mxICell) cell).setGeometry(geometry); return previous; }
public mxGeometry setGeometry(Object cell, mxGeometry geometry) { if (geometry != getGeometry(cell)) { execute(new mxGeometryChange(this, cell, geometry)); } return geometry; }
public mxGeometry setGeometry(Object cell, mxGeometry geometry) { if (geometry != getGeometry(cell)) { execute(new mxGeometryChange(this, cell, geometry)); } return geometry; }
getGeometry(source) != null && getGeometry(source).isRelative()) getGeometry(target) != null && getGeometry(target).isRelative()) && getParent(edge) != cell) mxGeometry geo = getGeometry(edge);
getGeometry(source) != null && getGeometry(source).isRelative()) getGeometry(target) != null && getGeometry(target).isRelative()) && getParent(edge) != cell) mxGeometry geo = getGeometry(edge);
/** * Returns the absolute, accumulated origin for the children inside the * given parent. */ public mxPoint getOrigin(Object cell) { mxPoint result = null; if (cell != null) { result = getOrigin(getParent(cell)); if (!isEdge(cell)) { mxGeometry geo = getGeometry(cell); if (geo != null) { result.setX(result.getX() + geo.getX()); result.setY(result.getY() + geo.getY()); } } } else { result = new mxPoint(); } return result; }
/** * Returns the absolute, accumulated origin for the children inside the * given parent. */ public mxPoint getOrigin(Object cell) { mxPoint result = null; if (cell != null) { result = getOrigin(getParent(cell)); if (!isEdge(cell)) { mxGeometry geo = getGeometry(cell); if (geo != null) { result.setX(result.getX() + geo.getX()); result.setY(result.getY() + geo.getY()); } } } else { result = new mxPoint(); } return result; }