public ImageRGBDisplayable(String name, float[][] colorPalette, boolean doAlpha, FieldImpl field) throws VisADException, RemoteException { super(name); this.doAlpha = doAlpha; if (doAlpha) { mapType = Display.RGBA; colorMaps = new ScalarMap[] {null, null, null, null}; } addConstantMaps( new ConstantMap[] { new ConstantMap(GraphicsModeControl.SUM_COLOR_MODE, Display.ColorMode), new ConstantMap(1.0, Display.MissingTransparent) }); if (field != null) { TupleType tt = GridUtil.getParamType(field); RealTupleType ffldType = new RealTupleType(tt.getRealComponents()); if ((getColorTupleType() == null) || !ffldType.equals(getColorTupleType())) { setColorTupleType(ffldType); } } }