uchicago.src.guiUtils
Class ColorIcon
java.lang.Object
uchicago.src.guiUtils.ColorIcon
- All Implemented Interfaces:
- javax.swing.Icon
public class ColorIcon
- extends java.lang.Object
- implements javax.swing.Icon
|
Constructor Summary |
ColorIcon(java.awt.Color color)
|
ColorIcon(java.awt.Color color,
int size)
|
ColorIcon(java.awt.Color color,
int width,
int height,
int borderSize)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DEFAULT_SIZE
protected static final int DEFAULT_SIZE
- See Also:
- Constant Field Values
BORDER_SIZE
protected static final int BORDER_SIZE
- See Also:
- Constant Field Values
color
protected java.awt.Color color
shadowColor
protected java.awt.Color shadowColor
width
protected int width
height
protected int height
borderSize
protected int borderSize
fillHeight
protected int fillHeight
fillWidth
protected int fillWidth
ColorIcon
public ColorIcon(java.awt.Color color,
int width,
int height,
int borderSize)
ColorIcon
public ColorIcon(java.awt.Color color,
int size)
ColorIcon
public ColorIcon(java.awt.Color color)
setColor
public void setColor(java.awt.Color c)
getIconHeight
public int getIconHeight()
- Specified by:
getIconHeight in interface javax.swing.Icon
getIconWidth
public int getIconWidth()
- Specified by:
getIconWidth in interface javax.swing.Icon
paintIcon
public void paintIcon(java.awt.Component comp,
java.awt.Graphics g,
int x,
int y)
- Specified by:
paintIcon in interface javax.swing.Icon