paint

fun paint(component: Component, graphics: Graphics, content: (Graphics) -> Unit)

Paints content, the component itself in its own coordinates, through the decoration. The steps paint at the layout bounds, or at the box of the layout modifier declared after them. Without a clip on graphics, as in a capture or a print, the whole component is painted.

Throws

where a decorated component is handed a graphics that is not a Graphics2D.