use of net.sourceforge.processdash.ui.lib.LevelIndicator in project processdash by dtuma.
the class PercentSpentIndicator method buildUI.
private void buildUI() {
layout = new CardLayout();
setLayout(layout);
levelIndicator = new LevelIndicator(true);
levelIndicator.setPaintBarRect(false);
add(levelIndicator, LEVEL_INDICATOR_KEY);
Icon hourglassIcon = DashboardIconFactory.getHourglassIcon();
JLabel label = new JLabel(hourglassIcon);
add(label, MISSING_ESTIMATE_KEY);
if (!Settings.isReadOnly()) {
addMouseListener(new MouseAdapter() {
public void mousePressed(MouseEvent e) {
showEditEstimateDialog();
}
});
}
setBorder(BorderFactory.createLineBorder(UIManager.getColor("controlDkShadow")));
Dimension d = new Dimension(hourglassIcon.getIconWidth() + 4, hourglassIcon.getIconHeight() + 6);
setMinimumSize(d);
setPreferredSize(d);
new ToolTipTimingCustomizer(750, 60000).install(this);
}
Aggregations