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

Last change on this file since 4448 was 4367, checked in by mdewsnip, 21 years ago

Fixed tabbing.

  • Property svn:keywords set to Author Date Id Revision
File size: 6.0 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 */
37
38
39
40
41
42
43/* GPL_HEADER */
44package org.greenstone.gatherer.gui;
45/**************************************************************************************
46 * Title: Gatherer
47 * Description: The Gatherer: a tool for gathering and enriching a digital collection.
48 * Company: The University of Waikato
49 * Written: / /02
50 * Revised: 03/10/02 - Commented
51 **************************************************************************************/
52import java.awt.Color;
53import java.io.Serializable;
54/** 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.
55 * @author John Thompson
56 * @version 2.3
57 */
58public class Coloring
59 implements Serializable {
60 /** The color of a buttons background. */
61 public Color button_background;
62 /** The color of a buttons foreground. */
63 public Color button_foreground;
64 /** The background color used to indicate that a button has been clicked or selected. */
65 public Color button_selected_background;
66 /** The foreground color used to indicate that a button has been clicked or selected. */
67 public Color button_selected_foreground;
68 /** The color used for the background of the collection label. */
69 public Color collection_heading_background = null;
70 /** The color used for the text of the collection label. */
71 public Color collection_heading_foreground = null;
72 /** The color used for the background of controls in the collection that are non-editable. */
73 public Color collection_noneditable_background = null;
74 /** The color used for the foreground of controls in the collection that are non-editable. */
75 public Color collection_noneditable_foreground = null;
76 /** The color used for the background of a selection from the collection. */
77 public Color collection_selection_background = null;
78 /** The color used for the text of a selection from the collection. */
79 public Color collection_selection_foreground = null;
80 /** The color used for the background of a collection oriented component. */
81 public Color collection_tree_background = null;
82 /** The color used for the text of a collection oriented component. */
83 public Color collection_tree_foreground = null;
84 /** The color used for the background of an error state oriented component. */
85 public Color error_background;
86 /** The color used for the text of an error state oriented component. */
87 public Color error_foreground;
88 /** The color used for the background (behind the slider) part of a scroll bar. */
89 public Color scrollbar_background;
90 /** The color usef for the foreground (slider and arrows) parts of a scroll bar. */
91 public Color scrollbar_foreground;
92 /** The color used for the background of the workspace label. */
93 public Color workspace_heading_background = null;
94 /** The color used for the text of the workspace label. */
95 public Color workspace_heading_foreground = null;
96 /** The color used for the background of a selection from the workspace. */
97 public Color workspace_selection_background = null;
98 /** The color used for the text of a selection from the workspace. */
99 public Color workspace_selection_foreground = null;
100 /** The color used for the background of a workspace oriented component. */
101 public Color workspace_tree_background = null;
102 /** The color used for the text of a workspace oriented component. */
103 public Color workspace_tree_foreground = null;
104 /** Constructor. Uses default colors.
105 */
106 public Coloring() {
107 // Default Values.
108 // Collection
109 collection_heading_background = new Color(176, 208, 176);
110 collection_heading_foreground = Color.black;
111 collection_selection_background = new Color(128, 180, 216);
112 collection_selection_foreground = Color.black;
113 collection_tree_background = new Color(224, 240, 224);
114 collection_tree_foreground = Color.black;
115 collection_noneditable_background = Color.lightGray;
116 collection_noneditable_foreground = Color.black;
117 // Other
118 button_background = Color.white;
119 button_foreground = Color.black;
120 button_selected_background = new Color(128, 180, 216);
121 button_selected_foreground = Color.white;
122 error_background = new Color(250, 180, 180);
123 error_foreground = Color.red;
124 scrollbar_background = Color.lightGray;
125 scrollbar_foreground = Color.white;
126 // Workspace
127 workspace_heading_background = new Color(128, 180, 216);
128 workspace_heading_foreground = Color.black;
129 workspace_selection_background = new Color(176, 208, 176);
130 workspace_selection_foreground = Color.black;
131 workspace_tree_background = new Color(218, 237, 252);
132 workspace_tree_foreground = Color.black;
133 }
134}
Note: See TracBrowser for help on using the repository browser.