dsto.dfc.swt.icons
Class ColourIcon
java.lang.Object
dsto.dfc.swt.icons.DynamicIcon
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)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ColourIcon
public ColourIcon(org.eclipse.swt.graphics.RGB colour,
int width,
int height)
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