|
Lines 66-77
Link Here
|
| 66 |
super.setOpaque(true); |
66 |
super.setOpaque(true); |
| 67 |
} |
67 |
} |
| 68 |
|
68 |
|
| 69 |
/** |
69 |
private Color createMixedColor(){ |
| 70 |
* @see org.eclipse.draw2d.IFigure#getLocalBackgroundColor() |
|
|
| 71 |
*/ |
| 72 |
public Color getLocalBackgroundColor() { |
| 73 |
return FigureUtilities.mixColors( |
70 |
return FigureUtilities.mixColors( |
| 74 |
super.getLocalBackgroundColor(), |
71 |
getLocalBackgroundColor(), |
| 75 |
getParent().getBackgroundColor(), |
72 |
getParent().getBackgroundColor(), |
| 76 |
(double)opacity / FRAMES); |
73 |
(double)opacity / FRAMES); |
| 77 |
} |
74 |
} |
|
Lines 89-95
Link Here
|
| 89 |
if (opacity != FRAMES - 1) { |
86 |
if (opacity != FRAMES - 1) { |
| 90 |
Display display = Display.getCurrent(); |
87 |
Display display = Display.getCurrent(); |
| 91 |
PaletteData pData = new PaletteData(0xFF, 0xFF00, 0xFF0000); |
88 |
PaletteData pData = new PaletteData(0xFF, 0xFF00, 0xFF0000); |
| 92 |
int fillColor = pData.getPixel(getLocalBackgroundColor().getRGB()); |
89 |
Color localBackgroundColor = createMixedColor(); |
|
|
90 |
int fillColor = pData.getPixel(localBackgroundColor.getRGB()); |
| 91 |
localBackgroundColor.dispose(); |
| 93 |
ImageData iData = new ImageData(1, 1, 24, pData); |
92 |
ImageData iData = new ImageData(1, 1, 24, pData); |
| 94 |
iData.setPixel(0, 0, fillColor); |
93 |
iData.setPixel(0, 0, fillColor); |
| 95 |
iData.setAlpha(0, 0, 255 * opacity / FRAMES); |
94 |
iData.setAlpha(0, 0, 255 * opacity / FRAMES); |