getGraphics

fun getGraphics(decoratable: Decoratable, graphics: Graphics?): Graphics?

Returns graphics, the superclass getGraphics() result of decoratable, unchanged. Makes the steps' image layers record on their next draw, as the caller can draw on it outside paint, with the exception that DecorationModifierNode.invalidateLayerProperties names. Requests no repaint. Call this from getGraphics() of a Decoratable, on the event dispatch thread.

Throws

if decoratable is not a java.awt.Component.

if called off the event dispatch thread.