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.Icon
TODO: add type comment forColorIcon
.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getIconHeight()
int
getIconWidth()
void
paintIcon(java.awt.Component arg0, java.awt.Graphics graphics, int x, int y)
void
setColor(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:
paintIcon
in interfacejavax.swing.Icon
-
getIconWidth
public int getIconWidth()
- Specified by:
getIconWidth
in interfacejavax.swing.Icon
-
getIconHeight
public int getIconHeight()
- Specified by:
getIconHeight
in interfacejavax.swing.Icon
-
-