dsto.dfc.swt.icons
Class ColourIcon

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

public class ColourIcon
extends DynamicIcon
implements Icon

A simple icon displaying a block of solid colour.

Author:
Matthew Phillips

Constructor Summary
ColourIcon(org.eclipse.swt.graphics.RGB colour, int width, int height)
           
 
Method Summary
 int getIconHeight()
           
 int getIconWidth()
           
 void paintIcon(org.eclipse.swt.graphics.GC gc, int x, int y)
           
 
Methods inherited from class dsto.dfc.swt.icons.DynamicIcon
createImage, getImageData
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface dsto.dfc.swt.icons.Icon
createImage, getImageData
 

Constructor Detail

ColourIcon

public ColourIcon(org.eclipse.swt.graphics.RGB colour,
                  int width,
                  int height)
Method Detail

getIconHeight

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

getIconWidth

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

paintIcon

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


Copyright © 2008 Commonwealth of Australia