Package org.apache.uima.tools.cvd
Class ColorIcon
- java.lang.Object
-
- org.apache.uima.tools.cvd.ColorIcon
-
- All Implemented Interfaces:
javax.swing.Icon
public class ColorIcon extends java.lang.Object implements javax.swing.IconTODO: add type comment forColorIcon.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetIconHeight()intgetIconWidth()voidpaintIcon(java.awt.Component arg0, java.awt.Graphics graphics, int x, int y)voidsetColor(java.awt.Color color)Sets the color.
-
-
-
Field Detail
-
size
private static final int size
The Constant size.- See Also:
- Constant Field Values
-
color
private java.awt.Color color
The color.
-
-
Method Detail
-
setColor
public void setColor(java.awt.Color color)
Sets the color.- Parameters:
color- the new color
-
paintIcon
public void paintIcon(java.awt.Component arg0, java.awt.Graphics graphics, int x, int y)- Specified by:
paintIconin interfacejavax.swing.Icon
-
getIconWidth
public int getIconWidth()
- Specified by:
getIconWidthin interfacejavax.swing.Icon
-
getIconHeight
public int getIconHeight()
- Specified by:
getIconHeightin interfacejavax.swing.Icon
-
-