. Default is null. */ var $geometry = null; /** * Variable: style * * Holds the style as a string of the form [(stylename|key=value);]. * Default is null. */ var $style = null; /** * Variable: vertex * * Specifies whether the cell is a vertex. Default is false. */ var $vertex = false; /** * Variable: edge * * Specifies whether the cell is an edge. Default is false. */ var $edge = false; /** * Variable: connectable * * Specifies whether the cell is connectable. Default is true. */ var $connectable = true; /** * Variable: visible * * Specifies whether the cell is visible. Default is true. */ var $visible = true; /** * Variable: collapsed * * Specifies whether the cell is collapsed. Default is false. */ var $collapsed = false; /** * Variable: parent * * Reference to the parent cell. */ var $parent = null; /** * Variable: source * * Reference to the source terminal. */ var $source = null; /** * Variable: target * * Reference to the target terminal. */ var $target = null; /** * Variable: children * * Holds the child cells. */ var $children = null; // transient /** * Variable: edges * * Holds the edges. */ var $edges = null; // transient /** * Constructor: mxCell * * Constructs a new cell to be used in a graph model. * This method invokes upon completion. * * Parameters: * * value - Optional object that represents the cell value. * geometry - Optional that specifies the geometry. * style - Optional formatted string that defines the style. */ function mxCell($value = null, $geometry = null, $style = null) { $this->setValue($value); $this->setGeometry($geometry); $this->setStyle($style); } /** * Function: getId * * Returns the Id of the cell as a string. */ function getId() { return $this->id; } /** * Function: setId * * Sets the Id of the cell to the given string. */ function setId($id) { $this->id = $id; } /** * Function: getValue * * Returns the user object of the cell. The user * object is stored in . */ function getValue() { return $this->value; } /** * Function: setValue * * Sets the user object of the cell. The user object * is stored in . */ function setValue($value) { $this->value = $value; } /** * Function: getGeometry * * Returns the that describes the . */ function getGeometry() { return $this->geometry; } /** * Function: setGeometry * * Sets the to be used as the . */ function setGeometry($geometry) { $this->geometry = $geometry; } /** * Function: getStyle * * Returns a string that describes the