Border to be added if fill is true.
If the strokeWidth should be ignored.
Boolean indicating if dimension should be changed to fill out the parent cell.
Reference to the enclosing mxGraph.
Grid size for alignment of position and size.
Specifies the orientation of the layout.
Boolean indicating if the location of the first cell should be kept, that is, it will not be moved to x0 or y0.
Top margin for the child area.
Top margin for the child area.
Top margin for the child area.
Top margin for the child area.
The parent cell of the layout, if any
If the last element should be resized to fill out the parent.
If the parent should be resized to match the width/height of the stack.
Use maximum of existing value and new value for resize of parent.
Specifies the spacing between the cells.
Boolean indicating if the bounding box of the label should be used if its available. Default is true.
Value at which a new column or row should be created.
Specifies the horizontal origin of the layout.
Specifies the vertical origin of the layout.
Shortcut to mxGraph.updateGroupBounds with moveGroup set to true.
Implements mxGraphLayout.execute.
Returns the constraint for the given key and cell. The optional edge and source arguments are used to return inbound and outgoing routing- constraints for the given edge and vertex. This implementation always returns the value for the given key in the style of the given cell.
Key of the constraint to be returned.
mxCell whose constraint should be returned.
Optional mxCell that represents the connection whose constraint should be returned. Default is null.
Optional boolean that specifies if the connection is incoming or outgoing. Default is null.
Returns the graph that this layout operates on.
Returns the size for the parent container or the size of the graph container if the parent is a layer or the root of the model.
Returns an mxRectangle that defines the bounds of the given cell or the bounding box if useBoundingBox is true.
Returns horizontal.
Implements mxGraphLayout.moveCell.
Disables or enables the edge style of the given edge.
Disables or enables orthogonal end segments of the given edge.
Sets the new position of the given cell taking into account the size of the bounding box if useBoundingBox is true. The change is only carried out if the new location is not equal to the existing location, otherwise the geometry is not replaced with an updated instance. The new or old bounds are returned (including overlapping labels).
mxCell whose geometry is to be set.
Integer that defines the x-coordinate of the new location.
Integer that defines the y-coordinate of the new location.
Snaps the given value to the grid size.
Traverses the (directed) graph invoking the given function for each visited vertex and edge. The function is invoked with the current vertex and the incoming edge as a parameter. This implementation makes sure each vertex is only visited once. The function may return false if the traversal should stop at the given vertex.
Example:
(code) mxLog.show(); var cell = graph.getSelectionCell(); graph.traverse(cell, false, function(vertex, edge) { mxLog.debug(graph.getLabel(vertex)); }); (end)
mxCell that represents the vertex where the traversal starts.
Optional boolean indicating if edges should only be traversed from source to target. Default is true.
Visitor function that takes the current vertex and the incoming edge as arguments. The traversal stops if the function returns false.
Optional mxCell that represents the incoming edge. This is null for the first step of the traversal.
Optional mxDictionary of cell paths for the visited cells.
Generated using TypeDoc
If gaps should be allowed in the stack.