| java.lang.Object gruntspud.ui.icons.ColorIcon
ColorIcon | public class ColorIcon implements Icon(Code) | | A simple colored implementation of an Icon
author: Brett Smith |
ColorIcon | public ColorIcon()(Code) | | Construct a new 16x16 ColorIcon black icon
Parameters: none - |
ColorIcon | public ColorIcon(Color color)(Code) | | Construct a new 16x16 ColorIcon given a color
Parameters: color - the icon color |
ColorIcon | public ColorIcon(Color color, Color borderColor)(Code) | | Construct a new 16x16 ColorIcon given a color and border
color
Parameters: color - the icon color Parameters: borderColor - the border color |
ColorIcon | public ColorIcon(Color color, Dimension size, Color borderColor)(Code) | | Construct a new ColorIcon given a size, color and border
color
Parameters: color - the icon color Parameters: size - the icon size Parameters: borderColor - the border color |
getIconHeight | public int getIconHeight()(Code) | | Returns the icon's height.
an int specifying the fixed height of the icon. |
getIconWidth | public int getIconWidth()(Code) | | Returns the icon's width.
an int specifying the fixed width of the icon. |
paintIcon | public void paintIcon(Component c, Graphics g, int x, int y)(Code) | | Draw the icon at the specified location. Icon implementations
may use the Component argument to get properties useful for
painting, e.g. the foreground or background color.
|
setBorderColor | public void setBorderColor(Color borderColor)(Code) | | Set the border color. null means no border
Parameters: color - border color |
setColor | public void setColor(Color color)(Code) | | Set the icon color. null means black
Parameters: color - icon color |
setSize | public void setSize(Dimension size)(Code) | | Set the icon size. null means 16x16
Parameters: size - the icon size |
|
|