Chris@2: /* Performance Worm: Visualisation of Expressive Musical Performance Chris@2: Copyright (C) 2001, 2006 by Simon Dixon Chris@2: Chris@2: This program is free software; you can redistribute it and/or modify Chris@2: it under the terms of the GNU General Public License as published by Chris@2: the Free Software Foundation; either version 2 of the License, or Chris@2: (at your option) any later version. Chris@2: Chris@2: This program is distributed in the hope that it will be useful, Chris@2: but WITHOUT ANY WARRANTY; without even the implied warranty of Chris@2: MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the Chris@2: GNU General Public License for more details. Chris@2: Chris@2: You should have received a copy of the GNU General Public License along Chris@2: with this program (the file gpl.txt); if not, download it from Chris@2: http://www.gnu.org/licenses/gpl.txt or write to the Chris@2: Free Software Foundation, Inc., Chris@2: 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. Chris@2: */ Chris@2: Chris@2: package at.ofai.music.worm; Chris@2: Chris@2: import java.awt.Color; Chris@2: import at.ofai.music.util.Colors; Chris@2: Chris@2: class WormConstants implements Colors { Chris@2: public static String version = " 1.4-RC2 "; // DON'T EDIT THIS LINE; see make.sh Chris@2: public static String title = "Performance Worm v" + version.substring(1) + Chris@2: "(c) 2002 ofaiMusic "; Chris@2: public static int X_SZ = 800; // Default x-size of Worm Panel Chris@2: public static int Y_SZ = 500; // Default y-size of Worm Panel Chris@2: public static int cpHeight = 50; // Height of control panel Chris@2: public static int footMargin = 20; // Distance from x-axis to top/bottom Chris@2: public static int sideMargin = 40; // Distance from y-axis to sides Chris@2: public static int wormLength = 300; // Number of points in the worm Chris@2: public static Color buttonTextColor = Color.black; Chris@2: public static Color buttonColor = Color.white; Chris@2: public static Color axesColor = Color.black; Chris@2: public static Color backgroundColor = Color.white; Chris@2: public static Color wormHeadColor = Color.red; Chris@2: public static Color wormTailColor = Color.white;// new Color(255,240,240); Chris@2: public static Color wormHeadRimColor = Color.black; Chris@2: public static Color wormTailRimColor = Color.white; Chris@2: public static Color wormFaceColor = Color.black; Chris@2: public static Color altFaceColor = Color.white; Chris@2: // BROWN version: new Color(255, 200, 160); Chris@2: Chris@2: public Color getBackground() { return backgroundColor; } Chris@2: public Color getForeground() { return axesColor; } Chris@2: public Color getButton() { return buttonColor; } Chris@2: public Color getButtonText() { return buttonTextColor; } Chris@2: Chris@2: public static void setDayColours() { Chris@2: buttonTextColor = Color.black; Chris@2: buttonColor = Color.white; Chris@2: axesColor = Color.black; Chris@2: backgroundColor = Color.white; Chris@2: wormHeadColor = Color.red; Chris@2: wormTailColor = Color.white; Chris@2: wormHeadRimColor = Color.black; Chris@2: wormTailRimColor = Color.white; Chris@2: wormFaceColor = Color.black; Chris@2: altFaceColor = Color.white; Chris@2: } // setDayColours() Chris@2: Chris@2: public static void setNightColours() { Chris@2: buttonTextColor = Color.yellow; Chris@2: buttonColor = Color.black; Chris@2: axesColor = Color.yellow; Chris@2: backgroundColor = Color.black; Chris@2: wormHeadColor = Color.green; Chris@2: wormTailColor = Color.black; Chris@2: wormHeadRimColor = Color.yellow; Chris@2: wormTailRimColor = Color.black; Chris@2: wormFaceColor = Color.black; Chris@2: altFaceColor = Color.black; Chris@2: } // setNightColours() Chris@2: Chris@2: public static void setGlow(boolean flag) { Chris@2: if (flag) Chris@2: setNightColours(); Chris@2: else Chris@2: setDayColours(); Chris@2: } // setGlow() Chris@2: Chris@2: } // class WormConstants