sysperfana/perfinvestigator/com.nokia.carbide.cpp.pi.util/src/com/nokia/carbide/cpp/pi/util/TableColorPalette.java
changeset 12 ae255c9aa552
parent 2 b9ab3b238396
equal deleted inserted replaced
11:5b9d4d8641ce 12:ae255c9aa552
    27 import org.eclipse.swt.widgets.MessageBox;
    27 import org.eclipse.swt.widgets.MessageBox;
    28 import org.eclipse.swt.widgets.Shell;
    28 import org.eclipse.swt.widgets.Shell;
    29 
    29 
    30 abstract public class TableColorPalette implements ITableColorPalette {
    30 abstract public class TableColorPalette implements ITableColorPalette {
    31 
    31 
    32 	private final int channelValue[] = { 0x00, 0x33, 0x66, 0x99, 0xCC, 0xFF };
    32 	private transient final int channelValue[] = { 0x00, 0x33, 0x66, 0x99, 0xCC, 0xFF };
    33 	
    33 	
    34 	private Map<Object, Color> palette = new HashMap<Object, Color>();
    34 	private transient Map<Object, Color> palette = new HashMap<Object, Color>();
    35 	private int currentColorIndex = 0;
    35 	private transient int currentColorIndex = 0;
    36 	
    36 	
    37 	abstract public RGB getConstantRGB(Object entry);
    37 	abstract public RGB getConstantRGB(Object entry);
    38 
    38 
    39 	public TableColorPalette() {
       
    40 	}
       
    41 	
    39 	
    42 	// Windows palette default from here
    40 	// Windows palette default from here
    43 	//http://www.mozilla.org/docs/refList/user-interface/visual/colorpalette/
    41 	//http://www.mozilla.org/docs/refList/user-interface/visual/colorpalette/
    44 	int defaultPalette[][] = {{255,255,0}, {0,255,255}, {255,102,51},
    42 	private transient int defaultPalette[][] = {{255,255,0}, {0,255,255}, {255,102,51},
    45 								{128,128,0}, {0,0,128}, {0,255,0},
    43 								{128,128,0}, {0,0,128}, {0,255,0},
    46 								{0,128,0}, {128,0,0}, {0,128,128},
    44 								{0,128,0}, {128,0,0}, {0,128,128},
    47 								{0,55,60}, {204,153,102}, {0,153,255},
    45 								{0,55,60}, {204,153,102}, {0,153,255},
    48 								{0,0,255}, {51,255,153}, {204,204,255},
    46 								{0,0,255}, {51,255,153}, {204,204,255},
    49 								{255,0,0}, {153,153,255}, {153,0,102},
    47 								{255,0,0}, {153,153,255}, {153,0,102},