public class CanvasUtils extends Object
CanvasGraphics2D implementation.| Modifier and Type | Method and Description |
|---|---|
static void |
writeToHTML(File f,
String title,
String canvasID,
int width,
int height,
String canvasScript)
Writes HTML output containing a script (usually generated by
CanvasGraphics2D) to the specified file. |
public static void writeToHTML(File f, String title, String canvasID, int width, int height, String canvasScript) throws IOException
CanvasGraphics2D) to the specified file. This method is used
in the demo applications.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.IOException - if there is an IO error.Copyright © 2014. All rights reserved.