protected static class ColorChoiceDDMenu.ColorIcon
extends java.lang.Object
implements javax.swing.Icon
Constructor and Description |
---|
ColorIcon(java.awt.Color c,
int w,
int h) |
Modifier and Type | Method and Description |
---|---|
int |
getIconHeight() |
int |
getIconWidth() |
void |
paintIcon(java.awt.Component comp,
java.awt.Graphics g,
int x,
int y) |
void |
setColor(java.awt.Color c) |
public void setColor(java.awt.Color c)
public int getIconWidth()
getIconWidth
in interface javax.swing.Icon
public int getIconHeight()
getIconHeight
in interface javax.swing.Icon
public void paintIcon(java.awt.Component comp, java.awt.Graphics g, int x, int y)
paintIcon
in interface javax.swing.Icon