Antialiasing option for new shapes.
Defines the default shape for edges.
Defines the default shape for labels.
Defines the default shape for vertices.
Specifies if the enabled state of the graph should be ignored in the control click handler (to allow folding in disabled graphs).
Specifies if the folding icon should ignore the horizontal orientation of a swimlane.
Specifies if spacing and label position should be ignored if overflow is fill or width.
Minimum stroke width for SVG output.
Static
defaultStatic array that contains the globally registered shapes which are known to all instances of this class. For adding new shapes you should use the static CellRenderer#registerShape function.
Built-in shapes: arrow, rectangle, ellipse, rhombus, image, line, label, cylinder, swimlane, connector, actor and cloud.
Check if style properties supporting placeholders requires resolution.
Configures the shape for the given cell state.
Creates the actual shape for showing the overlay for the given cell state.
Creates the control for the given cell state.
Hook for creating the click handler for the folding icon.
Creates the label for the given cell state.
Destroys the shapes associated with the given cell state.
Invokes redraw on the shape of the given state.
Returns the value to be used for the label.
Returns the shape for the given name from defaultShapes.
Returns the scaling used for the label of the given state
Initializes the given overlay.
ImageShape that represents the overlay.
Initializes the shape in the given state by calling its init method with the correct container after configuring it using configureShape.
Inserts the given array of Shapes after the given nodes in the DOM.
Node in
Node in the graph container after which the shapes should be inserted that
will not go into the
Installs the listeners for the given
Installs the event listeners for the given cell state.
Returns true if the event is for the label of the given state. This implementation always returns true.
Mouse event which was fired.
Returns true if the event is for the shape of the given state. This implementation always returns true.
Mouse event which was fired.
Replaces any reserved words used for attributes, eg. inherit, indicated or swimlane for colors in the shape for the given state. This implementation resolves these keywords on the fill, stroke and gradient color keys.
Updates the bounds or points and scale of the shapes for the given cell state. This is called in mxGraphView.validatePoints as the last step of updating all cells.
Optional boolean that specifies if the cell should be reconfiured and redrawn without any additional checks.
Optional boolean that specifies if the cell should actually be drawn into the DOM. If this is false then redraw and/or reconfigure will not be called on the shape.
Redraws the overlays for the given cell state.
Redraws the control for the given cell state.
Redraws the label for the given cell state.
Called to invoked redraw on the given text shape.
Text shape to be redrawn.
Redraws the shape for the given cell state.
Resolves special keywords 'inherit', 'indicated' and 'swimlane' and sets the respective color on the shape.
Static
register
Renders cells into a document object model. The is a global
map of shape names, constructor pairs that is used in all instances. You can
get a list of all available shape names using the following code.
In general the cell renderer is in charge of creating, redrawing and destroying the shape and label associated with a cell state, as well as some other graphical objects, namely controls and overlays. The shape hierarchy in the display (i.e. the hierarchy in which the DOM nodes appear in the document) does not reflect the cell hierarchy. The shapes are a (flat) sequence of shapes and labels inside the draw pane of the graph view, with some exceptions, namely the HTML labels being placed directly inside the graph container for certain browsers.