ui/src/main/java/ucar/nc2/ui/grid/ColorScale.java
public Color getColor(int i) {
    if (i >= 0 && i < ncolors)
      return useColors[i];
    else if (i == ncolors && hasMissingData)
      return missingDataColor;
    else
      throw new IllegalArgumentException("Color Scale getColor " + i);
  }
public Color getColor(int i) {
    if (i >= 0 && i < ncolors)
      return useColors[i];
    else if (i == ncolors && hasMissingData)
      return missingDataColor;
    else
      throw new IllegalArgumentException("Color Scale getColor " + i);
  }
public Color getColor ( int i ) { if ( i >= 0 && i < ncolors ) return useColors [ i ] ; else if ( i == ncolors && hasMissingData ) return missingDataColor ; else throw new IllegalArgumentException ( "Color Scale getColor " + i ) ; }
/* Get the color at the given index, or the missing data color.
@param i index into color array, or ncolors to get missingDataColor.
@exception IllegalArgumentException if (i<0) || (i>ncolors)
/ * Get the color at the given index or the missing data color .