/* TableStyleDark7.java

	Purpose:
		
	Description:
		
	History:
		Mar 30, 2015 5:17:51 PM, Created by henrichen

	Copyright (C) 2015 Potix Corporation. All Rights Reserved.
*/

package org.zkoss.zssex.model.sys;

import org.zkoss.zss.model.SBorder.BorderType;
import org.zkoss.zss.model.SFill.FillPattern;
import org.zkoss.zss.model.STableStyleElem;
import org.zkoss.zss.model.SFont.Underline;
import org.zkoss.zss.model.impl.BorderImpl;
import org.zkoss.zss.model.impl.BorderLineImpl;
import org.zkoss.zss.model.impl.ExtraFillImpl;
import org.zkoss.zss.model.impl.FontImpl;
import org.zkoss.zss.model.impl.TableStyleElemImpl;
import org.zkoss.zss.model.impl.TableStyleImpl;

/**
 * Builtin TableStyleDark7
 * 
 * @author henri
 * @since 3.8.0
 */
public class TableStyleDark7 extends TableStyleImpl {
	private TableStyleDark7() {
		super(
				"TableStyleDark7",	//name,
				D7_Whole_Table, 	//wholeTable,
				D7_Col_Stripe1, 	//colStripe1,
				1, 					//colStripe1Size,
				null, 				//colStripe2,
				1, 					//colStripe2Size,
				D7_Row_Stripe1, 	//rowStripe1,
				1, 					//rowStripe1Size,
				null,				//rowStripe2,
				1, 					//rowStripe2Size,
				D7_Last_Col, 	//lastCol,
				D7_First_Col,	//firstCol,
				D7_Header_Row,	//headerRow,
				D7_Total_Row,	//totalRow,
				null,	//firstHeaderCell,
				null,	//lastHeaderCell,
				null,	//firstTotalCell,
				null	//lastTotalCell
			);
	}
	private static final ExtraFillImpl D7_General_Fill =
			new ExtraFillImpl(FillPattern.SOLID, "E46D0A", "E46D0A"); //ZSS-1162
	private static final STableStyleElem D7_Col_Stripe1 = 
			new TableStyleElemImpl(
				null,	//font
				D7_General_Fill, 	//fill
				null	//border
			);

	private static final STableStyleElem D7_Row_Stripe1 =
			D7_Col_Stripe1;
	private static final BorderLineImpl D7_Border_Line =
			new BorderLineImpl(BorderType.MEDIUM, "FFFFFF");
	private static final STableStyleElem D7_Last_Col =
			new TableStyleElemImpl(
				new FontImpl("FFFFFF", true /*bold*/, false /*fontItalic*/, 
					false /*fontStrikeout*/, Underline.NONE), 			//font
				D7_General_Fill,	//fill
				new BorderImpl(
						D7_Border_Line, //left 
						null, //top 
						null, //right
						null, //bottom
						null, //diagonal
						null, //vertical
						null  //horizontal
				)
			);
	private static final STableStyleElem D7_First_Col =
			new TableStyleElemImpl(
					new FontImpl("FFFFFF", true /*bold*/, false /*fontItalic*/, 
						false /*fontStrikeout*/, Underline.NONE), 			//font
					D7_General_Fill,	//fill
					new BorderImpl(
							null, //left 
							null, //top 
							D7_Border_Line, //right
							null, //bottom
							null, //diagonal
							null, //vertical
							null  //horizontal
					)
				);
	private static final STableStyleElem D7_Total_Row =
			new TableStyleElemImpl(
					new FontImpl("FFFFFF", true /*bold*/, false /*fontItalic*/, 
							false /*fontStrikeout*/, Underline.NONE), 	//font
					new ExtraFillImpl(FillPattern.SOLID, "974807", "974807"),//fill //ZSS-1162
					new BorderImpl(
							null, //left 
							D7_Border_Line, //top 
							null, //right
							null, //bottom
							null, //diagonal
							null, //vertical
							null  //horizontal
					)
			);
	private static final STableStyleElem D7_Header_Row =
			new TableStyleElemImpl(
					new FontImpl("FFFFFF", true /*bold*/, false /*fontItalic*/, 
							false /*fontStrikeout*/, Underline.NONE), 	//font
					new ExtraFillImpl(FillPattern.SOLID, "000000", "000000"),//fill //ZSS-1162
					new BorderImpl(
							null, //left 
							null, //top
							null, //right
							D7_Border_Line, //bottom 
							null, //diagonal
							null, //vertical
							null  //horizontal
					)
			);
	private static final STableStyleElem D7_Whole_Table = 
			new TableStyleElemImpl(
					new FontImpl("FFFFFF", false /*bold*/, false /*fontItalic*/, 
							false /*fontStrikeout*/, Underline.NONE), 	//font
					new ExtraFillImpl(FillPattern.SOLID, "F79646", "F79646"),//fill //ZSS-1162
					null  //border
			);

	public static final TableStyleDark7 instance = new TableStyleDark7();
}
