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.
Protected
configureConfigure the Shape of the overlay. Generally, it is used to configure the DOM node of the Shape
The default implementation set the cursor in the DOM node of the Shape based on the CellOverlay.cursor.
CellState for which the overlay shape should be created.
CellOverlay used to create the Shape of the overlay.
the Shape of the overlay.
Protected
createCreate the Shape of the overlay.
CellState for which the overlay shape should be created.
CellOverlay used to create the Shape of the overlay.
Returns the shape for the given name from defaultShapes.
Initializes the shape in the given state by calling its init method with the correct container after configuring it using configureShape.
Inserts the given CellState after the given nodes in the DOM.
CellState to be inserted.
Node in GraphView.drawPane after which the shapes should be inserted.
Node in the graph container after which the shapes should be inserted that will not go into the GraphView.drawPane (e.g. HTML labels without foreignObjects).
Installs the listeners for the given CellState , CellOverlay and Shape that represents the overlay.
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.
CellState for which the shapes should be updated.
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.
Called to invoked redraw on the given text shape.
Text shape to be redrawn.
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.