Search in sources :

Example 6 with PvDesignSpecs

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();
}
Also used : PvDesignSpecs(org.concord.energy3d.simulation.PvDesignSpecs)

Aggregations

PvDesignSpecs (org.concord.energy3d.simulation.PvDesignSpecs)6 PvCustomPrice (org.concord.energy3d.simulation.PvCustomPrice)3 ColorRGBA (com.ardor3d.math.ColorRGBA)1 ReadOnlyColorRGBA (com.ardor3d.math.type.ReadOnlyColorRGBA)1 Date (java.util.Date)1 EnergyPanel (org.concord.energy3d.gui.EnergyPanel)1 FoundationPolygon (org.concord.energy3d.model.FoundationPolygon)1 HousePart (org.concord.energy3d.model.HousePart)1 Human (org.concord.energy3d.model.Human)1 Rack (org.concord.energy3d.model.Rack)1 SolarPanel (org.concord.energy3d.model.SolarPanel)1 Tree (org.concord.energy3d.model.Tree)1 Atmosphere (org.concord.energy3d.simulation.Atmosphere)1 CspCustomPrice (org.concord.energy3d.simulation.CspCustomPrice)1 CspDesignSpecs (org.concord.energy3d.simulation.CspDesignSpecs)1 DesignSpecs (org.concord.energy3d.simulation.DesignSpecs)1 Ground (org.concord.energy3d.simulation.Ground)1 LocationData (org.concord.energy3d.simulation.LocationData)1