/plugins/Substance/trunk/substance-6.1/substance/src/org/pushingpixels/substance/api/colorscheme/UltramarineColorScheme.java

# · Java · 144 lines · 35 code · 16 blank · 93 comment · 0 complexity · eac5b9c1a95caa50c533b1ba5587c85f MD5 · raw file

  1. /*
  2. * Copyright (c) 2005-2010 Substance Kirill Grouchnikov. All Rights Reserved.
  3. *
  4. * Redistribution and use in source and binary forms, with or without
  5. * modification, are permitted provided that the following conditions are met:
  6. *
  7. * o Redistributions of source code must retain the above copyright notice,
  8. * this list of conditions and the following disclaimer.
  9. *
  10. * o Redistributions in binary form must reproduce the above copyright notice,
  11. * this list of conditions and the following disclaimer in the documentation
  12. * and/or other materials provided with the distribution.
  13. *
  14. * o Neither the name of Substance Kirill Grouchnikov nor the names of
  15. * its contributors may be used to endorse or promote products derived
  16. * from this software without specific prior written permission.
  17. *
  18. * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
  19. * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
  20. * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
  21. * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
  22. * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
  23. * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
  24. * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
  25. * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
  26. * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
  27. * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
  28. * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  29. */
  30. package org.pushingpixels.substance.api.colorscheme;
  31. import java.awt.Color;
  32. /**
  33. * <b>Ultramarine</b> color scheme.
  34. *
  35. * @author Kirill Grouchnikov
  36. */
  37. public class UltramarineColorScheme extends BaseDarkColorScheme {
  38. /**
  39. * The main ultra-light color.
  40. */
  41. private static final Color mainUltraLightColor = new Color(46, 22, 124);
  42. /**
  43. * The main extra-light color.
  44. */
  45. private static final Color mainExtraLightColor = new Color(33, 19, 113);
  46. /**
  47. * The main light color.
  48. */
  49. private static final Color mainLightColor = new Color(31, 17, 104);
  50. /**
  51. * The main medium color.
  52. */
  53. private static final Color mainMidColor = new Color(47, 6, 53);
  54. /**
  55. * The main dark color.
  56. */
  57. private static final Color mainDarkColor = new Color(11, 1, 38);
  58. /**
  59. * The main ultra-dark color.
  60. */
  61. private static final Color mainUltraDarkColor = new Color(2, 1, 23);
  62. /**
  63. * The foreground color.
  64. */
  65. private static final Color foregroundColor = Color.white;
  66. /**
  67. * Creates a new <code>Ultramarine</code> color scheme.
  68. */
  69. public UltramarineColorScheme() {
  70. super("Ultramarine");
  71. }
  72. /*
  73. * (non-Javadoc)
  74. *
  75. * @see org.pushingpixels.substance.color.ColorScheme#getForegroundColor()
  76. */
  77. public Color getForegroundColor() {
  78. return UltramarineColorScheme.foregroundColor;
  79. }
  80. /*
  81. * (non-Javadoc)
  82. *
  83. * @see org.pushingpixels.substance.color.ColorScheme#getUltraLightColor()
  84. */
  85. public Color getUltraLightColor() {
  86. return UltramarineColorScheme.mainUltraLightColor;
  87. }
  88. /*
  89. * (non-Javadoc)
  90. *
  91. * @see org.pushingpixels.substance.color.ColorScheme#getExtraLightColor()
  92. */
  93. public Color getExtraLightColor() {
  94. return UltramarineColorScheme.mainExtraLightColor;
  95. }
  96. /*
  97. * (non-Javadoc)
  98. *
  99. * @see org.pushingpixels.substance.color.ColorScheme#getLightColor()
  100. */
  101. public Color getLightColor() {
  102. return UltramarineColorScheme.mainLightColor;
  103. }
  104. /*
  105. * (non-Javadoc)
  106. *
  107. * @see org.pushingpixels.substance.color.ColorScheme#getMidColor()
  108. */
  109. public Color getMidColor() {
  110. return UltramarineColorScheme.mainMidColor;
  111. }
  112. /*
  113. * (non-Javadoc)
  114. *
  115. * @see org.pushingpixels.substance.color.ColorScheme#getDarkColor()
  116. */
  117. public Color getDarkColor() {
  118. return UltramarineColorScheme.mainDarkColor;
  119. }
  120. /*
  121. * (non-Javadoc)
  122. *
  123. * @see org.pushingpixels.substance.color.ColorScheme#getUltraDarkColor()
  124. */
  125. public Color getUltraDarkColor() {
  126. return UltramarineColorScheme.mainUltraDarkColor;
  127. }
  128. }