org.jfree.graphics2d.canvas

## Class CanvasUtils

- java.lang.Object
- - org.jfree.graphics2d.canvas.CanvasUtils

-     public class CanvasUtils
      extends java.lang.Object

  Utility methods related to the `CanvasGraphics2D` implementation.

- - ### Method Summary

    All Methods Static Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `static void` | `writeToHTML(java.io.File f, java.lang.String title, java.lang.String canvasID, int width, int height, java.lang.String canvasScript)` Writes HTML output containing a script (usually generated by `CanvasGraphics2D`) to the specified file.

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Method Detail

    - #### writeToHTML

          public static void writeToHTML(java.io.File f,
                                         java.lang.String title,
                                         java.lang.String canvasID,
                                         int width,
                                         int height,
                                         java.lang.String canvasScript)
                                  throws java.io.IOException

      Writes HTML output containing a script (usually generated by `CanvasGraphics2D`) to the specified file. This method is used in the demo applications.
      Parameters:
        `f` - the file.
        `title` - the title for the HTML.
        `canvasID` - the canvas ID.
        `width` - the canvas width.
        `height` - the canvas height.
        `canvasScript` - the canvas script.
      Throws:
        `java.io.IOException` - if there is an IO error.