/** * <code>setShadeMode</code> sets the current shading mode. * * @param shadeMode * the new shading mode. * @throws IllegalArgumentException * if shadeMode is null */ public void setShadingMode(final ShadingMode shadeMode) { if (shadeMode == null) { throw new IllegalArgumentException("shadeMode can not be null."); } _shadeMode = shadeMode; setNeedsRefresh(true); }