Abstract
Protected
constructorHolds the operator for closing curves. Default is 'Z'.
Holds the
Contains the string used for bezier curves. Default is 'C'.
Holds the last x coordinate.
Holds the last y coordinate.
Contains the string used for moving in paths. Default is 'L'.
Contains the string used for moving in paths. Default is 'M'.
Holds the current path as an array.
Boolean value that specifies if events should be handled. Default is false.
Contains the string used for quadratic paths. Default is 'Q'.
Switch for rotation of HTML. Default is false.
Holds the current state.
Stack of states.
Adds the given operation to the path.
Adds the given arc to the current path. This is a synthetic operation that is broken down into curves.
Starts a new path.
Closes the current path.
Optional
x1: numberOptional
y1: numberOptional
x2: numberOptional
y2: numberOptional
x3: numberOptional
y3: numberCreates the state of the this canvas.
Create a new
Adds a bezier curve to the current path.
Abstract
ellipseAbstract
endEmpty implementation for backwards compatibility. This will be removed.
Abstract
fillAbstract
fillRounds all numbers to integers.
Abstract
imageDraws a line to the given coordinates. Uses moveTo with the op argument.
Moves the current path the given coordinates.
Adds a quadratic curve to the current path.
Abstract
rectResets the state of this canvas.
Restores the current state.
Rotates the current state.
Abstract
roundrectSaves the current state.
Scales the current state.
Sets the current alpha.
Enables or disables dashed lines.
Sets the current dash pattern.
Sets the current solid fill alpha.
Sets the current fill color.
Sets the current font background color.
Sets the current font border color.
Sets the current font color.
Sets the current font family.
Sets the current font size.
Sets the current font style.
Sets the current gradient.
Sets the current line cap.
Sets the current line join.
Sets the current link. Hook for subclassers.
Sets the current miter limit.
Enables or disables and configures the current shadow.
Sets the current shadow alpha.
Number that represents the new alpha. Possible values are between 1 (opaque) and 0 (transparent).
Sets the current shadow color.
Hexadecimal representation of the color or none
.
Sets the current shadow offset.
Number that represents the horizontal offset of the shadow.
Number that represents the vertical offset of the shadow.
Sets the current stroke alpha.
Sets the current stroke color.
Sets the current stroke width.
Abstract
strokeAbstract
textTranslates the current state.
Abstract
update
Base class for all canvases.
The following methods make up the public interface of the canvas 2D for all painting in mxGraph:
arcTo is an additional method for drawing paths. This is a synthetic method, meaning that it is turned into a sequence of curves by default. Subclasses may add native support for arcs.
All color values of NONE will be converted to null in the state.