1 42 43 package org.jfree.chart; 44 45 import java.awt.Color ; 46 import java.awt.Paint ; 47 48 55 public class ChartColor extends Color { 56 57 58 public static final Color VERY_DARK_RED = new Color (0x80, 0x00, 0x00); 59 60 61 public static final Color DARK_RED = new Color (0xc0, 0x00, 0x00); 62 63 64 public static final Color LIGHT_RED = new Color (0xFF, 0x40, 0x40); 65 66 67 public static final Color VERY_LIGHT_RED = new Color (0xFF, 0x80, 0x80); 68 69 70 public static final Color VERY_DARK_YELLOW = new Color (0x80, 0x80, 0x00); 71 72 73 public static final Color DARK_YELLOW = new Color (0xC0, 0xC0, 0x00); 74 75 76 public static final Color LIGHT_YELLOW = new Color (0xFF, 0xFF, 0x40); 77 78 79 public static final Color VERY_LIGHT_YELLOW = new Color (0xFF, 0xFF, 0x80); 80 81 82 public static final Color VERY_DARK_GREEN = new Color (0x00, 0x80, 0x00); 83 84 85 public static final Color DARK_GREEN = new Color (0x00, 0xC0, 0x00); 86 87 88 public static final Color LIGHT_GREEN = new Color (0x40, 0xFF, 0x40); 89 90 91 public static final Color VERY_LIGHT_GREEN = new Color (0x80, 0xFF, 0x80); 92 93 94 public static final Color VERY_DARK_CYAN = new Color (0x00, 0x80, 0x80); 95 96 97 public static final Color DARK_CYAN = new Color (0x00, 0xC0, 0xC0); 98 99 100 public static final Color LIGHT_CYAN = new Color (0x40, 0xFF, 0xFF); 101 102 103 public static final Color VERY_LIGHT_CYAN = new Color (0x80, 0xFF, 0xFF); 104 105 106 public static final Color VERY_DARK_BLUE = new Color (0x00, 0x00, 0x80); 107 108 109 public static final Color DARK_BLUE = new Color (0x00, 0x00, 0xC0); 110 111 112 public static final Color LIGHT_BLUE = new Color (0x40, 0x40, 0xFF); 113 114 115 public static final Color VERY_LIGHT_BLUE = new Color (0x80, 0x80, 0xFF); 116 117 118 public static final Color VERY_DARK_MAGENTA = new Color (0x80, 0x00, 0x80); 119 120 121 public static final Color DARK_MAGENTA = new Color (0xC0, 0x00, 0xC0); 122 123 124 public static final Color LIGHT_MAGENTA = new Color (0xFF, 0x40, 0xFF); 125 126 127 public static final Color VERY_LIGHT_MAGENTA = new Color (0xFF, 0x80, 0xFF); 128 129 137 public ChartColor(int r, int g, int b) { 138 super(r, g, b); 139 } 140 141 148 public static Paint [] createDefaultPaintArray() { 149 150 return new Paint [] { 151 new Color (0xFF, 0x55, 0x55), 152 new Color (0x55, 0x55, 0xFF), 153 new Color (0x55, 0xFF, 0x55), 154 new Color (0xFF, 0xFF, 0x55), 155 new Color (0xFF, 0xBB, 0x55), 156 new Color (0xFF, 0x55, 0xFF), 157 new Color (0x55, 0xFF, 0xFF), 158 Color.pink, 159 Color.gray, 160 ChartColor.DARK_RED, 161 ChartColor.DARK_BLUE, 162 ChartColor.DARK_GREEN, 163 ChartColor.DARK_YELLOW, 164 ChartColor.DARK_MAGENTA, 165 ChartColor.DARK_CYAN, 166 Color.darkGray, 167 ChartColor.LIGHT_RED, 168 ChartColor.LIGHT_BLUE, 169 ChartColor.LIGHT_GREEN, 170 ChartColor.LIGHT_YELLOW, 171 ChartColor.LIGHT_MAGENTA, 172 ChartColor.LIGHT_CYAN, 173 Color.lightGray, 174 ChartColor.VERY_DARK_RED, 175 ChartColor.VERY_DARK_BLUE, 176 ChartColor.VERY_DARK_GREEN, 177 ChartColor.VERY_DARK_YELLOW, 178 ChartColor.VERY_DARK_MAGENTA, 179 ChartColor.VERY_DARK_CYAN, 180 ChartColor.VERY_LIGHT_RED, 181 ChartColor.VERY_LIGHT_BLUE, 182 ChartColor.VERY_LIGHT_GREEN, 183 ChartColor.VERY_LIGHT_YELLOW, 184 ChartColor.VERY_LIGHT_MAGENTA, 185 ChartColor.VERY_LIGHT_CYAN 186 }; 187 } 188 189 } 190 | Popular Tags |