Logo Search packages:      
Sourcecode: pcalendar version File versions  Download package

void net::sf::linuxorg::pcal::engine::Engine::changeBBTScale ( final boolean  toCelsiusScale ) [inline]

This method goes through the BBT records list and adjusts the temperatures either to Celsius or to Fahrenheit

toCelsiusScale- if true, the conversion is performed from Celsius to Fahrenheit, if false - vice versa

Definition at line 1538 of file Engine.java.

References bBTList, convertTemperatureScale(), fileBBTCelsiusScale, and modified.


            // check if anything needs to be done
            if(toCelsiusScale == fileBBTCelsiusScale) return; 

            for(Date date: bBTList.keySet()) {
                              convertTemperatureScale(toCelsiusScale, bBTList.get(date)));

            fileBBTCelsiusScale = toCelsiusScale;
            modified = true;

Here is the call graph for this function:

Generated by  Doxygen 1.6.0   Back to index