/** * @param labelFontColor * @uml.property name="labelFontColor" */ public void setLabelFontColor(final Color labelFontColor) { PackagedUtils.ensureNotNull(labelFontColor, "labelFontColor"); this.labelFontColor = labelFontColor; }
/** * @param backGroundColor * @uml.property name="backgroundColor" */ public void setBackgroundColor(final Color backGroundColor) { PackagedUtils.ensureNotNull(backGroundColor, "backGroundColor"); this.backgroundColor = backGroundColor; }
/** * Ensures that the provided argument is not <code>null</code>. * * <p>If it <code>null</code> it must throw a {@link NullPointerException}. * * @param argument argument to check for <code>null</code>. */ static void ensureNotNull(final Object argument) { ensureNotNull(argument, "Argument cannot be null"); }
/** * @param labelFont * @uml.property name="labelFont" */ public void setLabelFont(final Font labelFont) { PackagedUtils.ensureNotNull(labelFont, "labelFont"); this.labelFont = labelFont; }
/** * Constructor for a RasterLayerLegendHelper. * * <p>It takes a {@link GetLegendGraphicRequest} object in order to do its magic. * * @param request the {@link GetLegendGraphicRequest} for which we want to build a legend * @param style the {@link Style} for which we want to build a legend * @param rule the {@link Rule} to use for rendering */ public RasterLayerLegendHelper( final GetLegendGraphicRequest request, Style style, String ruleName) { PackagedUtils.ensureNotNull(request, "The provided GetLegendGraphicRequest is null"); parseRequest(request, style, ruleName); }
PackagedUtils.ensureNotNull(cEntry, "cEntry");