use of delta.games.lotro.gui.character.stats.curves.StatCurvesChartConfiguration in project lotro-companion by dmorcellet.
the class DetailedCharacterStatsPanelController method buildLabelForStat.
private JLabel buildLabelForStat(String text, STAT stat) {
JLabel label = null;
if (stat != null) {
final StatCurvesChartConfiguration config = (_statCurvesMgr != null) ? _statCurvesMgr.getConfigForStat(stat) : null;
if (config != null) {
ActionListener al = new ActionListener() {
@Override
public void actionPerformed(ActionEvent e) {
_statCurvesMgr.showStatCurvesWindow(config);
}
};
LocalHyperlinkAction action = new LocalHyperlinkAction(text, al);
HyperLinkController controller = new HyperLinkController(action);
label = controller.getLabel();
}
}
if (label == null) {
label = GuiFactory.buildLabel(text);
}
return label;
}
Aggregations