org.brains2b.coffee.gui.widget
Class NewIndicator

java.lang.Object
  extended by javax.swing.ImageIcon
      extended by org.brains2b.coffee.gui.widget.NewIndicator
All Implemented Interfaces:
java.io.Serializable, javax.accessibility.Accessible, javax.swing.Icon

public class NewIndicator
extends javax.swing.ImageIcon

Round icon showing the number of counts set by setCount(int)

Version:
$Revision: 1.3 $ $Date: 2010/07/05 00:56:22 $
Author:
dennis@brains2b.nl
See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class javax.swing.ImageIcon
javax.swing.ImageIcon.AccessibleImageIcon
 
Field Summary
static int HEIGHT
           
static int WIDTH
           
 
Fields inherited from class javax.swing.ImageIcon
component, tracker
 
Constructor Summary
NewIndicator(int count)
           
 
Method Summary
 int getIconHeight()
           
 int getIconWidth()
           
 void paintIcon(java.awt.Component c, java.awt.Graphics g, int x, int y)
           
 void setCount(int count)
           
 
Methods inherited from class javax.swing.ImageIcon
getAccessibleContext, getDescription, getImage, getImageLoadStatus, getImageObserver, loadImage, setDescription, setImage, setImageObserver, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

WIDTH

public static final int WIDTH
See Also:
Constant Field Values

HEIGHT

public static final int HEIGHT
See Also:
Constant Field Values
Constructor Detail

NewIndicator

public NewIndicator(int count)
Method Detail

getIconHeight

public int getIconHeight()
Specified by:
getIconHeight in interface javax.swing.Icon
Overrides:
getIconHeight in class javax.swing.ImageIcon

getIconWidth

public int getIconWidth()
Specified by:
getIconWidth in interface javax.swing.Icon
Overrides:
getIconWidth in class javax.swing.ImageIcon

paintIcon

public void paintIcon(java.awt.Component c,
                      java.awt.Graphics g,
                      int x,
                      int y)
Specified by:
paintIcon in interface javax.swing.Icon
Overrides:
paintIcon in class javax.swing.ImageIcon

setCount

public void setCount(int count)