1 11 package org.eclipse.pde.internal.ui.util; 12 13 import org.eclipse.jface.resource.ImageDescriptor; 14 import org.eclipse.swt.graphics.ImageData; 15 import org.eclipse.swt.graphics.Point; 16 17 20 public class OverlayIcon extends AbstractOverlayIcon { 21 private ImageDescriptor fBase; 22 23 public OverlayIcon(ImageDescriptor base, ImageDescriptor[][] overlays) { 24 this(base, overlays, null); 25 } 26 27 public OverlayIcon(ImageDescriptor base, ImageDescriptor[][] overlays, Point size) { 28 super(overlays, size); 29 fBase= base; 30 if (fBase == null) 31 fBase= ImageDescriptor.getMissingImageDescriptor(); 32 } 33 34 protected ImageData getBaseImageData() { 35 return fBase.getImageData(); 36 } 37 } 38 | Popular Tags |