private static XColor assembleXcolor(final XSSFColor bcolor,
			final double preTint, final int lumOff, final int lumMod,
			final int alphaInt) {
    """
	assemble xssfcolor with tint/lumoff/lummod/alpha to xcolor.
	
	@param bcolor
	xssfcolor
	@param preTint
	tint
	@param lumOff
	lumOff
	@param lumMod
	lummod
	@param alphaInt
	alpha
	@return xcolor
    """

		if (bcolor == null) {
			return null;
		}

		double tint = preTint;
		if (Double.compare(tint, 0)  == 0) {
			// no preTint
			if (lumOff > 0) {
				tint = lumOff / MILLION_NUMBERS;
			} else {
				if (lumMod > 0) {
					tint = -1 * (lumMod / MILLION_NUMBERS);
				}
			}
		}

		bcolor.setTint(tint);

		double alpha = 0;
		if (alphaInt > 0) {
			alpha = alphaInt / MILLION_NUMBERS;
		}

		return new XColor(bcolor, alpha);

	}
private static XColor assembleXcolor(final XSSFColor bcolor,
			final double preTint, final int lumOff, final int lumMod,
			final int alphaInt) {

		if (bcolor == null) {
			return null;
		}

		double tint = preTint;
		if (Double.compare(tint, 0)  == 0) {
			// no preTint
			if (lumOff > 0) {
				tint = lumOff / MILLION_NUMBERS;
			} else {
				if (lumMod > 0) {
					tint = -1 * (lumMod / MILLION_NUMBERS);
				}
			}
		}

		bcolor.setTint(tint);

		double alpha = 0;
		if (alphaInt > 0) {
			alpha = alphaInt / MILLION_NUMBERS;
		}

		return new XColor(bcolor, alpha);

	}
private static XColor assembleXcolor ( final XSSFColor bcolor , final double preTint , final int lumOff , final int lumMod , final int alphaInt ) { if ( bcolor == null ) { return null ; } double tint = preTint ; if ( Double . compare ( tint , 0 ) == 0 ) { // no preTint
 if ( lumOff > 0 ) { tint = lumOff / MILLION_NUMBERS ; } else { if ( lumMod > 0 ) { tint = - 1 * ( lumMod / MILLION_NUMBERS ) ; } } } bcolor . setTint ( tint ) ; double alpha = 0 ; if ( alphaInt > 0 ) { alpha = alphaInt / MILLION_NUMBERS ; } return new XColor ( bcolor , alpha ) ; }
assemble xssfcolor with tint/lumoff/lummod/alpha to xcolor.

@param bcolor
xssfcolor
@param preTint
tint
@param lumOff
lumOff
@param lumMod
lummod
@param alphaInt
alpha
@return xcolor
assemble xssfcolor with tint / lumoff / lummod / alpha to xcolor .