Class: CellRenderer

CellRenderer

new CellRenderer()

Instances of CellRenderer are used to render the 2D graphics context within the bound of a cell. Extend this base class to implement your own cell renderer

See also Cell Renderers.

Methods

paint()

An empty implementation of a cell renderer, see the null object pattern.

Implements:

roundRect(gc, x, y, width, height, radius, fill, stroke)

A simple implementation of rounding a cell.

Parameters:
Name Type Description
gc CanvasRenderingContext2D
x number

the x grid coordinate of my origin

y number

the y grid coordinate of my origin

width number

the width I'm allowed to draw within

height number

the height I'm allowed to draw within

radius number
fill number
stroke number