Click or drag to resize

mxICanvas2D Interface

imbSCI | imbACE | imbNLP | imbWEM | imbWBI
Defines the requirements for a canvas that paints the vertices and edges of a graph.

Namespace:  imbSCI.Graph.MXGraph.canvas
Assembly:  imbSCI.Graph (in imbSCI.Graph.dll) Version: 0.3.70.
Syntax
C#
public interface mxICanvas2D
Request Example View Source

The mxICanvas2D type exposes the following members.

Properties
  NameDescription
Public propertyAlpha
Default value 1. This method may add rendering overhead and should be used with care.
Public propertyDashed
Sets the dashed state. This should default to false if unset.
Public propertyDashPattern
Sets the dash pattern. This should default to "3 3" if unset.
Public propertyFillAlpha
Default value 1.
Public propertyFillColor
Default value {@link mxConstants#NONE}.
Public propertyFixDash
Sets the dashed state. This should default to false if unset.
Public propertyFontBackgroundColor
Default value 0. See {@link mxConstants#STYLE_FONTSTYLE}.
Public propertyFontBorderColor
Default value 0. See {@link mxConstants#STYLE_FONTSTYLE}.
Public propertyFontColor
Default value "#000000".
Public propertyFontFamily
Default value {@link mxConstants#DEFAULT_FONTFAMILY}.
Public propertyFontSize
Default value mxConstants.DEFAULT_FONTSIZE.
Public propertyFontStyle
Default value 0. See {@link mxConstants#STYLE_FONTSTYLE}.
Public propertyLineCap
Sets the linecap. This should default to "flat" if unset.
Public propertyLineJoin
Sets the linejoin. This should default to "miter" if unset.
Public propertyMiterLimit
Sets the miterlimit. This should default to 10 if unset.
Public propertyShadow
Default value {@link mxConstants#NONE}.
Public propertyShadowAlpha
Default value 1. This method may add rendering overhead and should be used with care.
Public propertyShadowColor
Default value {@link mxConstants#NONE}.
Public propertyStrokeAlpha
Default value 1.
Public propertyStrokeColor
Sets the stroke color. This should default to mxConstants.NONE if unset.
Public propertyStrokeWidth
Sets the stroke width. This should default to 1 if unset.
Top
Methods
  NameDescription
Public methodBegin
Begins a new path.
Public methodClose
Closes the current path.
Public methodCurveTo
Draws a bezier curve to the given point.
Public methodEllipse
Next fill or stroke should draw an ellipse.
Public methodFill
Fills the current path.
Public methodFillAndStroke
Fills and paints the outline of the current path.
Public methodImage
Draws the given image.
Public methodLineTo
Draws a line to the given path.
Public methodMoveTo
Moves to the given path.
Public methodQuadTo
Draws a quadratic curve to the given point.
Public methodRect
Next fill or stroke should draw a rectangle.
Public methodRestore
Restores the previous state of the canvas.
Public methodRotate
Rotates the canvas by the given angle around the given center. This method may add rendering overhead and should be used with care.
Public methodRoundrect
Next fill or stroke should draw a round rectangle.
Public methodSave
Saves the current state of the canvas.
Public methodScale
Uniformaly scales the canvas by the given amount.
Public methodSetGradient
Prepares the canvas to draw a gradient.
Public methodSetShadowOffset
Prepares the canvas to draw a gradient.
Public methodStroke
Paints the outline of the current path.
Public methodText
Public methodTranslate
Translates the canvas by the given amount.
Top
See Also