|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectcom.explodingpixels.macwidgets.SourceListCountBadgeRenderer
public class SourceListCountBadgeRenderer
Renders a rounded rectangle (i.e. a badge) with a given number in the center of the rectangle.
| Constructor Summary | |
|---|---|
SourceListCountBadgeRenderer(java.awt.Color selectedColor,
java.awt.Color activeUnselectedColor,
java.awt.Color inactiveUnselectedColor,
java.awt.Color textColor)
Creates a badge renderer. |
|
| Method Summary | |
|---|---|
javax.swing.JComponent |
getComponent()
Gets the user interface component to representing this SourceListCountBadgeRenderer. |
void |
setState(int count,
boolean selected)
Sets the state to use when drawing the badge. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SourceListCountBadgeRenderer(java.awt.Color selectedColor,
java.awt.Color activeUnselectedColor,
java.awt.Color inactiveUnselectedColor,
java.awt.Color textColor)
| Method Detail |
|---|
public void setState(int count,
boolean selected)
count - the count value to draw in the center of the badge.selected - true if the badge should be rendered in a selected state.public javax.swing.JComponent getComponent()
SourceListCountBadgeRenderer.
The returned JComponent should be added to a container that will be displayed.
SourceListCountBadgeRenderer.
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||