Class CellRendererAbstract

An object which renders the cells of a data grid.


If the predefined cell renderers are insufficient for a particular use case, a custom cell renderer can be defined which derives from this class.

The data grid renders cells in column-major order, by region. The region order is: body, row header, column header, corner header.

Hierarchy (view full)





  • Paint the content for a cell.


    • gc: GraphicsContext

      The graphics context to use for drawing.

    • config: CellRenderer.CellConfig

      The configuration data for the cell.


      The grid will save/restore the gc state before/after invoking the renderer.

      For performance, the cell content is efficiently clipped to the width of the column, but the height is not clipped. If height clipping is needed, the renderer must set up its own clip rect.

      The renderer must not draw outside the cell bounding height.

    Returns void