y += 3;
x += 3;
if(mIsGrayFilter && !mIsExpired && mProgram.isExpired()) {
ImageFilter filter = new GrayFilter(true, 60);
mScaledIcon.setImage(c.createImage(new FilteredImageSource(mScaledIcon.getImage().getSource(),filter)));
mIsExpired = true;
}
if(c.getForeground().getAlpha() != 255) {
ImageFilter filter = new RGBImageFilter() {
public int filterRGB(int x, int y, int rgb) {
if ((rgb & 0xff000000) != 0) {
return (rgb & 0xffffff) | (c.getForeground().getAlpha() << 24);
}
return rgb;
}
};
mScaledIcon.setImage(c.createImage(new FilteredImageSource(mScaledIcon.getImage().getSource(),filter)));
}
mScaledIcon.paintIcon(c,g,x,y);
/*