org.jivesoftware.spark.component
Class ProgressIcon
java.lang.Object
org.jivesoftware.spark.component.ProgressIcon
- All Implemented Interfaces:
- javax.swing.Icon
public class ProgressIcon
- extends java.lang.Object
- implements javax.swing.Icon
Displays a bar graph based on a percentage or relevance up to 100%.
- Author:
- Derek DeMoro
Constructor Summary |
ProgressIcon(int percent)
Create new ProgressIcon. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ProgressIcon
public ProgressIcon(int percent)
- Create new ProgressIcon.
- Parameters:
percent
- the percentage to display.
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 c,
java.awt.Graphics g,
int x,
int y)
- Specified by:
paintIcon
in interface javax.swing.Icon