KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > update > internal > ui > parts > ImageOverlayIcon


1 /*******************************************************************************
2  * Copyright (c) 2000, 2005 IBM Corporation and others.
3  * All rights reserved. This program and the accompanying materials
4  * are made available under the terms of the Eclipse Public License v1.0
5  * which accompanies this distribution, and is available at
6  * http://www.eclipse.org/legal/epl-v10.html
7  *
8  * Contributors:
9  * IBM Corporation - initial API and implementation
10  *******************************************************************************/

11 package org.eclipse.update.internal.ui.parts;
12
13 import org.eclipse.jface.resource.*;
14 import org.eclipse.swt.graphics.*;
15
16 /**
17  * An OverlayIcon consists of a main icon and several adornments.
18  */

19 public class ImageOverlayIcon extends AbstractOverlayIcon {
20     private Image base;
21
22     public ImageOverlayIcon(Image base, ImageDescriptor[][] overlays) {
23         this(base, overlays, null);
24     }
25     
26     public ImageOverlayIcon(Image base, ImageDescriptor[][] overlays, Point size) {
27         super(overlays, size);
28         this.base = base;
29     }
30     
31     protected ImageData getBaseImageData() {
32         return base.getImageData();
33     }
34 }
35
Popular Tags