com.timjohnstondev.unitconverter.logic
Class MolarMassLogic

java.lang.Object
  extended by 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.


Method Summary
static BigDecimal getMolecularWeightCorrection(JTextField massMoleField, JButton mass2Mole, Object selectedButton, boolean isMolUnitDivisor)
          Performs calculation to determine the molecular weight correction factor.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getMolecularWeightCorrection

public static BigDecimal getMolecularWeightCorrection(JTextField massMoleField,
                                                      JButton mass2Mole,
                                                      Object selectedButton,
                                                      boolean isMolUnitDivisor)
Performs calculation to determine the molecular weight correction factor.

Parameters:
massMoleField - massMoleField
mass2Mole - mass2Mole
selectedButton - selectedButton
isMolUnitDivisor - isMolUnitDivisor
Returns:
the molecular weight correction factor


Copyright © 2009 Tim Johnston Development, LLC. All Rights Reserved.