/** * Constructs a new cell for the given parameters. * * @param value Object that represents the value of the cell. * @param geometry Specifies the geometry of the cell. * @param style Specifies the style as a formatted string. */ public mxCell(Object value, mxGeometry geometry, String style) { setValue(value); setGeometry(geometry); setStyle(style); }
/** * Constructs a new cell for the given parameters. * * @param value Object that represents the value of the cell. * @param geometry Specifies the geometry of the cell. * @param style Specifies the style as a formatted string. */ public mxCell(Object value, mxGeometry geometry, String style) { setValue(value); setGeometry(geometry); setStyle(style); }
/** * Returns a clone of the cell. */ public Object clone() throws CloneNotSupportedException { mxCell clone = (mxCell) super.clone(); clone.setValue(cloneValue()); clone.setStyle(getStyle()); clone.setCollapsed(isCollapsed()); clone.setConnectable(isConnectable()); clone.setEdge(isEdge()); clone.setVertex(isVertex()); clone.setVisible(isVisible()); clone.setParent(null); clone.setSource(null); clone.setTarget(null); clone.children = null; clone.edges = null; mxGeometry geometry = getGeometry(); if (geometry != null) { clone.setGeometry((mxGeometry) geometry.clone()); } return clone; }
/** * Returns a clone of the cell. */ public Object clone() throws CloneNotSupportedException { mxCell clone = (mxCell) super.clone(); clone.setValue(cloneValue()); clone.setStyle(getStyle()); clone.setCollapsed(isCollapsed()); clone.setConnectable(isConnectable()); clone.setEdge(isEdge()); clone.setVertex(isVertex()); clone.setVisible(isVisible()); clone.setParent(null); clone.setSource(null); clone.setTarget(null); clone.children = null; clone.edges = null; mxGeometry geometry = getGeometry(); if (geometry != null) { clone.setGeometry((mxGeometry) geometry.clone()); } return clone; }