annotate dwtx/draw2d/ColorConstants.d @ 102:0de61c6f08ca

Reduce static ctors
author Frank Benoit <benoit@tionex.de>
date Sun, 03 Aug 2008 03:07:30 +0200
parents 95307ad235d9
children 2d6540440fe6
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
98
95307ad235d9 Added Draw2d code, still work in progress
Frank Benoit <benoit@tionex.de>
parents:
diff changeset
1 /*******************************************************************************
95307ad235d9 Added Draw2d code, still work in progress
Frank Benoit <benoit@tionex.de>
parents:
diff changeset
2 * Copyright (c) 2000, 2008 IBM Corporation and others.
95307ad235d9 Added Draw2d code, still work in progress
Frank Benoit <benoit@tionex.de>
parents:
diff changeset
3 * All rights reserved. This program and the accompanying materials
95307ad235d9 Added Draw2d code, still work in progress
Frank Benoit <benoit@tionex.de>
parents:
diff changeset
4 * are made available under the terms of the Eclipse Public License v1.0
95307ad235d9 Added Draw2d code, still work in progress
Frank Benoit <benoit@tionex.de>
parents:
diff changeset
5 * which accompanies this distribution, and is available at
95307ad235d9 Added Draw2d code, still work in progress
Frank Benoit <benoit@tionex.de>
parents:
diff changeset
6 * http://www.eclipse.org/legal/epl-v10.html
95307ad235d9 Added Draw2d code, still work in progress
Frank Benoit <benoit@tionex.de>
parents:
diff changeset
7 *
95307ad235d9 Added Draw2d code, still work in progress
Frank Benoit <benoit@tionex.de>
parents:
diff changeset
8 * Contributors:
95307ad235d9 Added Draw2d code, still work in progress
Frank Benoit <benoit@tionex.de>
parents:
diff changeset
9 * IBM Corporation - initial API and implementation
95307ad235d9 Added Draw2d code, still work in progress
Frank Benoit <benoit@tionex.de>
parents:
diff changeset
10 * Port to the D programming language:
95307ad235d9 Added Draw2d code, still work in progress
Frank Benoit <benoit@tionex.de>
parents:
diff changeset
11 * Frank Benoit <benoit@tionex.de>
95307ad235d9 Added Draw2d code, still work in progress
Frank Benoit <benoit@tionex.de>
parents:
diff changeset
12 *******************************************************************************/
95307ad235d9 Added Draw2d code, still work in progress
Frank Benoit <benoit@tionex.de>
parents:
diff changeset
13 module dwtx.draw2d.ColorConstants;
95307ad235d9 Added Draw2d code, still work in progress
Frank Benoit <benoit@tionex.de>
parents:
diff changeset
14
95307ad235d9 Added Draw2d code, still work in progress
Frank Benoit <benoit@tionex.de>
parents:
diff changeset
15 import dwt.dwthelper.utils;
95307ad235d9 Added Draw2d code, still work in progress
Frank Benoit <benoit@tionex.de>
parents:
diff changeset
16 import dwt.dwthelper.Runnable;
95307ad235d9 Added Draw2d code, still work in progress
Frank Benoit <benoit@tionex.de>
parents:
diff changeset
17 import tango.core.sync.Mutex;
95307ad235d9 Added Draw2d code, still work in progress
Frank Benoit <benoit@tionex.de>
parents:
diff changeset
18
95307ad235d9 Added Draw2d code, still work in progress
Frank Benoit <benoit@tionex.de>
parents:
diff changeset
19 import dwt.DWT;
95307ad235d9 Added Draw2d code, still work in progress
Frank Benoit <benoit@tionex.de>
parents:
diff changeset
20 import dwt.graphics.Color;
95307ad235d9 Added Draw2d code, still work in progress
Frank Benoit <benoit@tionex.de>
parents:
diff changeset
21 import dwt.widgets.Display;
95307ad235d9 Added Draw2d code, still work in progress
Frank Benoit <benoit@tionex.de>
parents:
diff changeset
22
95307ad235d9 Added Draw2d code, still work in progress
Frank Benoit <benoit@tionex.de>
parents:
diff changeset
23 /**
95307ad235d9 Added Draw2d code, still work in progress
Frank Benoit <benoit@tionex.de>
parents:
diff changeset
24 * A collection of color-related constants.
95307ad235d9 Added Draw2d code, still work in progress
Frank Benoit <benoit@tionex.de>
parents:
diff changeset
25 */
95307ad235d9 Added Draw2d code, still work in progress
Frank Benoit <benoit@tionex.de>
parents:
diff changeset
26 public struct ColorConstants {
95307ad235d9 Added Draw2d code, still work in progress
Frank Benoit <benoit@tionex.de>
parents:
diff changeset
27
95307ad235d9 Added Draw2d code, still work in progress
Frank Benoit <benoit@tionex.de>
parents:
diff changeset
28 private static Color getColor(int which) {
95307ad235d9 Added Draw2d code, still work in progress
Frank Benoit <benoit@tionex.de>
parents:
diff changeset
29 Display display = Display.getCurrent();
95307ad235d9 Added Draw2d code, still work in progress
Frank Benoit <benoit@tionex.de>
parents:
diff changeset
30 if (display !is null)
95307ad235d9 Added Draw2d code, still work in progress
Frank Benoit <benoit@tionex.de>
parents:
diff changeset
31 return display.getSystemColor(which);
95307ad235d9 Added Draw2d code, still work in progress
Frank Benoit <benoit@tionex.de>
parents:
diff changeset
32 display = Display.getDefault();
95307ad235d9 Added Draw2d code, still work in progress
Frank Benoit <benoit@tionex.de>
parents:
diff changeset
33 Color result;
95307ad235d9 Added Draw2d code, still work in progress
Frank Benoit <benoit@tionex.de>
parents:
diff changeset
34 scope Mutex mutex = new Mutex;
95307ad235d9 Added Draw2d code, still work in progress
Frank Benoit <benoit@tionex.de>
parents:
diff changeset
35 display.syncExec(dgRunnable( {
95307ad235d9 Added Draw2d code, still work in progress
Frank Benoit <benoit@tionex.de>
parents:
diff changeset
36 synchronized (mutex) {
95307ad235d9 Added Draw2d code, still work in progress
Frank Benoit <benoit@tionex.de>
parents:
diff changeset
37 result = Display.getCurrent().getSystemColor(which);
95307ad235d9 Added Draw2d code, still work in progress
Frank Benoit <benoit@tionex.de>
parents:
diff changeset
38 }
95307ad235d9 Added Draw2d code, still work in progress
Frank Benoit <benoit@tionex.de>
parents:
diff changeset
39 } ));
95307ad235d9 Added Draw2d code, still work in progress
Frank Benoit <benoit@tionex.de>
parents:
diff changeset
40 synchronized (mutex) {
95307ad235d9 Added Draw2d code, still work in progress
Frank Benoit <benoit@tionex.de>
parents:
diff changeset
41 return result;
95307ad235d9 Added Draw2d code, still work in progress
Frank Benoit <benoit@tionex.de>
parents:
diff changeset
42 }
95307ad235d9 Added Draw2d code, still work in progress
Frank Benoit <benoit@tionex.de>
parents:
diff changeset
43 }
95307ad235d9 Added Draw2d code, still work in progress
Frank Benoit <benoit@tionex.de>
parents:
diff changeset
44
95307ad235d9 Added Draw2d code, still work in progress
Frank Benoit <benoit@tionex.de>
parents:
diff changeset
45 /**
95307ad235d9 Added Draw2d code, still work in progress
Frank Benoit <benoit@tionex.de>
parents:
diff changeset
46 * @see DWT#COLOR_WIDGET_HIGHLIGHT_SHADOW
95307ad235d9 Added Draw2d code, still work in progress
Frank Benoit <benoit@tionex.de>
parents:
diff changeset
47 */
102
0de61c6f08ca Reduce static ctors
Frank Benoit <benoit@tionex.de>
parents: 98
diff changeset
48 private static Color buttonLightest_;
0de61c6f08ca Reduce static ctors
Frank Benoit <benoit@tionex.de>
parents: 98
diff changeset
49 public static Color buttonLightest(){
0de61c6f08ca Reduce static ctors
Frank Benoit <benoit@tionex.de>
parents: 98
diff changeset
50 if( buttonLightest_ is null ){
0de61c6f08ca Reduce static ctors
Frank Benoit <benoit@tionex.de>
parents: 98
diff changeset
51 buttonLightest_ = getColor(DWT.COLOR_WIDGET_HIGHLIGHT_SHADOW);
0de61c6f08ca Reduce static ctors
Frank Benoit <benoit@tionex.de>
parents: 98
diff changeset
52 }
0de61c6f08ca Reduce static ctors
Frank Benoit <benoit@tionex.de>
parents: 98
diff changeset
53 return buttonLightest_;
0de61c6f08ca Reduce static ctors
Frank Benoit <benoit@tionex.de>
parents: 98
diff changeset
54 }
98
95307ad235d9 Added Draw2d code, still work in progress
Frank Benoit <benoit@tionex.de>
parents:
diff changeset
55 /**
95307ad235d9 Added Draw2d code, still work in progress
Frank Benoit <benoit@tionex.de>
parents:
diff changeset
56 * @see DWT#COLOR_WIDGET_BACKGROUND
95307ad235d9 Added Draw2d code, still work in progress
Frank Benoit <benoit@tionex.de>
parents:
diff changeset
57 */
102
0de61c6f08ca Reduce static ctors
Frank Benoit <benoit@tionex.de>
parents: 98
diff changeset
58 private static Color button_;
0de61c6f08ca Reduce static ctors
Frank Benoit <benoit@tionex.de>
parents: 98
diff changeset
59 public static Color button(){
0de61c6f08ca Reduce static ctors
Frank Benoit <benoit@tionex.de>
parents: 98
diff changeset
60 if( button_ is null ){
0de61c6f08ca Reduce static ctors
Frank Benoit <benoit@tionex.de>
parents: 98
diff changeset
61 button_ = getColor(DWT.COLOR_WIDGET_BACKGROUND);
0de61c6f08ca Reduce static ctors
Frank Benoit <benoit@tionex.de>
parents: 98
diff changeset
62 }
0de61c6f08ca Reduce static ctors
Frank Benoit <benoit@tionex.de>
parents: 98
diff changeset
63 return button_;
0de61c6f08ca Reduce static ctors
Frank Benoit <benoit@tionex.de>
parents: 98
diff changeset
64 }
98
95307ad235d9 Added Draw2d code, still work in progress
Frank Benoit <benoit@tionex.de>
parents:
diff changeset
65 /**
95307ad235d9 Added Draw2d code, still work in progress
Frank Benoit <benoit@tionex.de>
parents:
diff changeset
66 * @see DWT#COLOR_WIDGET_NORMAL_SHADOW
95307ad235d9 Added Draw2d code, still work in progress
Frank Benoit <benoit@tionex.de>
parents:
diff changeset
67 */
102
0de61c6f08ca Reduce static ctors
Frank Benoit <benoit@tionex.de>
parents: 98
diff changeset
68 private static Color buttonDarker_;
0de61c6f08ca Reduce static ctors
Frank Benoit <benoit@tionex.de>
parents: 98
diff changeset
69 public static Color buttonDarker(){
0de61c6f08ca Reduce static ctors
Frank Benoit <benoit@tionex.de>
parents: 98
diff changeset
70 if( buttonDarker_ is null ){
0de61c6f08ca Reduce static ctors
Frank Benoit <benoit@tionex.de>
parents: 98
diff changeset
71 buttonDarker_ = getColor(DWT.COLOR_WIDGET_NORMAL_SHADOW);
0de61c6f08ca Reduce static ctors
Frank Benoit <benoit@tionex.de>
parents: 98
diff changeset
72 }
0de61c6f08ca Reduce static ctors
Frank Benoit <benoit@tionex.de>
parents: 98
diff changeset
73 return buttonDarker_;
0de61c6f08ca Reduce static ctors
Frank Benoit <benoit@tionex.de>
parents: 98
diff changeset
74 }
98
95307ad235d9 Added Draw2d code, still work in progress
Frank Benoit <benoit@tionex.de>
parents:
diff changeset
75 /**
95307ad235d9 Added Draw2d code, still work in progress
Frank Benoit <benoit@tionex.de>
parents:
diff changeset
76 * @see DWT#COLOR_WIDGET_DARK_SHADOW
95307ad235d9 Added Draw2d code, still work in progress
Frank Benoit <benoit@tionex.de>
parents:
diff changeset
77 */
102
0de61c6f08ca Reduce static ctors
Frank Benoit <benoit@tionex.de>
parents: 98
diff changeset
78 private static Color buttonDarkest_;
0de61c6f08ca Reduce static ctors
Frank Benoit <benoit@tionex.de>
parents: 98
diff changeset
79 public static Color buttonDarkest(){
0de61c6f08ca Reduce static ctors
Frank Benoit <benoit@tionex.de>
parents: 98
diff changeset
80 if( buttonDarkest_ is null ){
0de61c6f08ca Reduce static ctors
Frank Benoit <benoit@tionex.de>
parents: 98
diff changeset
81 buttonDarkest_ = getColor(DWT.COLOR_WIDGET_DARK_SHADOW);
0de61c6f08ca Reduce static ctors
Frank Benoit <benoit@tionex.de>
parents: 98
diff changeset
82 }
0de61c6f08ca Reduce static ctors
Frank Benoit <benoit@tionex.de>
parents: 98
diff changeset
83 return buttonDarkest_;
0de61c6f08ca Reduce static ctors
Frank Benoit <benoit@tionex.de>
parents: 98
diff changeset
84 }
98
95307ad235d9 Added Draw2d code, still work in progress
Frank Benoit <benoit@tionex.de>
parents:
diff changeset
85
95307ad235d9 Added Draw2d code, still work in progress
Frank Benoit <benoit@tionex.de>
parents:
diff changeset
86 /**
95307ad235d9 Added Draw2d code, still work in progress
Frank Benoit <benoit@tionex.de>
parents:
diff changeset
87 * @see DWT#COLOR_LIST_BACKGROUND
95307ad235d9 Added Draw2d code, still work in progress
Frank Benoit <benoit@tionex.de>
parents:
diff changeset
88 */
102
0de61c6f08ca Reduce static ctors
Frank Benoit <benoit@tionex.de>
parents: 98
diff changeset
89 private static Color listBackground_;
0de61c6f08ca Reduce static ctors
Frank Benoit <benoit@tionex.de>
parents: 98
diff changeset
90 public static Color listBackground(){
0de61c6f08ca Reduce static ctors
Frank Benoit <benoit@tionex.de>
parents: 98
diff changeset
91 if( listBackground_ is null ){
0de61c6f08ca Reduce static ctors
Frank Benoit <benoit@tionex.de>
parents: 98
diff changeset
92 listBackground_ = getColor(DWT.COLOR_LIST_BACKGROUND);
0de61c6f08ca Reduce static ctors
Frank Benoit <benoit@tionex.de>
parents: 98
diff changeset
93 }
0de61c6f08ca Reduce static ctors
Frank Benoit <benoit@tionex.de>
parents: 98
diff changeset
94 return listBackground_;
0de61c6f08ca Reduce static ctors
Frank Benoit <benoit@tionex.de>
parents: 98
diff changeset
95 }
98
95307ad235d9 Added Draw2d code, still work in progress
Frank Benoit <benoit@tionex.de>
parents:
diff changeset
96 /**
95307ad235d9 Added Draw2d code, still work in progress
Frank Benoit <benoit@tionex.de>
parents:
diff changeset
97 * @see DWT#COLOR_LIST_FOREGROUND
95307ad235d9 Added Draw2d code, still work in progress
Frank Benoit <benoit@tionex.de>
parents:
diff changeset
98 */
102
0de61c6f08ca Reduce static ctors
Frank Benoit <benoit@tionex.de>
parents: 98
diff changeset
99 private static Color listForeground_;
0de61c6f08ca Reduce static ctors
Frank Benoit <benoit@tionex.de>
parents: 98
diff changeset
100 public static Color listForeground(){
0de61c6f08ca Reduce static ctors
Frank Benoit <benoit@tionex.de>
parents: 98
diff changeset
101 if( listForeground_ is null ){
0de61c6f08ca Reduce static ctors
Frank Benoit <benoit@tionex.de>
parents: 98
diff changeset
102 listForeground_ = getColor(DWT.COLOR_LIST_FOREGROUND);
0de61c6f08ca Reduce static ctors
Frank Benoit <benoit@tionex.de>
parents: 98
diff changeset
103 }
0de61c6f08ca Reduce static ctors
Frank Benoit <benoit@tionex.de>
parents: 98
diff changeset
104 return listForeground_;
0de61c6f08ca Reduce static ctors
Frank Benoit <benoit@tionex.de>
parents: 98
diff changeset
105 }
98
95307ad235d9 Added Draw2d code, still work in progress
Frank Benoit <benoit@tionex.de>
parents:
diff changeset
106
95307ad235d9 Added Draw2d code, still work in progress
Frank Benoit <benoit@tionex.de>
parents:
diff changeset
107 /**
95307ad235d9 Added Draw2d code, still work in progress
Frank Benoit <benoit@tionex.de>
parents:
diff changeset
108 * @see DWT#COLOR_WIDGET_BACKGROUND
95307ad235d9 Added Draw2d code, still work in progress
Frank Benoit <benoit@tionex.de>
parents:
diff changeset
109 */
102
0de61c6f08ca Reduce static ctors
Frank Benoit <benoit@tionex.de>
parents: 98
diff changeset
110 private static Color menuBackground_;
0de61c6f08ca Reduce static ctors
Frank Benoit <benoit@tionex.de>
parents: 98
diff changeset
111 public static Color menuBackground(){
0de61c6f08ca Reduce static ctors
Frank Benoit <benoit@tionex.de>
parents: 98
diff changeset
112 if( menuBackground_ is null ){
0de61c6f08ca Reduce static ctors
Frank Benoit <benoit@tionex.de>
parents: 98
diff changeset
113 menuBackground_ = getColor(DWT.COLOR_WIDGET_BACKGROUND);
0de61c6f08ca Reduce static ctors
Frank Benoit <benoit@tionex.de>
parents: 98
diff changeset
114 }
0de61c6f08ca Reduce static ctors
Frank Benoit <benoit@tionex.de>
parents: 98
diff changeset
115 return menuBackground_;
0de61c6f08ca Reduce static ctors
Frank Benoit <benoit@tionex.de>
parents: 98
diff changeset
116 }
98
95307ad235d9 Added Draw2d code, still work in progress
Frank Benoit <benoit@tionex.de>
parents:
diff changeset
117 /**
95307ad235d9 Added Draw2d code, still work in progress
Frank Benoit <benoit@tionex.de>
parents:
diff changeset
118 * @see DWT#COLOR_WIDGET_FOREGROUND
95307ad235d9 Added Draw2d code, still work in progress
Frank Benoit <benoit@tionex.de>
parents:
diff changeset
119 */
102
0de61c6f08ca Reduce static ctors
Frank Benoit <benoit@tionex.de>
parents: 98
diff changeset
120 private static Color menuForeground_;
0de61c6f08ca Reduce static ctors
Frank Benoit <benoit@tionex.de>
parents: 98
diff changeset
121 public static Color menuForeground(){
0de61c6f08ca Reduce static ctors
Frank Benoit <benoit@tionex.de>
parents: 98
diff changeset
122 if( menuForeground_ is null ){
0de61c6f08ca Reduce static ctors
Frank Benoit <benoit@tionex.de>
parents: 98
diff changeset
123 menuForeground_ = getColor(DWT.COLOR_WIDGET_FOREGROUND);
0de61c6f08ca Reduce static ctors
Frank Benoit <benoit@tionex.de>
parents: 98
diff changeset
124 }
0de61c6f08ca Reduce static ctors
Frank Benoit <benoit@tionex.de>
parents: 98
diff changeset
125 return menuForeground_;
0de61c6f08ca Reduce static ctors
Frank Benoit <benoit@tionex.de>
parents: 98
diff changeset
126 }
98
95307ad235d9 Added Draw2d code, still work in progress
Frank Benoit <benoit@tionex.de>
parents:
diff changeset
127 /**
95307ad235d9 Added Draw2d code, still work in progress
Frank Benoit <benoit@tionex.de>
parents:
diff changeset
128 * @see DWT#COLOR_LIST_SELECTION
95307ad235d9 Added Draw2d code, still work in progress
Frank Benoit <benoit@tionex.de>
parents:
diff changeset
129 */
102
0de61c6f08ca Reduce static ctors
Frank Benoit <benoit@tionex.de>
parents: 98
diff changeset
130 private static Color menuBackgroundSelected_;
0de61c6f08ca Reduce static ctors
Frank Benoit <benoit@tionex.de>
parents: 98
diff changeset
131 public static Color menuBackgroundSelected(){
0de61c6f08ca Reduce static ctors
Frank Benoit <benoit@tionex.de>
parents: 98
diff changeset
132 if( menuBackgroundSelected_ is null ){
0de61c6f08ca Reduce static ctors
Frank Benoit <benoit@tionex.de>
parents: 98
diff changeset
133 menuBackgroundSelected_ = getColor(DWT.COLOR_LIST_SELECTION);
0de61c6f08ca Reduce static ctors
Frank Benoit <benoit@tionex.de>
parents: 98
diff changeset
134 }
0de61c6f08ca Reduce static ctors
Frank Benoit <benoit@tionex.de>
parents: 98
diff changeset
135 return menuBackgroundSelected_;
0de61c6f08ca Reduce static ctors
Frank Benoit <benoit@tionex.de>
parents: 98
diff changeset
136 }
98
95307ad235d9 Added Draw2d code, still work in progress
Frank Benoit <benoit@tionex.de>
parents:
diff changeset
137 /**
95307ad235d9 Added Draw2d code, still work in progress
Frank Benoit <benoit@tionex.de>
parents:
diff changeset
138 * @see DWT#COLOR_LIST_SELECTION_TEXT
95307ad235d9 Added Draw2d code, still work in progress
Frank Benoit <benoit@tionex.de>
parents:
diff changeset
139 */
102
0de61c6f08ca Reduce static ctors
Frank Benoit <benoit@tionex.de>
parents: 98
diff changeset
140 private static Color menuForegroundSelected_;
0de61c6f08ca Reduce static ctors
Frank Benoit <benoit@tionex.de>
parents: 98
diff changeset
141 public static Color menuForegroundSelected(){
0de61c6f08ca Reduce static ctors
Frank Benoit <benoit@tionex.de>
parents: 98
diff changeset
142 if( menuForegroundSelected_ is null ){
0de61c6f08ca Reduce static ctors
Frank Benoit <benoit@tionex.de>
parents: 98
diff changeset
143 menuForegroundSelected_ = getColor(DWT.COLOR_LIST_SELECTION_TEXT);
0de61c6f08ca Reduce static ctors
Frank Benoit <benoit@tionex.de>
parents: 98
diff changeset
144 }
0de61c6f08ca Reduce static ctors
Frank Benoit <benoit@tionex.de>
parents: 98
diff changeset
145 return menuForegroundSelected_;
0de61c6f08ca Reduce static ctors
Frank Benoit <benoit@tionex.de>
parents: 98
diff changeset
146 }
98
95307ad235d9 Added Draw2d code, still work in progress
Frank Benoit <benoit@tionex.de>
parents:
diff changeset
147
95307ad235d9 Added Draw2d code, still work in progress
Frank Benoit <benoit@tionex.de>
parents:
diff changeset
148 /**
95307ad235d9 Added Draw2d code, still work in progress
Frank Benoit <benoit@tionex.de>
parents:
diff changeset
149 * @see DWT#COLOR_TITLE_BACKGROUND
95307ad235d9 Added Draw2d code, still work in progress
Frank Benoit <benoit@tionex.de>
parents:
diff changeset
150 */
102
0de61c6f08ca Reduce static ctors
Frank Benoit <benoit@tionex.de>
parents: 98
diff changeset
151 private static Color titleBackground_;
0de61c6f08ca Reduce static ctors
Frank Benoit <benoit@tionex.de>
parents: 98
diff changeset
152 public static Color titleBackground(){
0de61c6f08ca Reduce static ctors
Frank Benoit <benoit@tionex.de>
parents: 98
diff changeset
153 if( titleBackground_ is null ){
0de61c6f08ca Reduce static ctors
Frank Benoit <benoit@tionex.de>
parents: 98
diff changeset
154 titleBackground_ = getColor(DWT.COLOR_TITLE_BACKGROUND);
0de61c6f08ca Reduce static ctors
Frank Benoit <benoit@tionex.de>
parents: 98
diff changeset
155 }
0de61c6f08ca Reduce static ctors
Frank Benoit <benoit@tionex.de>
parents: 98
diff changeset
156 return titleBackground_;
0de61c6f08ca Reduce static ctors
Frank Benoit <benoit@tionex.de>
parents: 98
diff changeset
157 }
98
95307ad235d9 Added Draw2d code, still work in progress
Frank Benoit <benoit@tionex.de>
parents:
diff changeset
158 /**
95307ad235d9 Added Draw2d code, still work in progress
Frank Benoit <benoit@tionex.de>
parents:
diff changeset
159 * @see DWT#COLOR_TITLE_BACKGROUND_GRADIENT
95307ad235d9 Added Draw2d code, still work in progress
Frank Benoit <benoit@tionex.de>
parents:
diff changeset
160 */
102
0de61c6f08ca Reduce static ctors
Frank Benoit <benoit@tionex.de>
parents: 98
diff changeset
161 private static Color titleGradient_;
0de61c6f08ca Reduce static ctors
Frank Benoit <benoit@tionex.de>
parents: 98
diff changeset
162 public static Color titleGradient(){
0de61c6f08ca Reduce static ctors
Frank Benoit <benoit@tionex.de>
parents: 98
diff changeset
163 if( titleGradient_ is null ){
0de61c6f08ca Reduce static ctors
Frank Benoit <benoit@tionex.de>
parents: 98
diff changeset
164 titleGradient_ = getColor(DWT.COLOR_TITLE_BACKGROUND_GRADIENT);
0de61c6f08ca Reduce static ctors
Frank Benoit <benoit@tionex.de>
parents: 98
diff changeset
165 }
0de61c6f08ca Reduce static ctors
Frank Benoit <benoit@tionex.de>
parents: 98
diff changeset
166 return titleGradient_;
0de61c6f08ca Reduce static ctors
Frank Benoit <benoit@tionex.de>
parents: 98
diff changeset
167 }
98
95307ad235d9 Added Draw2d code, still work in progress
Frank Benoit <benoit@tionex.de>
parents:
diff changeset
168 /**
95307ad235d9 Added Draw2d code, still work in progress
Frank Benoit <benoit@tionex.de>
parents:
diff changeset
169 * @see DWT#COLOR_TITLE_FOREGROUND
95307ad235d9 Added Draw2d code, still work in progress
Frank Benoit <benoit@tionex.de>
parents:
diff changeset
170 */
102
0de61c6f08ca Reduce static ctors
Frank Benoit <benoit@tionex.de>
parents: 98
diff changeset
171 private static Color titleForeground_;
0de61c6f08ca Reduce static ctors
Frank Benoit <benoit@tionex.de>
parents: 98
diff changeset
172 public static Color titleForeground(){
0de61c6f08ca Reduce static ctors
Frank Benoit <benoit@tionex.de>
parents: 98
diff changeset
173 if( titleForeground_ is null ){
0de61c6f08ca Reduce static ctors
Frank Benoit <benoit@tionex.de>
parents: 98
diff changeset
174 titleForeground_ = getColor(DWT.COLOR_TITLE_FOREGROUND);
0de61c6f08ca Reduce static ctors
Frank Benoit <benoit@tionex.de>
parents: 98
diff changeset
175 }
0de61c6f08ca Reduce static ctors
Frank Benoit <benoit@tionex.de>
parents: 98
diff changeset
176 return titleForeground_;
0de61c6f08ca Reduce static ctors
Frank Benoit <benoit@tionex.de>
parents: 98
diff changeset
177 }
98
95307ad235d9 Added Draw2d code, still work in progress
Frank Benoit <benoit@tionex.de>
parents:
diff changeset
178 /**
95307ad235d9 Added Draw2d code, still work in progress
Frank Benoit <benoit@tionex.de>
parents:
diff changeset
179 * @see DWT#COLOR_TITLE_INACTIVE_FOREGROUND
95307ad235d9 Added Draw2d code, still work in progress
Frank Benoit <benoit@tionex.de>
parents:
diff changeset
180 */
102
0de61c6f08ca Reduce static ctors
Frank Benoit <benoit@tionex.de>
parents: 98
diff changeset
181 private static Color titleInactiveForeground_;
0de61c6f08ca Reduce static ctors
Frank Benoit <benoit@tionex.de>
parents: 98
diff changeset
182 public static Color titleInactiveForeground(){
0de61c6f08ca Reduce static ctors
Frank Benoit <benoit@tionex.de>
parents: 98
diff changeset
183 if( titleInactiveForeground_ is null ){
0de61c6f08ca Reduce static ctors
Frank Benoit <benoit@tionex.de>
parents: 98
diff changeset
184 titleInactiveForeground_ = getColor(DWT.COLOR_TITLE_INACTIVE_FOREGROUND);
0de61c6f08ca Reduce static ctors
Frank Benoit <benoit@tionex.de>
parents: 98
diff changeset
185 }
0de61c6f08ca Reduce static ctors
Frank Benoit <benoit@tionex.de>
parents: 98
diff changeset
186 return titleInactiveForeground_;
0de61c6f08ca Reduce static ctors
Frank Benoit <benoit@tionex.de>
parents: 98
diff changeset
187 }
98
95307ad235d9 Added Draw2d code, still work in progress
Frank Benoit <benoit@tionex.de>
parents:
diff changeset
188 /**
95307ad235d9 Added Draw2d code, still work in progress
Frank Benoit <benoit@tionex.de>
parents:
diff changeset
189 * @see DWT#COLOR_TITLE_INACTIVE_BACKGROUND
95307ad235d9 Added Draw2d code, still work in progress
Frank Benoit <benoit@tionex.de>
parents:
diff changeset
190 */
102
0de61c6f08ca Reduce static ctors
Frank Benoit <benoit@tionex.de>
parents: 98
diff changeset
191 private static Color titleInactiveBackground_;
0de61c6f08ca Reduce static ctors
Frank Benoit <benoit@tionex.de>
parents: 98
diff changeset
192 public static Color titleInactiveBackground(){
0de61c6f08ca Reduce static ctors
Frank Benoit <benoit@tionex.de>
parents: 98
diff changeset
193 if( titleInactiveBackground_ is null ){
0de61c6f08ca Reduce static ctors
Frank Benoit <benoit@tionex.de>
parents: 98
diff changeset
194 titleInactiveBackground_ = getColor(DWT.COLOR_TITLE_INACTIVE_BACKGROUND);
0de61c6f08ca Reduce static ctors
Frank Benoit <benoit@tionex.de>
parents: 98
diff changeset
195 }
0de61c6f08ca Reduce static ctors
Frank Benoit <benoit@tionex.de>
parents: 98
diff changeset
196 return titleInactiveBackground_;
0de61c6f08ca Reduce static ctors
Frank Benoit <benoit@tionex.de>
parents: 98
diff changeset
197 }
98
95307ad235d9 Added Draw2d code, still work in progress
Frank Benoit <benoit@tionex.de>
parents:
diff changeset
198 /**
95307ad235d9 Added Draw2d code, still work in progress
Frank Benoit <benoit@tionex.de>
parents:
diff changeset
199 * @see DWT#COLOR_TITLE_INACTIVE_BACKGROUND_GRADIENT
95307ad235d9 Added Draw2d code, still work in progress
Frank Benoit <benoit@tionex.de>
parents:
diff changeset
200 */
102
0de61c6f08ca Reduce static ctors
Frank Benoit <benoit@tionex.de>
parents: 98
diff changeset
201 private static Color titleInactiveGradient_;
0de61c6f08ca Reduce static ctors
Frank Benoit <benoit@tionex.de>
parents: 98
diff changeset
202 public static Color titleInactiveGradient(){
0de61c6f08ca Reduce static ctors
Frank Benoit <benoit@tionex.de>
parents: 98
diff changeset
203 if( titleInactiveGradient_ is null ){
0de61c6f08ca Reduce static ctors
Frank Benoit <benoit@tionex.de>
parents: 98
diff changeset
204 titleInactiveGradient_ = getColor(DWT.COLOR_TITLE_INACTIVE_BACKGROUND_GRADIENT);
0de61c6f08ca Reduce static ctors
Frank Benoit <benoit@tionex.de>
parents: 98
diff changeset
205 }
0de61c6f08ca Reduce static ctors
Frank Benoit <benoit@tionex.de>
parents: 98
diff changeset
206 return titleInactiveGradient_;
0de61c6f08ca Reduce static ctors
Frank Benoit <benoit@tionex.de>
parents: 98
diff changeset
207 }
98
95307ad235d9 Added Draw2d code, still work in progress
Frank Benoit <benoit@tionex.de>
parents:
diff changeset
208
95307ad235d9 Added Draw2d code, still work in progress
Frank Benoit <benoit@tionex.de>
parents:
diff changeset
209 /**
95307ad235d9 Added Draw2d code, still work in progress
Frank Benoit <benoit@tionex.de>
parents:
diff changeset
210 * @see DWT#COLOR_INFO_FOREGROUND
95307ad235d9 Added Draw2d code, still work in progress
Frank Benoit <benoit@tionex.de>
parents:
diff changeset
211 */
102
0de61c6f08ca Reduce static ctors
Frank Benoit <benoit@tionex.de>
parents: 98
diff changeset
212 private static Color tooltipForeground_;
0de61c6f08ca Reduce static ctors
Frank Benoit <benoit@tionex.de>
parents: 98
diff changeset
213 public static Color tooltipForeground(){
0de61c6f08ca Reduce static ctors
Frank Benoit <benoit@tionex.de>
parents: 98
diff changeset
214 if( tooltipForeground_ is null ){
0de61c6f08ca Reduce static ctors
Frank Benoit <benoit@tionex.de>
parents: 98
diff changeset
215 tooltipForeground_ = getColor(DWT.COLOR_INFO_FOREGROUND);
0de61c6f08ca Reduce static ctors
Frank Benoit <benoit@tionex.de>
parents: 98
diff changeset
216 }
0de61c6f08ca Reduce static ctors
Frank Benoit <benoit@tionex.de>
parents: 98
diff changeset
217 return tooltipForeground_;
0de61c6f08ca Reduce static ctors
Frank Benoit <benoit@tionex.de>
parents: 98
diff changeset
218 }
98
95307ad235d9 Added Draw2d code, still work in progress
Frank Benoit <benoit@tionex.de>
parents:
diff changeset
219 /**
95307ad235d9 Added Draw2d code, still work in progress
Frank Benoit <benoit@tionex.de>
parents:
diff changeset
220 * @see DWT#COLOR_INFO_BACKGROUND
95307ad235d9 Added Draw2d code, still work in progress
Frank Benoit <benoit@tionex.de>
parents:
diff changeset
221 */
102
0de61c6f08ca Reduce static ctors
Frank Benoit <benoit@tionex.de>
parents: 98
diff changeset
222 private static Color tooltipBackground_;
0de61c6f08ca Reduce static ctors
Frank Benoit <benoit@tionex.de>
parents: 98
diff changeset
223 public static Color tooltipBackground(){
0de61c6f08ca Reduce static ctors
Frank Benoit <benoit@tionex.de>
parents: 98
diff changeset
224 if( tooltipBackground_ is null ){
0de61c6f08ca Reduce static ctors
Frank Benoit <benoit@tionex.de>
parents: 98
diff changeset
225 tooltipBackground_ = getColor(DWT.COLOR_INFO_BACKGROUND);
0de61c6f08ca Reduce static ctors
Frank Benoit <benoit@tionex.de>
parents: 98
diff changeset
226 }
0de61c6f08ca Reduce static ctors
Frank Benoit <benoit@tionex.de>
parents: 98
diff changeset
227 return tooltipBackground_;
0de61c6f08ca Reduce static ctors
Frank Benoit <benoit@tionex.de>
parents: 98
diff changeset
228 }
98
95307ad235d9 Added Draw2d code, still work in progress
Frank Benoit <benoit@tionex.de>
parents:
diff changeset
229
95307ad235d9 Added Draw2d code, still work in progress
Frank Benoit <benoit@tionex.de>
parents:
diff changeset
230 /*
95307ad235d9 Added Draw2d code, still work in progress
Frank Benoit <benoit@tionex.de>
parents:
diff changeset
231 * Misc. colors
95307ad235d9 Added Draw2d code, still work in progress
Frank Benoit <benoit@tionex.de>
parents:
diff changeset
232 */
95307ad235d9 Added Draw2d code, still work in progress
Frank Benoit <benoit@tionex.de>
parents:
diff changeset
233 /** One of the pre-defined colors */
102
0de61c6f08ca Reduce static ctors
Frank Benoit <benoit@tionex.de>
parents: 98
diff changeset
234 private static Color white_;
0de61c6f08ca Reduce static ctors
Frank Benoit <benoit@tionex.de>
parents: 98
diff changeset
235 public static Color white(){
0de61c6f08ca Reduce static ctors
Frank Benoit <benoit@tionex.de>
parents: 98
diff changeset
236 if( white_ is null ){
0de61c6f08ca Reduce static ctors
Frank Benoit <benoit@tionex.de>
parents: 98
diff changeset
237 white_ = new Color(null, 255, 255, 255);
0de61c6f08ca Reduce static ctors
Frank Benoit <benoit@tionex.de>
parents: 98
diff changeset
238 }
0de61c6f08ca Reduce static ctors
Frank Benoit <benoit@tionex.de>
parents: 98
diff changeset
239 return white_;
0de61c6f08ca Reduce static ctors
Frank Benoit <benoit@tionex.de>
parents: 98
diff changeset
240 }
98
95307ad235d9 Added Draw2d code, still work in progress
Frank Benoit <benoit@tionex.de>
parents:
diff changeset
241 /** One of the pre-defined colors */
102
0de61c6f08ca Reduce static ctors
Frank Benoit <benoit@tionex.de>
parents: 98
diff changeset
242 private static Color lightGray_;
0de61c6f08ca Reduce static ctors
Frank Benoit <benoit@tionex.de>
parents: 98
diff changeset
243 public static Color lightGray(){
0de61c6f08ca Reduce static ctors
Frank Benoit <benoit@tionex.de>
parents: 98
diff changeset
244 if( lightGray_ is null ){
0de61c6f08ca Reduce static ctors
Frank Benoit <benoit@tionex.de>
parents: 98
diff changeset
245 lightGray_ = new Color(null, 192, 192, 192);
0de61c6f08ca Reduce static ctors
Frank Benoit <benoit@tionex.de>
parents: 98
diff changeset
246 }
0de61c6f08ca Reduce static ctors
Frank Benoit <benoit@tionex.de>
parents: 98
diff changeset
247 return lightGray_;
0de61c6f08ca Reduce static ctors
Frank Benoit <benoit@tionex.de>
parents: 98
diff changeset
248 }
98
95307ad235d9 Added Draw2d code, still work in progress
Frank Benoit <benoit@tionex.de>
parents:
diff changeset
249 /** One of the pre-defined colors */
102
0de61c6f08ca Reduce static ctors
Frank Benoit <benoit@tionex.de>
parents: 98
diff changeset
250 private static Color gray_;
0de61c6f08ca Reduce static ctors
Frank Benoit <benoit@tionex.de>
parents: 98
diff changeset
251 public static Color gray(){
0de61c6f08ca Reduce static ctors
Frank Benoit <benoit@tionex.de>
parents: 98
diff changeset
252 if( gray_ is null ){
0de61c6f08ca Reduce static ctors
Frank Benoit <benoit@tionex.de>
parents: 98
diff changeset
253 gray_ = new Color(null, 128, 128, 128);
0de61c6f08ca Reduce static ctors
Frank Benoit <benoit@tionex.de>
parents: 98
diff changeset
254 }
0de61c6f08ca Reduce static ctors
Frank Benoit <benoit@tionex.de>
parents: 98
diff changeset
255 return gray_;
0de61c6f08ca Reduce static ctors
Frank Benoit <benoit@tionex.de>
parents: 98
diff changeset
256 }
98
95307ad235d9 Added Draw2d code, still work in progress
Frank Benoit <benoit@tionex.de>
parents:
diff changeset
257 /** One of the pre-defined colors */
102
0de61c6f08ca Reduce static ctors
Frank Benoit <benoit@tionex.de>
parents: 98
diff changeset
258 private static Color darkGray_;
0de61c6f08ca Reduce static ctors
Frank Benoit <benoit@tionex.de>
parents: 98
diff changeset
259 public static Color darkGray(){
0de61c6f08ca Reduce static ctors
Frank Benoit <benoit@tionex.de>
parents: 98
diff changeset
260 if( darkGray_ is null ){
0de61c6f08ca Reduce static ctors
Frank Benoit <benoit@tionex.de>
parents: 98
diff changeset
261 darkGray_ = new Color(null, 64, 64, 64);
0de61c6f08ca Reduce static ctors
Frank Benoit <benoit@tionex.de>
parents: 98
diff changeset
262 }
0de61c6f08ca Reduce static ctors
Frank Benoit <benoit@tionex.de>
parents: 98
diff changeset
263 return darkGray_;
0de61c6f08ca Reduce static ctors
Frank Benoit <benoit@tionex.de>
parents: 98
diff changeset
264 }
98
95307ad235d9 Added Draw2d code, still work in progress
Frank Benoit <benoit@tionex.de>
parents:
diff changeset
265 /** One of the pre-defined colors */
102
0de61c6f08ca Reduce static ctors
Frank Benoit <benoit@tionex.de>
parents: 98
diff changeset
266 private static Color black_;
0de61c6f08ca Reduce static ctors
Frank Benoit <benoit@tionex.de>
parents: 98
diff changeset
267 public static Color black(){
0de61c6f08ca Reduce static ctors
Frank Benoit <benoit@tionex.de>
parents: 98
diff changeset
268 if( black_ is null ){
0de61c6f08ca Reduce static ctors
Frank Benoit <benoit@tionex.de>
parents: 98
diff changeset
269 black_ = new Color(null, 0, 0, 0);
0de61c6f08ca Reduce static ctors
Frank Benoit <benoit@tionex.de>
parents: 98
diff changeset
270 }
0de61c6f08ca Reduce static ctors
Frank Benoit <benoit@tionex.de>
parents: 98
diff changeset
271 return black_;
0de61c6f08ca Reduce static ctors
Frank Benoit <benoit@tionex.de>
parents: 98
diff changeset
272 }
98
95307ad235d9 Added Draw2d code, still work in progress
Frank Benoit <benoit@tionex.de>
parents:
diff changeset
273 /** One of the pre-defined colors */
102
0de61c6f08ca Reduce static ctors
Frank Benoit <benoit@tionex.de>
parents: 98
diff changeset
274 private static Color red_;
0de61c6f08ca Reduce static ctors
Frank Benoit <benoit@tionex.de>
parents: 98
diff changeset
275 public static Color red(){
0de61c6f08ca Reduce static ctors
Frank Benoit <benoit@tionex.de>
parents: 98
diff changeset
276 if( red_ is null ){
0de61c6f08ca Reduce static ctors
Frank Benoit <benoit@tionex.de>
parents: 98
diff changeset
277 red_ = new Color(null, 255, 0, 0);
0de61c6f08ca Reduce static ctors
Frank Benoit <benoit@tionex.de>
parents: 98
diff changeset
278 }
0de61c6f08ca Reduce static ctors
Frank Benoit <benoit@tionex.de>
parents: 98
diff changeset
279 return red_;
0de61c6f08ca Reduce static ctors
Frank Benoit <benoit@tionex.de>
parents: 98
diff changeset
280 }
98
95307ad235d9 Added Draw2d code, still work in progress
Frank Benoit <benoit@tionex.de>
parents:
diff changeset
281 /** One of the pre-defined colors */
102
0de61c6f08ca Reduce static ctors
Frank Benoit <benoit@tionex.de>
parents: 98
diff changeset
282 private static Color orange_;
0de61c6f08ca Reduce static ctors
Frank Benoit <benoit@tionex.de>
parents: 98
diff changeset
283 public static Color orange(){
0de61c6f08ca Reduce static ctors
Frank Benoit <benoit@tionex.de>
parents: 98
diff changeset
284 if( orange_ is null ){
0de61c6f08ca Reduce static ctors
Frank Benoit <benoit@tionex.de>
parents: 98
diff changeset
285 orange_ = new Color(null, 255, 196, 0);
0de61c6f08ca Reduce static ctors
Frank Benoit <benoit@tionex.de>
parents: 98
diff changeset
286 }
0de61c6f08ca Reduce static ctors
Frank Benoit <benoit@tionex.de>
parents: 98
diff changeset
287 return orange_;
0de61c6f08ca Reduce static ctors
Frank Benoit <benoit@tionex.de>
parents: 98
diff changeset
288 }
98
95307ad235d9 Added Draw2d code, still work in progress
Frank Benoit <benoit@tionex.de>
parents:
diff changeset
289 /** One of the pre-defined colors */
102
0de61c6f08ca Reduce static ctors
Frank Benoit <benoit@tionex.de>
parents: 98
diff changeset
290 private static Color yellow_;
0de61c6f08ca Reduce static ctors
Frank Benoit <benoit@tionex.de>
parents: 98
diff changeset
291 public static Color yellow(){
0de61c6f08ca Reduce static ctors
Frank Benoit <benoit@tionex.de>
parents: 98
diff changeset
292 if( yellow_ is null ){
0de61c6f08ca Reduce static ctors
Frank Benoit <benoit@tionex.de>
parents: 98
diff changeset
293 yellow_ = new Color(null, 255, 255, 0);
0de61c6f08ca Reduce static ctors
Frank Benoit <benoit@tionex.de>
parents: 98
diff changeset
294 }
0de61c6f08ca Reduce static ctors
Frank Benoit <benoit@tionex.de>
parents: 98
diff changeset
295 return yellow_;
0de61c6f08ca Reduce static ctors
Frank Benoit <benoit@tionex.de>
parents: 98
diff changeset
296 }
98
95307ad235d9 Added Draw2d code, still work in progress
Frank Benoit <benoit@tionex.de>
parents:
diff changeset
297 /** One of the pre-defined colors */
102
0de61c6f08ca Reduce static ctors
Frank Benoit <benoit@tionex.de>
parents: 98
diff changeset
298 private static Color green_;
0de61c6f08ca Reduce static ctors
Frank Benoit <benoit@tionex.de>
parents: 98
diff changeset
299 public static Color green(){
0de61c6f08ca Reduce static ctors
Frank Benoit <benoit@tionex.de>
parents: 98
diff changeset
300 if( green_ is null ){
0de61c6f08ca Reduce static ctors
Frank Benoit <benoit@tionex.de>
parents: 98
diff changeset
301 green_ = new Color(null, 0, 255, 0);
0de61c6f08ca Reduce static ctors
Frank Benoit <benoit@tionex.de>
parents: 98
diff changeset
302 }
0de61c6f08ca Reduce static ctors
Frank Benoit <benoit@tionex.de>
parents: 98
diff changeset
303 return green_;
0de61c6f08ca Reduce static ctors
Frank Benoit <benoit@tionex.de>
parents: 98
diff changeset
304 }
98
95307ad235d9 Added Draw2d code, still work in progress
Frank Benoit <benoit@tionex.de>
parents:
diff changeset
305 /** One of the pre-defined colors */
102
0de61c6f08ca Reduce static ctors
Frank Benoit <benoit@tionex.de>
parents: 98
diff changeset
306 private static Color lightGreen_;
0de61c6f08ca Reduce static ctors
Frank Benoit <benoit@tionex.de>
parents: 98
diff changeset
307 public static Color lightGreen(){
0de61c6f08ca Reduce static ctors
Frank Benoit <benoit@tionex.de>
parents: 98
diff changeset
308 if( lightGreen_ is null ){
0de61c6f08ca Reduce static ctors
Frank Benoit <benoit@tionex.de>
parents: 98
diff changeset
309 lightGreen_ = new Color(null, 96, 255, 96);
0de61c6f08ca Reduce static ctors
Frank Benoit <benoit@tionex.de>
parents: 98
diff changeset
310 }
0de61c6f08ca Reduce static ctors
Frank Benoit <benoit@tionex.de>
parents: 98
diff changeset
311 return lightGreen_;
0de61c6f08ca Reduce static ctors
Frank Benoit <benoit@tionex.de>
parents: 98
diff changeset
312 }
98
95307ad235d9 Added Draw2d code, still work in progress
Frank Benoit <benoit@tionex.de>
parents:
diff changeset
313 /** One of the pre-defined colors */
102
0de61c6f08ca Reduce static ctors
Frank Benoit <benoit@tionex.de>
parents: 98
diff changeset
314 private static Color darkGreen_;
0de61c6f08ca Reduce static ctors
Frank Benoit <benoit@tionex.de>
parents: 98
diff changeset
315 public static Color darkGreen(){
0de61c6f08ca Reduce static ctors
Frank Benoit <benoit@tionex.de>
parents: 98
diff changeset
316 if( darkGreen_ is null ){
0de61c6f08ca Reduce static ctors
Frank Benoit <benoit@tionex.de>
parents: 98
diff changeset
317 darkGreen_ = new Color(null, 0, 127, 0);
0de61c6f08ca Reduce static ctors
Frank Benoit <benoit@tionex.de>
parents: 98
diff changeset
318 }
0de61c6f08ca Reduce static ctors
Frank Benoit <benoit@tionex.de>
parents: 98
diff changeset
319 return darkGreen_;
0de61c6f08ca Reduce static ctors
Frank Benoit <benoit@tionex.de>
parents: 98
diff changeset
320 }
98
95307ad235d9 Added Draw2d code, still work in progress
Frank Benoit <benoit@tionex.de>
parents:
diff changeset
321 /** One of the pre-defined colors */
102
0de61c6f08ca Reduce static ctors
Frank Benoit <benoit@tionex.de>
parents: 98
diff changeset
322 private static Color cyan_;
0de61c6f08ca Reduce static ctors
Frank Benoit <benoit@tionex.de>
parents: 98
diff changeset
323 public static Color cyan(){
0de61c6f08ca Reduce static ctors
Frank Benoit <benoit@tionex.de>
parents: 98
diff changeset
324 if( cyan_ is null ){
0de61c6f08ca Reduce static ctors
Frank Benoit <benoit@tionex.de>
parents: 98
diff changeset
325 cyan_ = new Color(null, 0, 255, 255);
0de61c6f08ca Reduce static ctors
Frank Benoit <benoit@tionex.de>
parents: 98
diff changeset
326 }
0de61c6f08ca Reduce static ctors
Frank Benoit <benoit@tionex.de>
parents: 98
diff changeset
327 return cyan_;
0de61c6f08ca Reduce static ctors
Frank Benoit <benoit@tionex.de>
parents: 98
diff changeset
328 }
98
95307ad235d9 Added Draw2d code, still work in progress
Frank Benoit <benoit@tionex.de>
parents:
diff changeset
329 /** One of the pre-defined colors */
102
0de61c6f08ca Reduce static ctors
Frank Benoit <benoit@tionex.de>
parents: 98
diff changeset
330 private static Color lightBlue_;
0de61c6f08ca Reduce static ctors
Frank Benoit <benoit@tionex.de>
parents: 98
diff changeset
331 public static Color lightBlue(){
0de61c6f08ca Reduce static ctors
Frank Benoit <benoit@tionex.de>
parents: 98
diff changeset
332 if( lightBlue_ is null ){
0de61c6f08ca Reduce static ctors
Frank Benoit <benoit@tionex.de>
parents: 98
diff changeset
333 lightBlue_ = new Color(null, 127, 127, 255);
0de61c6f08ca Reduce static ctors
Frank Benoit <benoit@tionex.de>
parents: 98
diff changeset
334 }
0de61c6f08ca Reduce static ctors
Frank Benoit <benoit@tionex.de>
parents: 98
diff changeset
335 return lightBlue_;
0de61c6f08ca Reduce static ctors
Frank Benoit <benoit@tionex.de>
parents: 98
diff changeset
336 }
98
95307ad235d9 Added Draw2d code, still work in progress
Frank Benoit <benoit@tionex.de>
parents:
diff changeset
337 /** One of the pre-defined colors */
102
0de61c6f08ca Reduce static ctors
Frank Benoit <benoit@tionex.de>
parents: 98
diff changeset
338 private static Color blue_;
0de61c6f08ca Reduce static ctors
Frank Benoit <benoit@tionex.de>
parents: 98
diff changeset
339 public static Color blue(){
0de61c6f08ca Reduce static ctors
Frank Benoit <benoit@tionex.de>
parents: 98
diff changeset
340 if( blue_ is null ){
0de61c6f08ca Reduce static ctors
Frank Benoit <benoit@tionex.de>
parents: 98
diff changeset
341 blue_ = new Color(null, 0, 0, 255);
0de61c6f08ca Reduce static ctors
Frank Benoit <benoit@tionex.de>
parents: 98
diff changeset
342 }
0de61c6f08ca Reduce static ctors
Frank Benoit <benoit@tionex.de>
parents: 98
diff changeset
343 return blue_;
0de61c6f08ca Reduce static ctors
Frank Benoit <benoit@tionex.de>
parents: 98
diff changeset
344 }
98
95307ad235d9 Added Draw2d code, still work in progress
Frank Benoit <benoit@tionex.de>
parents:
diff changeset
345 /** One of the pre-defined colors */
102
0de61c6f08ca Reduce static ctors
Frank Benoit <benoit@tionex.de>
parents: 98
diff changeset
346 private static Color darkBlue_;
0de61c6f08ca Reduce static ctors
Frank Benoit <benoit@tionex.de>
parents: 98
diff changeset
347 public static Color darkBlue(){
0de61c6f08ca Reduce static ctors
Frank Benoit <benoit@tionex.de>
parents: 98
diff changeset
348 if( darkBlue_ is null ){
0de61c6f08ca Reduce static ctors
Frank Benoit <benoit@tionex.de>
parents: 98
diff changeset
349 darkBlue_ = new Color(null, 0, 0, 127);
0de61c6f08ca Reduce static ctors
Frank Benoit <benoit@tionex.de>
parents: 98
diff changeset
350 }
0de61c6f08ca Reduce static ctors
Frank Benoit <benoit@tionex.de>
parents: 98
diff changeset
351 return darkBlue_;
0de61c6f08ca Reduce static ctors
Frank Benoit <benoit@tionex.de>
parents: 98
diff changeset
352 }
98
95307ad235d9 Added Draw2d code, still work in progress
Frank Benoit <benoit@tionex.de>
parents:
diff changeset
353
95307ad235d9 Added Draw2d code, still work in progress
Frank Benoit <benoit@tionex.de>
parents:
diff changeset
354 }
95307ad235d9 Added Draw2d code, still work in progress
Frank Benoit <benoit@tionex.de>
parents:
diff changeset
355
95307ad235d9 Added Draw2d code, still work in progress
Frank Benoit <benoit@tionex.de>
parents:
diff changeset
356