Errors.format(ErrorKeys.ILLEGAL_ARGUMENT_$1, preservingElements)); final ConstantColorMapElement nc = (ConstantColorMapElement) preservingElements[i]; if (nc.getColors().length != 1) throw new IllegalArgumentException( Errors.format(ErrorKeys.ILLEGAL_ARGUMENT_$1, nc.getColors())); if (i == 0) { outval = nc.getOutputMaximum(); color = nc.getColors()[0]; } else { if (compare(outval, nc.getOutputMaximum()) != 0) throw new IllegalArgumentException( Errors.format(ErrorKeys.ILLEGAL_ARGUMENT_$1, nc.getColors())); if (!color.equals(nc.getColors()[0])) throw new IllegalArgumentException( Errors.format(ErrorKeys.ILLEGAL_ARGUMENT_$1, nc.getColors()));
/** * @see LinearColorMapElement#ClassificationCategory(CharSequence, Color[], NumberRange, NumberRange) */ public static LinearColorMapElement create(final CharSequence name, final Color color, final double value, final int sample) throws IllegalArgumentException { return new ConstantColorMapElement(name, color, value, sample); }
/** * @see LinearColorMapElement#ClassificationCategory(CharSequence, Color[], NumberRange, NumberRange) */ public static LinearColorMapElement create(final CharSequence name, final Color color, final float value, final int sample) throws IllegalArgumentException { return new ConstantColorMapElement(name, color, value, sample); }
"The element must be a ConstantColorMapElement"); final ConstantColorMapElement nc = (ConstantColorMapElement) preservingElements[i]; if (nc.getColors().length != 1) throw new IllegalArgumentException("Color size must be 1"); if (i == 0) { outval = nc.getOutputMaximum(); color = nc.getColors()[0]; } else { if (compare(outval, nc.getOutputMaximum()) != 0) throw new IllegalArgumentException("Wrong Color value"); if (!color.equals(nc.getColors()[0])) throw new IllegalArgumentException("Wrong Color value");
/** * @see LinearColorMapElement#ClassificationCategory(CharSequence, Color[], NumberRange, NumberRange) */ public static LinearColorMapElement create(final CharSequence name, final Color color, final int value, final int sample) throws IllegalArgumentException { return new ConstantColorMapElement(name, color, value, sample); }
"The element must be a ConstantColorMapElement"); final ConstantColorMapElement nc = (ConstantColorMapElement) preservingElements[i]; if (nc.getColors().length != 1) throw new IllegalArgumentException("Color size must be 1"); if (i == 0) { outval = nc.getOutputMaximum(); color = nc.getColors()[0]; } else { if (compare(outval, nc.getOutputMaximum()) != 0) throw new IllegalArgumentException("Wrong Color value"); if (!color.equals(nc.getColors()[0])) throw new IllegalArgumentException("Wrong Color value");
/** * @see LinearColorMapElement#ClassificationCategory(CharSequence, Color[], NumberRange, NumberRange) */ public static LinearColorMapElement create(final CharSequence name, final Color color, final short value, final int sample) throws IllegalArgumentException { return new ConstantColorMapElement(name, color, value, sample); }
/** * @see LinearColorMapElement#ClassificationCategory(CharSequence, Color[], NumberRange, NumberRange) */ public static LinearColorMapElement create(final CharSequence name, final Color color, final int value, final int sample) throws IllegalArgumentException { return new ConstantColorMapElement(name, color, value, sample); }
/** * @see LinearColorMapElement#ClassificationCategory(CharSequence, Color[], NumberRange, NumberRange) */ public static LinearColorMapElement create(final CharSequence name, final Color color, final float value, final int sample) throws IllegalArgumentException { return new ConstantColorMapElement(name, color, value, sample); }
/** * @see LinearColorMapElement#ClassificationCategory(CharSequence, Color[], NumberRange, NumberRange) */ public static LinearColorMapElement create(final CharSequence name, final Color color, final double value, final int sample) throws IllegalArgumentException { return new ConstantColorMapElement(name, color, value, sample); }
/** * @see LinearColorMapElement#ClassificationCategory(CharSequence, Color[], NumberRange, NumberRange) */ public static LinearColorMapElement create(final CharSequence name, final Color color, final short value, final int sample) throws IllegalArgumentException { return new ConstantColorMapElement(name, color, value, sample); }
public static LinearColorMapElement create(CharSequence name, final Color color, final Range inRange, final int outVal) throws IllegalArgumentException { return new ConstantColorMapElement(name, color, inRange, outVal); }
public static LinearColorMapElement create(CharSequence name, final Color color, final Range inRange, final int outVal) throws IllegalArgumentException { return new ConstantColorMapElement(name, color, inRange, outVal); }