/** * Sets the background color. * * @param backgroundColor the new background color. * @see #getBackgroundColor */ public static void setBackgroundColor(Color backgroundColor) { if (backgroundColor == null) { throw new IllegalArgumentException("backgroundColor must not be null."); } canvas.setBackground(backgroundColor); }