1 11 package org.eclipse.ui.internal.cheatsheets.composite.explorer; 12 13 import org.eclipse.jface.resource.ImageDescriptor; 14 import org.eclipse.swt.graphics.*; 15 16 19 public class OverlayIcon extends AbstractOverlayIcon { 20 private ImageDescriptor fBase; 21 22 public OverlayIcon(ImageDescriptor base, ImageDescriptor[][] overlays) { 23 this(base, overlays, null); 24 } 25 26 public OverlayIcon(ImageDescriptor base, ImageDescriptor[][] overlays, 27 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 |