KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > ui > internal > presentations > r33 > DefaultTabFolderColors


1 /*******************************************************************************
2  * Copyright (c) 2004, 2007 IBM Corporation and others.
3  * All rights reserved. This program and the accompanying materials
4  * are made available under the terms of the Eclipse Public License v1.0
5  * which accompanies this distribution, and is available at
6  * http://www.eclipse.org/legal/epl-v10.html
7  *
8  * Contributors:
9  * IBM Corporation - initial API and implementation
10  *******************************************************************************/

11 package org.eclipse.ui.internal.presentations.r33;
12
13 import org.eclipse.swt.graphics.Color;
14
15 /**
16  * @since 3.1
17  */

18 public final class DefaultTabFolderColors {
19     Color foreground;
20     int[] percentages;
21     Color[] background;
22     boolean vertical;
23     
24     public DefaultTabFolderColors() {
25         
26     }
27     
28     public DefaultTabFolderColors(Color fgColor, Color[] bgColors,
29             int[] percentages, boolean vertical) {
30         
31         foreground = fgColor;
32         background = bgColors;
33         this.percentages = percentages;
34         this.vertical = vertical;
35     }
36     
37     public DefaultTabFolderColors setForeground(Color fg) {
38         foreground = fg;
39         return this;
40     }
41     
42     public DefaultTabFolderColors setBackground(Color[] background, int[] percentages, boolean vertical) {
43         this.background = background;
44         this.percentages = percentages;
45         this.vertical = vertical;
46         return this;
47     }
48 }
49
Popular Tags