01: /*******************************************************************************
02: * Copyright (c) 2000, 2006 IBM Corporation and others.
03: * All rights reserved. This program and the accompanying materials
04: * are made available under the terms of the Eclipse Public License v1.0
05: * which accompanies this distribution, and is available at
06: * http://www.eclipse.org/legal/epl-v10.html
07: *
08: * Contributors:
09: * IBM Corporation - initial API and implementation
10: *******************************************************************************/package org.eclipse.pde.internal.ui.util;
11:
12: import org.eclipse.jface.resource.ImageDescriptor;
13: import org.eclipse.swt.graphics.Image;
14: import org.eclipse.swt.graphics.ImageData;
15: import org.eclipse.swt.graphics.Point;
16:
17: /**
18: * An OverlayIcon consists of a main icon and several adornments.
19: */
20: public class ImageOverlayIcon extends AbstractOverlayIcon {
21: private Image base;
22:
23: public ImageOverlayIcon(Image base, ImageDescriptor[][] overlays) {
24: this (base, overlays, null);
25: }
26:
27: public ImageOverlayIcon(Image base, ImageDescriptor[][] overlays,
28: Point size) {
29: super (overlays, size);
30: this .base = base;
31: }
32:
33: protected ImageData getBaseImageData() {
34: return base.getImageData();
35: }
36: }
|