private static double getOpacity( ColorMapEntry entry ) throws IllegalArgumentException, MissingResourceException {
Expression opacity = entry.getOpacity();
Double opacityValue = null;
if (opacity != null)
opacityValue = (Double) opacity.evaluate(null, Double.class);
else
return 1.0;
if ((opacityValue.doubleValue() - 1) > 0 || opacityValue.doubleValue() < 0) {
throw new IllegalArgumentException(Errors.format(ErrorKeys.ILLEGAL_ARGUMENT_$2, Messages.CoverageStyleEditorPage_4, opacityValue));
}