public class ActiveIcon
extends java.lang.Object
implements javax.swing.Icon
Constructor and Description |
---|
ActiveIcon(javax.swing.Icon icon) |
ActiveIcon(javax.swing.Icon regular,
javax.swing.Icon inactive) |
Modifier and Type | Method and Description |
---|---|
int |
getIconHeight() |
int |
getIconWidth() |
javax.swing.Icon |
getInactive() |
javax.swing.Icon |
getRegular() |
void |
paintIcon(java.awt.Component c,
java.awt.Graphics g,
int x,
int y) |
void |
setActive(boolean active) |
protected void |
setIcons(javax.swing.Icon regular,
javax.swing.Icon inactive) |
public ActiveIcon(javax.swing.Icon icon)
public ActiveIcon(javax.swing.Icon regular, javax.swing.Icon inactive)
protected void setIcons(javax.swing.Icon regular, javax.swing.Icon inactive)
public javax.swing.Icon getRegular()
public javax.swing.Icon getInactive()
public void setActive(boolean active)
public void paintIcon(java.awt.Component c, java.awt.Graphics g, int x, int y)
paintIcon
in interface javax.swing.Icon
public int getIconWidth()
getIconWidth
in interface javax.swing.Icon
public int getIconHeight()
getIconHeight
in interface javax.swing.Icon