dsto.dfc.swt.icons
Class NullIcon

java.lang.Object
  extended by dsto.dfc.swt.icons.NullIcon
All Implemented Interfaces:
Icon

public class NullIcon
extends Object
implements Icon

An empty icon.

Author:
Matthew Phillips

Constructor Summary
NullIcon(int width, int height)
           
 
Method Summary
 org.eclipse.swt.graphics.Image createImage(org.eclipse.swt.graphics.Device device)
           
 int getIconHeight()
           
 int getIconWidth()
           
 org.eclipse.swt.graphics.ImageData getImageData()
           
 void paintIcon(org.eclipse.swt.graphics.GC gc, int x, int y)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NullIcon

public NullIcon(int width,
                int height)
Method Detail

createImage

public org.eclipse.swt.graphics.Image createImage(org.eclipse.swt.graphics.Device device)
Specified by:
createImage in interface Icon

getIconHeight

public int getIconHeight()
Specified by:
getIconHeight in interface Icon

getIconWidth

public int getIconWidth()
Specified by:
getIconWidth in interface Icon

getImageData

public org.eclipse.swt.graphics.ImageData getImageData()
Specified by:
getImageData in interface Icon

paintIcon

public void paintIcon(org.eclipse.swt.graphics.GC gc,
                      int x,
                      int y)
Specified by:
paintIcon in interface Icon


Copyright © 2008 Commonwealth of Australia