com.timjohnstondev.unitconverter.logic
Class MolarMassLogic
java.lang.Object
com.timjohnstondev.unitconverter.logic.MolarMassLogic
public final class MolarMassLogic
- extends Object
Utility class that contains all of the logic for dealing with the mole to mass calculations for the conversions.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
getMolecularWeightCorrection
public static BigDecimal getMolecularWeightCorrection(JTextField massMoleField,
JButton mass2Mole,
Object selectedButton,
boolean isMolUnitDivisor)
- Performs calculation to determine the molecular weight correction factor.
- Parameters:
massMoleField - massMoleFieldmass2Mole - mass2MoleselectedButton - selectedButtonisMolUnitDivisor - isMolUnitDivisor
- Returns:
- the molecular weight correction factor
Copyright © 2009 Tim Johnston Development, LLC. All Rights Reserved.