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.
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 indicator shape for the given cell state.
Destroys the shapes associated with the given cell 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 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.
Installs the event listeners for the given cell state.
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.
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.
Static
registerRegisters the given constructor under the specified key in this instance of the renderer.
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.