org.brains2b.coffee.gui.widget
Class NewIndicator
java.lang.Object
javax.swing.ImageIcon
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 classes/interfaces inherited from class javax.swing.ImageIcon |
javax.swing.ImageIcon.AccessibleImageIcon |
Fields inherited from class javax.swing.ImageIcon |
component, tracker |
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 |
WIDTH
public static final int WIDTH
- See Also:
- Constant Field Values
HEIGHT
public static final int HEIGHT
- See Also:
- Constant Field Values
NewIndicator
public NewIndicator(int count)
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)