use of org.concord.energy3d.simulation.PvDesignSpecs in project energy3d by concord-consortium.
the class PvProjectInfoPanel method updateSolarPanelNumberMaximum.
public void updateSolarPanelNumberMaximum() {
final PvDesignSpecs specs = Scene.getInstance().getPvDesignSpecs();
String t = "Number of solar panels";
if (specs.isNumberOfSolarPanelsEnabled()) {
t += " (" + "<" + specs.getMaximumNumberOfSolarPanels() + ")";
}
countBar.setMaximum(specs.getMaximumNumberOfSolarPanels());
countPanel.setBorder(EnergyPanel.createTitledBorder(t, true));
countBar.setEnabled(specs.isNumberOfSolarPanelsEnabled());
countBar.repaint();
}
Aggregations