public class SourceListCountBadgeRenderer extends Object
| Constructor and Description |
|---|
SourceListCountBadgeRenderer(Color selectedColor,
Color activeUnselectedColor,
Color inactiveUnselectedColor,
Color textColor)
Creates a badge renderer.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
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 JComponent getComponent()
SourceListCountBadgeRenderer.
The returned JComponent should be added to a container that will be displayed.SourceListCountBadgeRenderer.