Click or drag to resize

imbSCI.Graph.MXGraph.canvas Namespace

imbSCI | imbACE | imbNLP | imbWEM | imbWBI
 
Classes
  ClassDescription
Public classmxBasicCanvas
Basic implementation of a canvas that draws a graph.
Public classmxGdiCanvas
Implementation of a canvas that uses GDI for painting.
Public classCode examplemxGdiCanvas2D
Used for exporting images.
Examples
To render to an image from a given XML string, graph size and and background color, the following code is used:
1Image image = mxUtils.CreateImage(width, height, background);
2Graphics g = Graphics.FromImage(image);
3g.SmoothingMode = SmoothingMode.HighQuality;
4mxSaxOutputHandler handler = new mxSaxOutputHandler(new mxGdiCanvas2D(g));
5handler.Read(new XmlTextReader(new StringReader(xml)));
Text rendering is available for plain text only, with optional word wrapping.
Public classmxStencil
Implements a stencil for the given XML definition. This class implements the mxGraph stencil schema.
Public classmxStencilRegistry
Interfaces
  InterfaceDescription
Public interfacemxICanvas
Defines the requirements for a canvas that paints the vertices and edges of a graph.
Public interfacemxICanvas2D
Defines the requirements for a canvas that paints the vertices and edges of a graph.