levelLabel.setText(null);
levelLabel.setIcon(null);
if (o instanceof Thresholdable) {
Thresholdable t = (Thresholdable) o;
if (t.getThreshold() != null) {
levelLabel.setIcon(
(Icon) LevelIconFactory.getInstance().getLevelToIconMap().get(
t.getThreshold().toString()));
if (levelLabel.getIcon() == null) {
levelLabel.setText(t.getThreshold().toString());
}
}
}
setToolTipText(tooltip);