source: trunk/gli/src/org/greenstone/gatherer/gui/Coloring.java@ 8783

Last change on this file since 8783 was 5589, checked in by mdewsnip, 21 years ago

Nearly finished adding tooltips (and thank goodness for that).

  • Property svn:keywords set to Author Date Id Revision
File size: 6.1 KB
Line 
1/**
2 *#########################################################################
3 *
4 * A component of the Gatherer application, part of the Greenstone digital
5 * library suite from the New Zealand Digital Library Project at the
6 * University of Waikato, New Zealand.
7 *
8 * <BR><BR>
9 *
10 * Author: John Thompson, Greenstone Digital Library, University of Waikato
11 *
12 * <BR><BR>
13 *
14 * Copyright (C) 1999 New Zealand Digital Library Project
15 *
16 * <BR><BR>
17 *
18 * This program is free software; you can redistribute it and/or modify
19 * it under the terms of the GNU General Public License as published by
20 * the Free Software Foundation; either version 2 of the License, or
21 * (at your option) any later version.
22 *
23 * <BR><BR>
24 *
25 * This program is distributed in the hope that it will be useful,
26 * but WITHOUT ANY WARRANTY; without even the implied warranty of
27 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
28 * GNU General Public License for more details.
29 *
30 * <BR><BR>
31 *
32 * You should have received a copy of the GNU General Public License
33 * along with this program; if not, write to the Free Software
34 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
35 *########################################################################
36 */
37package org.greenstone.gatherer.gui;
38
39/**************************************************************************************
40 * Title: Gatherer
41 * Description: The Gatherer: a tool for gathering and enriching a digital collection.
42 * Company: The University of Waikato
43 * Written: / /02
44 * Revised: 03/10/02 - Commented
45 **************************************************************************************/
46import java.awt.Color;
47import java.io.Serializable;
48/** The coloring object is part of the Gatherers configuration, and stores the various colours used to render parts of the interface. In general these colours fall into three groups, those for the workspace, those for the collection and all other colour components.
49 * @author John Thompson
50 * @version 2.3
51 */
52public class Coloring
53 implements Serializable {
54 /** The color of a buttons background. */
55 public Color button_background;
56 /** The color of a buttons foreground. */
57 public Color button_foreground;
58 /** The background color used to indicate that a button has been clicked or selected. */
59 public Color button_selected_background;
60 /** The foreground color used to indicate that a button has been clicked or selected. */
61 public Color button_selected_foreground;
62 /** The color used for the background of the collection label. */
63 public Color collection_heading_background = null;
64 /** The color used for the text of the collection label. */
65 public Color collection_heading_foreground = null;
66 /** The color used for the background of controls in the collection that are non-editable. */
67 public Color collection_noneditable_background = null;
68 /** The color used for the foreground of controls in the collection that are non-editable. */
69 public Color collection_noneditable_foreground = null;
70 /** The color used for the background of a selection from the collection. */
71 public Color collection_selection_background = null;
72 /** The color used for the text of a selection from the collection. */
73 public Color collection_selection_foreground = null;
74 /** The color used for the background of a collection oriented component. */
75 public Color collection_tree_background = null;
76 /** The color used for the text of a collection oriented component. */
77 public Color collection_tree_foreground = null;
78 /** The color used for the background of an error state oriented component. */
79 public Color error_background;
80 /** The color used for the text of an error state oriented component. */
81 public Color error_foreground;
82 /** The color used for the background (behind the slider) part of a scroll bar. */
83 public Color scrollbar_background;
84 /** The color usef for the foreground (slider and arrows) parts of a scroll bar. */
85 public Color scrollbar_foreground;
86 /** The color used for the background of the workspace label. */
87 public Color workspace_heading_background = null;
88 /** The color used for the text of the workspace label. */
89 public Color workspace_heading_foreground = null;
90 /** The color used for the background of a selection from the workspace. */
91 public Color workspace_selection_background = null;
92 /** The color used for the text of a selection from the workspace. */
93 public Color workspace_selection_foreground = null;
94 /** The color used for the background of a workspace oriented component. */
95 public Color workspace_tree_background = null;
96 /** The color used for the text of a workspace oriented component. */
97 public Color workspace_tree_foreground = null;
98 /** Constructor. Uses default colors.
99 */
100 public Coloring() {
101 // Default Values.
102 // Collection
103 collection_heading_background = new Color(176, 208, 176);
104 collection_heading_foreground = Color.black;
105 collection_selection_background = new Color(128, 180, 216);
106 collection_selection_foreground = Color.black;
107 collection_tree_background = new Color(224, 240, 224);
108 collection_tree_foreground = Color.black;
109 collection_noneditable_background = Color.lightGray;
110 collection_noneditable_foreground = Color.black;
111 // Other
112 button_background = Color.white;
113 button_foreground = Color.black;
114 button_selected_background = new Color(128, 180, 216);
115 button_selected_foreground = Color.white;
116 error_background = new Color(250, 180, 180);
117 error_foreground = Color.red;
118 scrollbar_background = Color.lightGray;
119 scrollbar_foreground = Color.white;
120 // Workspace
121 workspace_heading_background = new Color(128, 180, 216);
122 workspace_heading_foreground = Color.black;
123 workspace_selection_background = new Color(176, 208, 176);
124 workspace_selection_foreground = Color.black;
125 workspace_tree_background = new Color(218, 237, 252);
126 workspace_tree_foreground = Color.black;
127 }
128}
Note: See TracBrowser for help on using the repository browser.