edu.northwestern.at.utils.swing.icons
Class RedBulletIcon

java.lang.Object
  extended by edu.northwestern.at.utils.swing.icons.RedBulletIcon
All Implemented Interfaces:
javax.swing.Icon

public class RedBulletIcon
extends java.lang.Object
implements javax.swing.Icon

Red bullet icon.


Constructor Summary
RedBulletIcon(int size)
          Constructs a new icon.
 
Method Summary
 int getIconHeight()
          Gets the icon height (size).
 int getIconWidth()
          Gets the icon width (size).
 void paintIcon(java.awt.Component c, java.awt.Graphics g, int x, int y)
          Paints the icon.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RedBulletIcon

public RedBulletIcon(int size)
Constructs a new icon.

Method Detail

getIconHeight

public int getIconHeight()
Gets the icon height (size).

Specified by:
getIconHeight in interface javax.swing.Icon
Returns:
The icon height.

getIconWidth

public int getIconWidth()
Gets the icon width (size).

Specified by:
getIconWidth in interface javax.swing.Icon
Returns:
The icon width.

paintIcon

public void paintIcon(java.awt.Component c,
                      java.awt.Graphics g,
                      int x,
                      int y)
Paints the icon.

Specified by:
paintIcon in interface javax.swing.Icon
Parameters:
c - Component.
g - Graphics environment.
x - X coordinate of icon.
y - Y coordinate of icon.