001: /*
002: * Copyright (c) 2005-2008 Substance Kirill Grouchnikov. All Rights Reserved.
003: *
004: * Redistribution and use in source and binary forms, with or without
005: * modification, are permitted provided that the following conditions are met:
006: *
007: * o Redistributions of source code must retain the above copyright notice,
008: * this list of conditions and the following disclaimer.
009: *
010: * o Redistributions in binary form must reproduce the above copyright notice,
011: * this list of conditions and the following disclaimer in the documentation
012: * and/or other materials provided with the distribution.
013: *
014: * o Neither the name of Substance Kirill Grouchnikov nor the names of
015: * its contributors may be used to endorse or promote products derived
016: * from this software without specific prior written permission.
017: *
018: * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
019: * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
020: * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
021: * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
022: * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
023: * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
024: * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
025: * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
026: * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
027: * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
028: * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
029: */
030: package org.jvnet.substance.color;
031:
032: import java.awt.Color;
033:
034: /**
035: * <b>Sun glare</b> color scheme.
036: *
037: * @author Kirill Grouchnikov
038: */
039: public class SunGlareColorScheme extends BaseColorScheme {
040: /**
041: * The main ultra-light color.
042: */
043: private static final Color mainUltraLightColor = new Color(255,
044: 255, 209);
045:
046: /**
047: * The main extra-light color.
048: */
049: private static final Color mainExtraLightColor = new Color(248,
050: 249, 160);
051:
052: /**
053: * The main light color.
054: */
055: private static final Color mainLightColor = new Color(255, 255, 80);
056:
057: /**
058: * The main medium color.
059: */
060: private static final Color mainMidColor = new Color(252, 226, 55);
061:
062: /**
063: * The main dark color.
064: */
065: private static final Color mainDarkColor = new Color(106, 29, 0);
066:
067: /**
068: * The main ultra-dark color.
069: */
070: private static final Color mainUltraDarkColor = new Color(67, 18, 0);
071:
072: /**
073: * The foreground color.
074: */
075: private static final Color foregroundColor = Color.black;
076:
077: /* (non-Javadoc)
078: * @see org.jvnet.substance.color.ColorScheme#getForegroundColor()
079: */
080: public Color getForegroundColor() {
081: return SunGlareColorScheme.foregroundColor;
082: }
083:
084: /* (non-Javadoc)
085: * @see org.jvnet.substance.color.ColorScheme#getUltraLightColor()
086: */
087: public Color getUltraLightColor() {
088: return SunGlareColorScheme.mainUltraLightColor;
089: }
090:
091: /* (non-Javadoc)
092: * @see org.jvnet.substance.color.ColorScheme#getExtraLightColor()
093: */
094: public Color getExtraLightColor() {
095: return SunGlareColorScheme.mainExtraLightColor;
096: }
097:
098: /* (non-Javadoc)
099: * @see org.jvnet.substance.color.ColorScheme#getLightColor()
100: */
101: public Color getLightColor() {
102: return SunGlareColorScheme.mainLightColor;
103: }
104:
105: /* (non-Javadoc)
106: * @see org.jvnet.substance.color.ColorScheme#getMidColor()
107: */
108: public Color getMidColor() {
109: return SunGlareColorScheme.mainMidColor;
110: }
111:
112: /* (non-Javadoc)
113: * @see org.jvnet.substance.color.ColorScheme#getDarkColor()
114: */
115: public Color getDarkColor() {
116: return SunGlareColorScheme.mainDarkColor;
117: }
118:
119: /* (non-Javadoc)
120: * @see org.jvnet.substance.color.ColorScheme#getUltraDarkColor()
121: */
122: public Color getUltraDarkColor() {
123: return SunGlareColorScheme.mainUltraDarkColor;
124: }
125: }
|