Abstract
Abstract
isWhether the renderer is ready or not for that specific config.
If it's not ready, the datagrid will paint the placeholder using paintPlaceholder
.
If it's ready, the datagrid will paint the cell synchronously using paint
.
The configuration data for the cell.
Whether the renderer is ready for this config or not.
Abstract
loadDo any asynchronous work prior to painting this cell config.
The configuration data for the cell.
Abstract
paintPaint the content for a cell.
The graphics context to use for drawing.
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.
Abstract
paintPaint the placeholder for a cell, waiting for the renderer to be ready.
The graphics context to use for drawing.
The configuration data for the cell.
An object which renders the cells of a data grid asynchronously.
Notes
For performance reason, the datagrid only paints cells synchronously, though if your cell renderer inherits from AsyncCellRenderer, you will be able to do some asynchronous work prior to painting the cell. See
ImageRenderer
for an example of an asynchronous renderer.