01: /*******************************************************************************
02: * Copyright (c) 2004, 2007 IBM Corporation and others.
03: * All rights reserved. This program and the accompanying materials
04: * are made available under the terms of the Eclipse Public License v1.0
05: * which accompanies this distribution, and is available at
06: * http://www.eclipse.org/legal/epl-v10.html
07: *
08: * Contributors:
09: * IBM Corporation - initial API and implementation
10: *******************************************************************************/package org.eclipse.ui.internal.presentations.r33;
11:
12: import org.eclipse.swt.graphics.Color;
13:
14: /**
15: * @since 3.1
16: */
17: public final class DefaultTabFolderColors {
18: Color foreground;
19: int[] percentages;
20: Color[] background;
21: boolean vertical;
22:
23: public DefaultTabFolderColors() {
24:
25: }
26:
27: public DefaultTabFolderColors(Color fgColor, Color[] bgColors,
28: int[] percentages, boolean vertical) {
29:
30: foreground = fgColor;
31: background = bgColors;
32: this .percentages = percentages;
33: this .vertical = vertical;
34: }
35:
36: public DefaultTabFolderColors setForeground(Color fg) {
37: foreground = fg;
38: return this ;
39: }
40:
41: public DefaultTabFolderColors setBackground(Color[] background,
42: int[] percentages, boolean vertical) {
43: this.background = background;
44: this.percentages = percentages;
45: this.vertical = vertical;
46: return this;
47: }
48: }
|