An empty implementation of a cell renderer, see the null object pattern.
Preferred pixel width of content. The content may or may not be rendered at that width depending on whether or not config.bounds
was respected and whether or not the grid renderer is using clipping. (Clipping is generally not used due to poor performance.)
A cell painter with features typically needed by header cells
Remarks
Great care has been taken in crafting this function as it needs to perform extremely fast.
Use
gc.cache
instead which we have implemented to cache the graphics context properties. Reads on the graphics context (gc
) properties are expensive but not quite as expensive as writes. On read of agc.cache
prop, the actualgc
prop is read into the cache once and from then on only the cache is referenced for that property. On write, the actual prop is only written to when the new value differs from the cached value.Clipping bounds are not set here as this is also an expensive operation. Instead, we employ a number of strategies to truncate overflowing text and content.