public class GrayableIcon
extends java.lang.Object
implements javax.swing.Icon
Constructor and Description |
---|
GrayableIcon(javax.swing.Icon originalIcon) |
Modifier and Type | Method and Description |
---|---|
int |
getIconHeight() |
int |
getIconWidth() |
boolean |
isGrayed() |
void |
paintIcon(java.awt.Component c,
java.awt.Graphics g,
int x,
int y) |
void |
setGrayed(boolean grayed) |
public void setGrayed(boolean grayed)
public boolean isGrayed()
public int getIconHeight()
getIconHeight
in interface javax.swing.Icon
public int getIconWidth()
getIconWidth
in interface javax.swing.Icon
public void paintIcon(java.awt.Component c, java.awt.Graphics g, int x, int y)
paintIcon
in interface javax.swing.Icon