## Uses of Interface
com.mxgraph.canvas.mxICanvas

- Packages that use mxICanvas
  Package | Description
  --- | ---
  com.mxgraph.canvas | This package contains various implementations for painting a graph using different technologies, such as Graphics2D, HTML, SVG or VML.
  com.mxgraph.reader | This package contains the classes required to turn an encoded mxGraphView into an image using SAX and without having to create a graph model.
  com.mxgraph.swing | This package contains the main component for JFC/Swing, namely the graph component and the outline component.
  com.mxgraph.swing.view | This package contains all classes required for interaction, namely the mxCellEditor used for in-place editing and the mxInteractiveCanvas, which defines the requirements for a canvas that supports hit-detection on shapes.
  com.mxgraph.util | This package provides utility classes such as mxConstants, mxUtils, mxPoint and mxRectangle as well as all classes for custom events and the undo history.
  com.mxgraph.view | This package implements the graph component, represented by the mxGraph class.

- - ### Uses of mxICanvas in com.mxgraph.canvas

    Classes in com.mxgraph.canvas that implement mxICanvas
    Modifier and Type | Class and Description
    --- | ---
    `class` | `mxBasicCanvas`
    `class` | `mxGraphics2DCanvas` An implementation of a canvas that uses Graphics2D for painting.
    `class` | `mxHtmlCanvas` An implementation of a canvas that uses HTML for painting.
    `class` | `mxImageCanvas` An implementation of a canvas that uses Graphics2D for painting.
    `class` | `mxSvgCanvas` An implementation of a canvas that uses SVG for painting.
    `class` | `mxVmlCanvas` An implementation of a canvas that uses VML for painting.

  - ### Uses of mxICanvas in com.mxgraph.reader

    Fields in com.mxgraph.reader declared as mxICanvas
    Modifier and Type | Field and Description
    --- | ---
    `protected mxICanvas` | mxGraphViewReader.`canvas` Holds the canvas to be used for rendering the graph.

    Methods in com.mxgraph.reader that return mxICanvas
    Modifier and Type | Method and Description
    --- | ---
    `abstract mxICanvas` | mxGraphViewReader.`createCanvas(java.util.Map<java.lang.String,java.lang.Object> attrs)` Returns the canvas to be used for rendering.
    `mxICanvas` | mxGraphViewImageReader.`createCanvas(java.util.Map<java.lang.String,java.lang.Object> attrs)`
    `mxICanvas` | mxGraphViewReader.`getCanvas()` Returns the canvas that is used for rendering the graph.

  - ### Uses of mxICanvas in com.mxgraph.swing

    Methods in com.mxgraph.swing with parameters of type mxICanvas
    Modifier and Type | Method and Description
    --- | ---
    `protected void` | mxGraphComponent.mxGraphControl.`cellDrawn(mxICanvas canvas, mxCellState state)`
    `void` | mxGraphComponent.mxGraphControl.`drawCell(mxICanvas canvas, java.lang.Object cell)` Draws the given cell onto the specified canvas.

  - ### Uses of mxICanvas in com.mxgraph.swing.view

    Classes in com.mxgraph.swing.view that implement mxICanvas
    Modifier and Type | Class and Description
    --- | ---
    `class` | `mxInteractiveCanvas`

  - ### Uses of mxICanvas in com.mxgraph.util

    Methods in com.mxgraph.util that return mxICanvas
    Modifier and Type | Method and Description
    --- | ---
    `abstract mxICanvas` | mxCellRenderer.CanvasFactory.`createCanvas(int width, int height)` Separates the creation of the canvas from its initialization, when the size of the required graphics buffer / document / container is known.
    `static mxICanvas` | mxCellRenderer.`drawCells(mxGraph graph, java.lang.Object[] cells, double scale, mxRectangle clip, mxCellRenderer.CanvasFactory factory)` Draws the given cells using a Graphics2D canvas and returns the buffered image that represents the cells.

  - ### Uses of mxICanvas in com.mxgraph.view

    Methods in com.mxgraph.view with parameters of type mxICanvas
    Modifier and Type | Method and Description
    --- | ---
    `protected void` | mxGraph.`cellDrawn(mxICanvas canvas, mxCellState state, java.lang.Object element, java.lang.Object labelElement)` Called when a cell has been painted as the specified object, typically a DOM node that represents the given cell graphically in a document.
    `void` | mxGraph.`drawCell(mxICanvas canvas, java.lang.Object cell)` Draws the given cell and its descendants onto the specified canvas.
    `void` | mxGraph.`drawGraph(mxICanvas canvas)` Draws the graph onto the given canvas.
    `void` | mxGraph.`drawState(mxICanvas canvas, mxCellState state, boolean drawLabel)` Draws the cell state with the given label onto the canvas.

Copyright (c) 2010 Gaudenz Alder. All rights reserved.