public Object setValue(Object cell, Object value) { execute(new mxValueChange(this, cell, value)); return value; }
public Object setRoot(Object root) { execute(new mxRootChange(this, root)); return root; }
public Object setValue(Object cell, Object value) { execute(new mxValueChange(this, cell, value)); return value; }
public Object setRoot(Object root) { execute(new mxRootChange(this, root)); return root; }
public String setStyle(Object cell, String style) { if (style == null || !style.equals(getStyle(cell))) { execute(new mxStyleChange(this, cell, style)); } return style; }
public String setStyle(Object cell, String style) { if (style == null || !style.equals(getStyle(cell))) { execute(new mxStyleChange(this, cell, style)); } return style; }
public mxGeometry setGeometry(Object cell, mxGeometry geometry) { if (geometry != getGeometry(cell)) { execute(new mxGeometryChange(this, cell, geometry)); } return geometry; }
public boolean setCollapsed(Object cell, boolean collapsed) { if (collapsed != isCollapsed(cell)) { execute(new mxCollapseChange(this, cell, collapsed)); } return collapsed; }
public mxGeometry setGeometry(Object cell, mxGeometry geometry) { if (geometry != getGeometry(cell)) { execute(new mxGeometryChange(this, cell, geometry)); } return geometry; }
public boolean setCollapsed(Object cell, boolean collapsed) { if (collapsed != isCollapsed(cell)) { execute(new mxCollapseChange(this, cell, collapsed)); } return collapsed; }
public boolean setVisible(Object cell, boolean visible) { if (visible != isVisible(cell)) { execute(new mxVisibleChange(this, cell, visible)); } return visible; }
public boolean setVisible(Object cell, boolean visible) { if (visible != isVisible(cell)) { execute(new mxVisibleChange(this, cell, visible)); } return visible; }
public Object remove(Object cell) { if (cell == root) { setRoot(null); } else if (getParent(cell) != null) { execute(new mxChildChange(this, null, cell)); } return cell; }
public Object remove(Object cell) { if (cell == root) { setRoot(null); } else if (getParent(cell) != null) { execute(new mxChildChange(this, null, cell)); } return cell; }
public Object add(Object parent, Object child, int index) { if (child != parent && parent != null && child != null) { boolean parentChanged = parent != getParent(child); execute(new mxChildChange(this, parent, child, index)); // Maintains the edges parents by moving the edges // into the nearest common ancestor of its // terminals if (maintainEdgeParent && parentChanged) { updateEdgeParents(child); } } return child; }
public Object add(Object parent, Object child, int index) { if (child != parent && parent != null && child != null) { boolean parentChanged = parent != getParent(child); execute(new mxChildChange(this, parent, child, index)); // Maintains the edges parents by moving the edges // into the nearest common ancestor of its // terminals if (maintainEdgeParent && parentChanged) { updateEdgeParents(child); } } return child; }
public Object setTerminal(Object edge, Object terminal, boolean isSource) { boolean terminalChanged = terminal != getTerminal(edge, isSource); execute(new mxTerminalChange(this, edge, terminal, isSource)); if (maintainEdgeParent && terminalChanged) { updateEdgeParent(edge, getRoot()); } return terminal; }
public Object setTerminal(Object edge, Object terminal, boolean isSource) { boolean terminalChanged = terminal != getTerminal(edge, isSource); execute(new mxTerminalChange(this, edge, terminal, isSource)); if (maintainEdgeParent && terminalChanged) { updateEdgeParent(edge, getRoot()); } return terminal; }