Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## 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

Field Summary
`protected static int` | `BORDER_SIZE`
`protected int` | `borderSize`
`protected java.awt.Color` | `color`
`protected static int` | `DEFAULT_SIZE`
`protected int` | `fillHeight`
`protected int` | `fillWidth`
`protected int` | `height`
`protected java.awt.Color` | `shadowColor`
`protected int` | `width`

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)`

Method Summary
`int` | `getIconHeight()`
`int` | `getIconWidth()`
`void` | `paintIcon(java.awt.Component comp, java.awt.Graphics g, int x, int y)`
`void` | `setColor(java.awt.Color c)`

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Field Detail

### 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

Constructor Detail

### 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)

Method Detail

### 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`

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD