Chris@2
|
1 /* Performance Worm: Visualisation of Expressive Musical Performance
|
Chris@2
|
2 Copyright (C) 2001, 2006 by Simon Dixon
|
Chris@2
|
3
|
Chris@2
|
4 This program is free software; you can redistribute it and/or modify
|
Chris@2
|
5 it under the terms of the GNU General Public License as published by
|
Chris@2
|
6 the Free Software Foundation; either version 2 of the License, or
|
Chris@2
|
7 (at your option) any later version.
|
Chris@2
|
8
|
Chris@2
|
9 This program is distributed in the hope that it will be useful,
|
Chris@2
|
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
|
Chris@2
|
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
Chris@2
|
12 GNU General Public License for more details.
|
Chris@2
|
13
|
Chris@2
|
14 You should have received a copy of the GNU General Public License along
|
Chris@2
|
15 with this program (the file gpl.txt); if not, download it from
|
Chris@2
|
16 http://www.gnu.org/licenses/gpl.txt or write to the
|
Chris@2
|
17 Free Software Foundation, Inc.,
|
Chris@2
|
18 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
Chris@2
|
19 */
|
Chris@2
|
20
|
Chris@2
|
21 package at.ofai.music.worm;
|
Chris@2
|
22
|
Chris@2
|
23 import java.awt.Color;
|
Chris@2
|
24 import at.ofai.music.util.Colors;
|
Chris@2
|
25
|
Chris@2
|
26 class WormConstants implements Colors {
|
Chris@2
|
27 public static String version = " 1.4-RC2 "; // DON'T EDIT THIS LINE; see make.sh
|
Chris@2
|
28 public static String title = "Performance Worm v" + version.substring(1) +
|
Chris@2
|
29 "(c) 2002 ofaiMusic <simon@ofai.at>";
|
Chris@2
|
30 public static int X_SZ = 800; // Default x-size of Worm Panel
|
Chris@2
|
31 public static int Y_SZ = 500; // Default y-size of Worm Panel
|
Chris@2
|
32 public static int cpHeight = 50; // Height of control panel
|
Chris@2
|
33 public static int footMargin = 20; // Distance from x-axis to top/bottom
|
Chris@2
|
34 public static int sideMargin = 40; // Distance from y-axis to sides
|
Chris@2
|
35 public static int wormLength = 300; // Number of points in the worm
|
Chris@2
|
36 public static Color buttonTextColor = Color.black;
|
Chris@2
|
37 public static Color buttonColor = Color.white;
|
Chris@2
|
38 public static Color axesColor = Color.black;
|
Chris@2
|
39 public static Color backgroundColor = Color.white;
|
Chris@2
|
40 public static Color wormHeadColor = Color.red;
|
Chris@2
|
41 public static Color wormTailColor = Color.white;// new Color(255,240,240);
|
Chris@2
|
42 public static Color wormHeadRimColor = Color.black;
|
Chris@2
|
43 public static Color wormTailRimColor = Color.white;
|
Chris@2
|
44 public static Color wormFaceColor = Color.black;
|
Chris@2
|
45 public static Color altFaceColor = Color.white;
|
Chris@2
|
46 // BROWN version: new Color(255, 200, 160);
|
Chris@2
|
47
|
Chris@2
|
48 public Color getBackground() { return backgroundColor; }
|
Chris@2
|
49 public Color getForeground() { return axesColor; }
|
Chris@2
|
50 public Color getButton() { return buttonColor; }
|
Chris@2
|
51 public Color getButtonText() { return buttonTextColor; }
|
Chris@2
|
52
|
Chris@2
|
53 public static void setDayColours() {
|
Chris@2
|
54 buttonTextColor = Color.black;
|
Chris@2
|
55 buttonColor = Color.white;
|
Chris@2
|
56 axesColor = Color.black;
|
Chris@2
|
57 backgroundColor = Color.white;
|
Chris@2
|
58 wormHeadColor = Color.red;
|
Chris@2
|
59 wormTailColor = Color.white;
|
Chris@2
|
60 wormHeadRimColor = Color.black;
|
Chris@2
|
61 wormTailRimColor = Color.white;
|
Chris@2
|
62 wormFaceColor = Color.black;
|
Chris@2
|
63 altFaceColor = Color.white;
|
Chris@2
|
64 } // setDayColours()
|
Chris@2
|
65
|
Chris@2
|
66 public static void setNightColours() {
|
Chris@2
|
67 buttonTextColor = Color.yellow;
|
Chris@2
|
68 buttonColor = Color.black;
|
Chris@2
|
69 axesColor = Color.yellow;
|
Chris@2
|
70 backgroundColor = Color.black;
|
Chris@2
|
71 wormHeadColor = Color.green;
|
Chris@2
|
72 wormTailColor = Color.black;
|
Chris@2
|
73 wormHeadRimColor = Color.yellow;
|
Chris@2
|
74 wormTailRimColor = Color.black;
|
Chris@2
|
75 wormFaceColor = Color.black;
|
Chris@2
|
76 altFaceColor = Color.black;
|
Chris@2
|
77 } // setNightColours()
|
Chris@2
|
78
|
Chris@2
|
79 public static void setGlow(boolean flag) {
|
Chris@2
|
80 if (flag)
|
Chris@2
|
81 setNightColours();
|
Chris@2
|
82 else
|
Chris@2
|
83 setDayColours();
|
Chris@2
|
84 } // setGlow()
|
Chris@2
|
85
|
Chris@2
|
86 } // class WormConstants
|