mxHtmlCanvas

Canvas for drawing graphs using HTML.

Summary
mxHtmlCanvasCanvas for drawing graphs using HTML.
Variables
htmlHolds the html markup.
Functions
mxGdCanvasConstructs a new GD canvas.
getHtmlGets the HTML that represents the canvas.
outAdds the specified string to the output.
drawLineDraws the specified line.
drawShapeDraws the specified shape.
drawImageDraws the specified image.
drawTextDraws the specified text.
destroyDestroy all allocated resources.
drawGraphDraws the given graph using this canvas.

Variables

html

var $html

Holds the html markup.

Functions

mxGdCanvas

Constructs a new GD canvas.  Use a HTML color definition for the optional background parameter, eg. white or #FFFFFF.

getHtml

function getHtml()

Gets the HTML that represents the canvas.

out

function out($string)

Adds the specified string to the output.

drawLine

function drawLine($x0,  
$y0,  
$x1,  
$y1,  
$stroke =  null,
$dashed =  false)

Draws the specified line.

drawShape

function drawShape($shape,  
$x,  
$y,  
$w,  
$h,  
$stroke = null,
$fill = null)

Draws the specified shape.

drawImage

function drawImage($x,  
$y,  
$w,  
$h,  
$image,  
$aspect =  true,
$flipH =  false,
$flipV =  false)

Draws the specified image.

drawText

function drawText($string,
$x,
$y,
$w,
$h,
$style)

Draws the specified text.

destroy

function destroy()

Destroy all allocated resources.

drawGraph

public static function drawGraph($graph,  
$clip =  null,
$bg =  null)

Draws the given graph using this canvas.

var $html
Holds the html markup.
function getHtml()
Gets the HTML that represents the canvas.
function out($string)
Adds the specified string to the output.
function drawLine($x0,  
$y0,  
$x1,  
$y1,  
$stroke =  null,
$dashed =  false)
Draws the specified line.
function drawShape($shape,  
$x,  
$y,  
$w,  
$h,  
$stroke = null,
$fill = null)
Draws the specified shape.
function drawImage($x,  
$y,  
$w,  
$h,  
$image,  
$aspect =  true,
$flipH =  false,
$flipV =  false)
Draws the specified image.
function drawText($string,
$x,
$y,
$w,
$h,
$style)
Draws the specified text.
function destroy()
Destroy all allocated resources.
public static function drawGraph($graph,  
$clip =  null,
$bg =  null)
Draws the given graph using this canvas.
Close