Variable: defaultEdgeShape
Defines the default shape for edges. Default is
Variable: defaultShapes
Static 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 <mxCellRenderer.registerShape> function.
Variable: defaultTextShape
Defines the default shape for labels. Default is
Variable: defaultVertexShape
Defines the default shape for vertices. Default is
Variable: forceControlClickHandler
Specifies if the enabled state of the graph should be ignored in the control click handler (to allow folding in disabled graphs). Default is false.
Variable: legacyControlPosition
Specifies if the folding icon should ignore the horizontal orientation of a swimlane. Default is true.
Variable: legacySpacing
Specifies if spacing and label position should be ignored if overflow is fill or width. Default is true for backwards compatiblity.
Variable: minSvgStrokeWidth
Minimum stroke width for SVG output.
Function: checkPlaceholderStyles
Resolves special keywords 'inherit', 'indicated' and 'swimlane' and sets the respective color on the shape.
Function: configureShape
Configures the shape for the given cell state.
Parameters:
state -
Function: createCellOverlays
Creates the actual shape for showing the overlay for the given cell state.
Parameters:
state -
Function: createControl
Creates the control for the given cell state.
Parameters:
state -
Function: createControlClickHandler
Hook for creating the click handler for the folding icon.
Parameters:
state -
Function: createIndicatorShape
Creates the indicator shape for the given cell state.
Parameters:
state -
Function: createLabel
Creates the label for the given cell state.
Parameters:
state -
Function: createShape
Creates and returns the shape for the given cell state.
Parameters:
state -
Function: destroy
Destroys the shapes associated with the given cell state.
Parameters:
state -
Function: doRedrawShape
Invokes redraw on the shape of the given state.
Function: getControlBounds
Returns the bounds to be used to draw the control (folding icon) of the given state.
Function: getLabelBounds
Returns the bounds to be used to draw the label of the given state.
Parameters:
state -
Function: getLabelValue
Returns the value to be used for the label.
Parameters:
state -
Function: getShape
Returns the shape for the given name from
Function: getShapeConstructor
Returns the constructor to be used for creating the shape.
Function: getShapesForState
Returns the
Parameters:
state -
Function: getTextScale
Returns the scaling used for the label of the given state
Parameters:
state -
Function: initControl
Initializes the given control and returns the corresponding DOM node.
Parameters:
state -
Function: initializeLabel
Initiailzes the label with a suitable container.
Parameters:
state -
Function: initializeOverlay
Initializes the given overlay.
Parameters:
state -
Function: initializeShape
Initializes the shape in the given state by calling its init method with
the correct container after configuring it using
Parameters:
state -
Function: insertStateAfter
Inserts the given array of
Parameters:
shapes - Array of
Function: installOverlayListeners
Installs the listeners for the given
Function: installListeners
Installs the event listeners for the given cell state.
Parameters:
state -
Function: isLabelEvent
Returns true if the event is for the label of the given state. This implementation always returns true.
Parameters:
state -
Function: isShapeEvent
Returns true if the event is for the shape of the given state. This implementation always returns true.
Parameters:
state -
Function: isShapeInvalid
Returns true if the given shape must be repainted.
Function: isTextShapeInvalid
Returns true if the style for the text shape has changed.
Parameters:
state -
Function: postConfigureShape
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.
Function: redraw
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.
Parameters:
state -
Function: redrawCellOverlays
Redraws the overlays for the given cell state.
Parameters:
state -
Function: redrawControl
Redraws the control for the given cell state.
Parameters:
state -
Function: redrawLabel
Redraws the label for the given cell state.
Parameters:
state -
Function: redrawLabelShape
Called to invoked redraw on the given text shape.
Parameters:
shape -
Function: redrawShape
Redraws the shape for the given cell state.
Parameters:
state -
Function: resolveColor
Resolves special keywords 'inherit', 'indicated' and 'swimlane' and sets the respective color on the shape.
Function: rotateLabelBounds
Adds the shape rotation to the given label bounds and applies the alignment and offsets.
Parameters:
state -
Generated using TypeDoc
Variable: antiAlias
Anti-aliasing option for new shapes. Default is true.