src/org/tiefaces/components/websheet/utility/ColorUtility.java
private static XColor getXColorWithSchema(final String colorSchema,
			final double preTint, final CTSchemeColor ctsColor,
			final ThemesTable themeTable) {
		int colorIndex = getThemeIndexFromName(colorSchema);
		if (colorIndex < 0) {
			return null;
		}
		XSSFColor bcolor = themeTable.getThemeColor(colorIndex);
		if (bcolor == null) {
			return null;
		}
		int lumOff = 0;
		int lumMod = 0;
		int alphaInt = 0;
		if (ctsColor != null) {
			try {
				lumOff = ctsColor.getLumOffArray(0).getVal();
			} catch (Exception ex) {
				LOG.log(Level.FINE, "No lumOff entry", ex);
			}
			try {
				lumMod = ctsColor.getLumModArray(0).getVal();
			} catch (Exception ex) {
				LOG.log(Level.FINE, "No lumMod entry", ex);
			}
			try {
				alphaInt = ctsColor.getAlphaArray(0).getVal();
			} catch (Exception ex) {
				LOG.log(Level.FINE, "No alpha entry", ex);
			}
		}
		return assembleXcolor(bcolor, preTint, lumOff, lumMod, alphaInt);
	}
private static XColor getXColorWithSchema(final String colorSchema,
			final double preTint, final CTSchemeColor ctsColor,
			final ThemesTable themeTable) {
		int colorIndex = getThemeIndexFromName(colorSchema);
		if (colorIndex < 0) {
			return null;
		}
		XSSFColor bcolor = themeTable.getThemeColor(colorIndex);
		if (bcolor == null) {
			return null;
		}
		int lumOff = 0;
		int lumMod = 0;
		int alphaInt = 0;
		if (ctsColor != null) {
			try {
				lumOff = ctsColor.getLumOffArray(0).getVal();
			} catch (Exception ex) {
				LOG.log(Level.FINE, "No lumOff entry", ex);
			}
			try {
				lumMod = ctsColor.getLumModArray(0).getVal();
			} catch (Exception ex) {
				LOG.log(Level.FINE, "No lumMod entry", ex);
			}
			try {
				alphaInt = ctsColor.getAlphaArray(0).getVal();
			} catch (Exception ex) {
				LOG.log(Level.FINE, "No alpha entry", ex);
			}
		}
		return assembleXcolor(bcolor, preTint, lumOff, lumMod, alphaInt);
	}
private static XColor getXColorWithSchema ( final String colorSchema , final double preTint , final CTSchemeColor ctsColor , final ThemesTable themeTable ) { int colorIndex = getThemeIndexFromName ( colorSchema ) ; if ( colorIndex < 0 ) { return null ; } XSSFColor bcolor = themeTable . getThemeColor ( colorIndex ) ; if ( bcolor == null ) { return null ; } int lumOff = 0 ; int lumMod = 0 ; int alphaInt = 0 ; if ( ctsColor != null ) { try { lumOff = ctsColor . getLumOffArray ( 0 ) . getVal ( ) ; } catch ( Exception ex ) { LOG . log ( Level . FINE , "No lumOff entry" , ex ) ; } try { lumMod = ctsColor . getLumModArray ( 0 ) . getVal ( ) ; } catch ( Exception ex ) { LOG . log ( Level . FINE , "No lumMod entry" , ex ) ; } try { alphaInt = ctsColor . getAlphaArray ( 0 ) . getVal ( ) ; } catch ( Exception ex ) { LOG . log ( Level . FINE , "No alpha entry" , ex ) ; } } return assembleXcolor ( bcolor , preTint , lumOff , lumMod , alphaInt ) ; }
Get xcolor with color schema name. Normally the names are accent1 to 7.
Sometimes also have lumOff/lumMod/alphaInt setting.

@param colorSchema
color schema
@param preTint
tint
@param ctsColor
ctsColor instance.
@param themeTable
themeTable.
@return xcolor.
Get xcolor with color schema name . Normally the names are accent1 to 7 . Sometimes also have lumOff / lumMod / alphaInt setting .