KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > netbeans > modules > xml > multiview > ui > SectionVisualTheme


1 /*
2  * The contents of this file are subject to the terms of the Common Development
3  * and Distribution License (the License). You may not use this file except in
4  * compliance with the License.
5  *
6  * You can obtain a copy of the License at http://www.netbeans.org/cddl.html
7  * or http://www.netbeans.org/cddl.txt.
8  *
9  * When distributing Covered Code, include this CDDL Header Notice in each file
10  * and include the License file at http://www.netbeans.org/cddl.txt.
11  * If applicable, add the following below the CDDL Header, with the fields
12  * enclosed by brackets [] replaced by your own identifying information:
13  * "Portions Copyrighted [year] [name of copyright owner]"
14  *
15  * The Original Software is NetBeans. The Initial Developer of the Original
16  * Software is Sun Microsystems, Inc. Portions Copyright 1997-2006 Sun
17  * Microsystems, Inc. All Rights Reserved.
18  */

19
20 package org.netbeans.modules.xml.multiview.ui;
21
22 import java.awt.*;
23 import java.awt.event.*;
24 import java.beans.*;
25 import java.util.*;
26 import javax.swing.*;
27 import javax.swing.table.*;
28 import javax.swing.event.*;
29
30 /**
31  * This class defines the visual theme (i.e. colors) of the
32  * multiview editor.
33  *
34  * Created on September 24, 2003, 9:14 AM
35  * @author bashby, mkuchtiak
36  */

37 public class SectionVisualTheme {
38
39     /** Creates a new instance of SectionColorTheme */
40      static Color documentBackgroundColor = new java.awt.Color JavaDoc(255, 255, 255);
41      static Color sectionActiveBackgroundColor = new java.awt.Color JavaDoc(252, 250, 245);
42      static Color documentMarginColor = new java.awt.Color JavaDoc(153, 153, 153);
43      static Color sectionHeaderColor = new java.awt.Color JavaDoc(255, 255, 255);
44      static Color containerHeaderColor = new java.awt.Color JavaDoc(230, 228, 223);
45      static Color sectionHeaderActiveColor = new java.awt.Color JavaDoc(250, 232, 213);
46      static Color fillerColor = javax.swing.UIManager.getDefaults().getColor("Button.background"); //NOI18N
47
static Color tableHeaderColor = new java.awt.Color JavaDoc(204, 204, 204);
48      static Color tableGridColor = new java.awt.Color JavaDoc(255, 255, 255);
49      static Color sectionHeaderLineColor = new java.awt.Color JavaDoc(230, 139, 44);
50      static Color hyperlinkColor = new java.awt.Color JavaDoc(0, 0, 255);
51      static Color hyperlinkColorFocused = new java.awt.Color JavaDoc(04,84,145);
52      static Color textColor = new java.awt.Color JavaDoc(0, 0, 0);
53      static Color foldLineColor = new java.awt.Color JavaDoc(102, 102, 102);
54      
55      static Color errorLabelColor = javax.swing.UIManager.getDefaults().getColor("ToolBar.dockingForeground"); //NOI18N
56

57      public SectionVisualTheme() {
58     }
59     
60     static public Color getDocumentBackgroundColor(){
61         return documentBackgroundColor;
62     }
63     static public Color getMarginColor(){
64         return documentMarginColor;
65     }
66     static public Color getSectionHeaderColor(){
67         return sectionHeaderColor;
68     }
69     static public Color getContainerHeaderColor(){
70         return containerHeaderColor;
71     }
72     static public Color getSectionHeaderActiveColor(){
73         return sectionHeaderActiveColor;
74     }
75     static public Color getSectionActiveBackgroundColor(){
76         return sectionActiveBackgroundColor;
77     }
78     static public Color getTableHeaderColor(){
79         return tableHeaderColor;
80     }
81     static public Color getTableGridColor(){
82         return tableGridColor;
83     }
84     
85     static public Color getSectionHeaderLineColor(){
86         return sectionHeaderLineColor;
87     }
88     
89     static public Color getHyperlinkColor(){
90         return hyperlinkColor;
91     }
92     
93     static public Color getHyperlinkColorFocused(){
94         return hyperlinkColorFocused;
95     }
96     
97     static public Color getTextColor(){
98         return textColor;
99     }
100     
101     static public Color getFillerColor(){
102         return fillerColor;
103     }
104     
105     static public Color getErrorLabelColor(){
106         return errorLabelColor;
107     }
108     
109     static public Color getFoldLineColor(){
110         return foldLineColor;
111     }
112     
113 }
114
Popular Tags