A C E F G H I L M P R S T U

A

AboutPanel - Class in com.timjohnstondev.unitconverter.view
This panel displays all of the information about this application including version, author and contact information.
actionPerformed(ActionEvent) - Method in class com.timjohnstondev.unitconverter.view.ConfigurationPanel
 
actionPerformed(ActionEvent) - Method in class com.timjohnstondev.unitconverter.view.MolarMassPanel
 
addConversion(Conversion) - Method in class com.timjohnstondev.unitconverter.model.Property
Adds a Conversion which is a formula or factor that is used to perform unit conversions.
addFactorChangeListener(FactorChangeListener) - Method in class com.timjohnstondev.unitconverter.view.UnitPanel
Add a new FactorChangeListener to the listeners to notify in the event of any changes.

C

CalculationLogic - Class in com.timjohnstondev.unitconverter.logic
Utility class that contains all of the logic for performing mathematical calculations for the conversions.
CalculationPanel - Class in com.timjohnstondev.unitconverter.view
This panel contains all of the JTextFields for input, conversion factor and result display.
CalculationPanel() - Constructor for class com.timjohnstondev.unitconverter.view.CalculationPanel
Constructs a CalculationPanel and sets the layout and size of the panel and its contents.
CLEAR_FACTOR_ACTION - Static variable in class com.timjohnstondev.unitconverter.view.listener.FactorChangeEvent
Tells the listeners to clear the factor displays
clearFactor() - Method in class com.timjohnstondev.unitconverter.view.CalculationPanel
Clears out the text of the conversion factor and results displays by setting their text to null.
com.timjohnstondev.unitconverter - package com.timjohnstondev.unitconverter
 
com.timjohnstondev.unitconverter.controller - package com.timjohnstondev.unitconverter.controller
 
com.timjohnstondev.unitconverter.logic - package com.timjohnstondev.unitconverter.logic
 
com.timjohnstondev.unitconverter.model - package com.timjohnstondev.unitconverter.model
 
com.timjohnstondev.unitconverter.view - package com.timjohnstondev.unitconverter.view
 
com.timjohnstondev.unitconverter.view.listener - package com.timjohnstondev.unitconverter.view.listener
 
compareTo(Property) - Method in class com.timjohnstondev.unitconverter.model.Property
 
Configuration - Interface in com.timjohnstondev.unitconverter.view
The Configuration interface provides a way to update some of the user configurable UI components.
ConfigurationLogic - Class in com.timjohnstondev.unitconverter.logic
Utility class that contains all of the logic for maintaining the user preferences.
ConfigurationPanel - Class in com.timjohnstondev.unitconverter.view
This panel contains all of the configuration options for the application.
ConfigurationPanel(UnitConverter, ModelController) - Constructor for class com.timjohnstondev.unitconverter.view.ConfigurationPanel
Constructs a ConfigurationPanel with a UnitConverter to allow access back to the application's main panel for updating.
Conversion - Interface in com.timjohnstondev.unitconverter.model
A Conversion provides access to the unit symbol, html formatted symbol (used to show exponents correctly), unit name and the conversion factor or formula.
ConversionFactor - Class in com.timjohnstondev.unitconverter.model
This is a unit of measure with its related conversion factor to some base unit.
ConversionFactor(String, String, String) - Constructor for class com.timjohnstondev.unitconverter.model.ConversionFactor
Constructs a ConversionFactor setting its name, symbol and factor.
ConversionFactorParser - Class in com.timjohnstondev.unitconverter.logic
Parser that parses a XML file, but the important part is the ConversionFactorParserHandler.
ConversionFactorParser(DefaultHandler) - Constructor for class com.timjohnstondev.unitconverter.logic.ConversionFactorParser
Constructs and initializes a ConversionFactorParser to the given DefaultHandler.
ConversionFactorParserHandler - Class in com.timjohnstondev.unitconverter.logic
This DefaultHandler is made specifically for this application.
ConversionFactorParserHandler() - Constructor for class com.timjohnstondev.unitconverter.logic.ConversionFactorParserHandler
 
ConversionFormula - Class in com.timjohnstondev.unitconverter.model
This is a unit of measure with its related conversion formula to another unit.
ConversionFormula(String, String, String, String) - Constructor for class com.timjohnstondev.unitconverter.model.ConversionFormula
Constructs a ConversionFormula setting its name, symbol, to-symbol and formula.

E

endElement(String, String, String) - Method in class com.timjohnstondev.unitconverter.logic.ConversionFactorParserHandler
 

F

factorChanged(FactorChangeEvent) - Method in interface com.timjohnstondev.unitconverter.view.listener.FactorChangeListener
Invoked when an factor change occurs.
factorChanged(FactorChangeEvent) - Method in class com.timjohnstondev.unitconverter.view.UnitConverter
 
FactorChangeEvent - Class in com.timjohnstondev.unitconverter.view.listener
FactorChangeEvent is used to notify interested parties that factor has changed.
FactorChangeEvent(Object, int) - Constructor for class com.timjohnstondev.unitconverter.view.listener.FactorChangeEvent
Constructs a FactorChangeEvent object and sets the action.
FactorChangeEvent(Object, String, BigDecimal) - Constructor for class com.timjohnstondev.unitconverter.view.listener.FactorChangeEvent
Constructs a FactorChangeEvent object and sets the conversion value.
FactorChangeListener - Interface in com.timjohnstondev.unitconverter.view.listener
The listener interface for receiving FactorChangeEvents.
FormulaParser - Class in com.timjohnstondev.unitconverter.logic
This parser can take a String as a formula that contains a variable (must be X) and the value for that variable, do the calculations to return a BigDecimal.

G

getAction() - Method in class com.timjohnstondev.unitconverter.view.listener.FactorChangeEvent
Returns the event's action
getConversion(String, String, String) - Method in class com.timjohnstondev.unitconverter.controller.ModelController
Returns the Conversion factor or formula for the given Property name for going from one set of units to another.
getConversion() - Method in interface com.timjohnstondev.unitconverter.model.Conversion
Returns this Conversion's factor or formula used to convert from one set of units to another.
getConversion() - Method in class com.timjohnstondev.unitconverter.model.ConversionFactor
 
getConversion() - Method in class com.timjohnstondev.unitconverter.model.ConversionFormula
 
getConversion(String, String, String) - Method in class com.timjohnstondev.unitconverter.model.PropertyList
Returns the Conversion factor or formula for the given Property for going from one set of units to another.
getConversionFactor(String) - Method in class com.timjohnstondev.unitconverter.controller.LogicController
Returns the formula or formatted numeric conversion factor.
getConversionFactor(String) - Static method in class com.timjohnstondev.unitconverter.logic.CalculationLogic
Returns the formula or formatted numeric conversion factor.
getCoversion() - Method in class com.timjohnstondev.unitconverter.view.listener.FactorChangeEvent
Returns the conversion factor value
getFontSizePreference(int) - Method in class com.timjohnstondev.unitconverter.controller.LogicController
Looks into the Preference settings.
getFontSizePreference(int) - Static method in class com.timjohnstondev.unitconverter.logic.ConfigurationLogic
Looks into the JVM preference storage location for the Font size.
getFormattedUnitSymbol() - Method in interface com.timjohnstondev.unitconverter.model.Conversion
Returns the html formatted unit symbol (used to show exponents correctly) for this Conversion.
getFormattedUnitSymbol() - Method in class com.timjohnstondev.unitconverter.model.ConversionFactor
 
getFormattedUnitSymbol() - Method in class com.timjohnstondev.unitconverter.model.ConversionFormula
 
getMolecularWeight() - Method in class com.timjohnstondev.unitconverter.view.listener.FactorChangeEvent
Returns the molecular weight, default is 1
getMolecularWeightCorrection(JTextField, JButton, Object, boolean) - Method in class com.timjohnstondev.unitconverter.controller.LogicController
Returns the correction factor to convert to/from mole units.
getMolecularWeightCorrection(JTextField, JButton, Object, boolean) - Static method in class com.timjohnstondev.unitconverter.logic.MolarMassLogic
Performs calculation to determine the molecular weight correction factor.
getName() - Method in class com.timjohnstondev.unitconverter.model.Property
Returns this Property's name
getOrder() - Method in class com.timjohnstondev.unitconverter.model.Property
Returns this Property's sort order
getPreferenceIndex(ListModel, String) - Method in class com.timjohnstondev.unitconverter.controller.LogicController
Returns the index of the item provided in the ListModel.
getPreferenceIndex(ListModel, int) - Method in class com.timjohnstondev.unitconverter.controller.LogicController
Returns the index of the item provided in the ListModel.
getPreferenceIndex(ListModel, String) - Static method in class com.timjohnstondev.unitconverter.logic.ConfigurationLogic
Returns the index of the item provided in the ListModel.
getPropertyList() - Method in class com.timjohnstondev.unitconverter.logic.ConversionFactorParserHandler
Returns the PropertyList constructed by the parser.
getPropertyNames() - Method in class com.timjohnstondev.unitconverter.controller.ModelController
Returns a list of all the Property names in the data source.
getPropertyNames() - Method in class com.timjohnstondev.unitconverter.model.PropertyList
Returns a list of all the Property names in the data source.
getResult(String, String, BigDecimal) - Method in class com.timjohnstondev.unitconverter.controller.LogicController
Updates the result field if the input field has valid data and a conversion factor is selected.
getResult(String, String, BigDecimal) - Static method in class com.timjohnstondev.unitconverter.logic.CalculationLogic
Updates the result field if the input field has valid data and a conversion factor is selected.
getSymbols(String) - Method in class com.timjohnstondev.unitconverter.controller.ModelController
Returns a list of all the symbols for this Property in the data source.
getSymbols(String, String) - Method in class com.timjohnstondev.unitconverter.controller.ModelController
Returns a list, minus the symbol provided, of the symbols for this Property in the data source.
getSymbols(String) - Method in class com.timjohnstondev.unitconverter.model.PropertyList
Returns a list of all the symbols for the given Property in the data source.
getSymbols(String, String) - Method in class com.timjohnstondev.unitconverter.model.PropertyList
Returns a list, minus the symbol provided, of the symbols for the given Property in the data source.
getToUnitSymbol() - Method in class com.timjohnstondev.unitconverter.model.ConversionFormula
Returns the raw text symbol for the unit being converted to.
getUnitName(String, String) - Method in class com.timjohnstondev.unitconverter.controller.ModelController
Returns this symbol's name in unabbreviated words for this Property.
getUnitName() - Method in interface com.timjohnstondev.unitconverter.model.Conversion
Returns this symbol's name in unabbreviated words for this Conversion.
getUnitName() - Method in class com.timjohnstondev.unitconverter.model.ConversionFactor
 
getUnitName() - Method in class com.timjohnstondev.unitconverter.model.ConversionFormula
 
getUnitName(String, String) - Method in class com.timjohnstondev.unitconverter.model.PropertyList
Returns this symbol's name in unabbreviated words for this Property.
getUnitSeparator() - Method in class com.timjohnstondev.unitconverter.controller.ModelController
Returns the unit separator symbol or the default (*) if the value has not been set
getUnitSeparatorPreference() - Method in class com.timjohnstondev.unitconverter.controller.LogicController
Looks into the Preference settings.
getUnitSeparatorPreference() - Static method in class com.timjohnstondev.unitconverter.logic.ConfigurationLogic
Looks into the JVM preference storage location for the unit separator.
getUnitSymbol() - Method in interface com.timjohnstondev.unitconverter.model.Conversion
Returns the raw text unit symbol for this Conversion.
getUnitSymbol() - Method in class com.timjohnstondev.unitconverter.model.ConversionFactor
 
getUnitSymbol() - Method in class com.timjohnstondev.unitconverter.model.ConversionFormula
 

H

hasFormula() - Method in class com.timjohnstondev.unitconverter.model.Property
Returns true if this Property uses formulas for unit conversion, else false
hasMoles(ListModel) - Method in class com.timjohnstondev.unitconverter.controller.LogicController
Returns true if this property uses molar conversions.
hasMoles(ListModel) - Static method in class com.timjohnstondev.unitconverter.logic.UnitLogic
Determines if there is a mole part of the unit already.

I

insertMol(JList, String) - Method in class com.timjohnstondev.unitconverter.controller.LogicController
Add the molar unit to the original unit.
insertMol(JList, String) - Static method in class com.timjohnstondev.unitconverter.logic.UnitLogic
Changes the unit to show mole as appropriate.
isMolUnitDivisor(ListModel) - Method in class com.timjohnstondev.unitconverter.controller.LogicController
True if the molar units are on the bottom of the / sign, false if the molar units are on top.
isMolUnitDivisor(ListModel) - Static method in class com.timjohnstondev.unitconverter.logic.UnitLogic
Determines if the mole part of the unit will be in the divisor or not.

L

Launcher - Class in com.timjohnstondev.unitconverter
This is the launcher class and window for this application.
LogicController - Class in com.timjohnstondev.unitconverter.controller
The controller in the MVC pattern for this application.
LogicController() - Constructor for class com.timjohnstondev.unitconverter.controller.LogicController
 

M

main(String[]) - Static method in class com.timjohnstondev.unitconverter.Launcher
Starts this application.
ModelController - Class in com.timjohnstondev.unitconverter.controller
The controller in the MVC pattern for this application.
ModelController() - Constructor for class com.timjohnstondev.unitconverter.controller.ModelController
Constructs and initializes a ModelController, pulling all of the model data into a PropertyList.
MolarMassLogic - Class in com.timjohnstondev.unitconverter.logic
Utility class that contains all of the logic for dealing with the mole to mass calculations for the conversions.
MolarMassPanel - Class in com.timjohnstondev.unitconverter.view
This panel displays all of the information regarding mole to mass and mass to mole conversions.
MolarMassPanel(UnitPanel) - Constructor for class com.timjohnstondev.unitconverter.view.MolarMassPanel
Constructs a MolarMassPanel
mouseClicked(MouseEvent) - Method in class com.timjohnstondev.unitconverter.view.MolarMassPanel
 
mouseClicked(MouseEvent) - Method in class com.timjohnstondev.unitconverter.view.UnitPanel
 
mouseDragged(MouseEvent) - Method in class com.timjohnstondev.unitconverter.view.listener.ReorderAdapter
 
mouseDragged(MouseEvent) - Method in class com.timjohnstondev.unitconverter.view.UnitConverter
 
mouseDragged(MouseEvent) - Method in class com.timjohnstondev.unitconverter.view.UnitPanel
 
mouseEntered(MouseEvent) - Method in class com.timjohnstondev.unitconverter.view.MolarMassPanel
 
mouseEntered(MouseEvent) - Method in class com.timjohnstondev.unitconverter.view.UnitPanel
 
mouseExited(MouseEvent) - Method in class com.timjohnstondev.unitconverter.view.MolarMassPanel
 
mouseExited(MouseEvent) - Method in class com.timjohnstondev.unitconverter.view.UnitPanel
 
mouseMoved(MouseEvent) - Method in class com.timjohnstondev.unitconverter.view.UnitConverter
 
mouseMoved(MouseEvent) - Method in class com.timjohnstondev.unitconverter.view.UnitPanel
 
mousePressed(MouseEvent) - Method in class com.timjohnstondev.unitconverter.view.listener.ReorderAdapter
 
mousePressed(MouseEvent) - Method in class com.timjohnstondev.unitconverter.view.MolarMassPanel
 
mousePressed(MouseEvent) - Method in class com.timjohnstondev.unitconverter.view.UnitPanel
 
mouseReleased(MouseEvent) - Method in class com.timjohnstondev.unitconverter.view.listener.ReorderAdapter
 
mouseReleased(MouseEvent) - Method in class com.timjohnstondev.unitconverter.view.MolarMassPanel
 
mouseReleased(MouseEvent) - Method in class com.timjohnstondev.unitconverter.view.UnitPanel
 

P

parse() - Method in class com.timjohnstondev.unitconverter.logic.ConversionFactorParser
Connects to the XML file and parses it.
parse(String, String) - Static method in class com.timjohnstondev.unitconverter.logic.FormulaParser
Returns the calculated value of the given formula with the variable value substituted in.
Property - Class in com.timjohnstondev.unitconverter.model
A Property, such as temperature, pressure or length, has units and conversion factors or formulas to convert between the different units.
Property(String, boolean, boolean) - Constructor for class com.timjohnstondev.unitconverter.model.Property
Constructs a Property with the given name and specifies if it uses formulas or factors for unit conversion.
PropertyList - Class in com.timjohnstondev.unitconverter.model
A collection of Propertys and their unit symbols/names from the data source.
PropertyList() - Constructor for class com.timjohnstondev.unitconverter.model.PropertyList
 

R

ReorderAdapter - Class in com.timjohnstondev.unitconverter.view.listener
This listener allows reordering of a JList that is backed by a DefaultListModel.
ReorderAdapter(ModelController, JList) - Constructor for class com.timjohnstondev.unitconverter.view.listener.ReorderAdapter
 

S

setBackgroundColor(Color) - Method in class com.timjohnstondev.unitconverter.view.AboutPanel
 
setBackgroundColor(Color) - Method in class com.timjohnstondev.unitconverter.view.CalculationPanel
 
setBackgroundColor(Color) - Method in interface com.timjohnstondev.unitconverter.view.Configuration
Changes the background color for this and all contained components.
setBackgroundColor(Color) - Method in class com.timjohnstondev.unitconverter.view.ConfigurationPanel
 
setBackgroundColor(Color) - Method in class com.timjohnstondev.unitconverter.view.MolarMassPanel
 
setBackgroundColor(Color) - Method in class com.timjohnstondev.unitconverter.view.TopPanel
 
setBackgroundColor(Color) - Method in class com.timjohnstondev.unitconverter.view.UnitConverter
 
setBackgroundColor(Color) - Method in class com.timjohnstondev.unitconverter.view.UnitLabelPanel
 
setBackgroundColor(Color) - Method in class com.timjohnstondev.unitconverter.view.UnitPanel
 
setConversion(String) - Method in class com.timjohnstondev.unitconverter.view.CalculationPanel
Updates the conversion factor field and stores the exact number or formula because the display may limit the characters to show.
setFontSize(float) - Method in class com.timjohnstondev.unitconverter.view.AboutPanel
 
setFontSize(float) - Method in class com.timjohnstondev.unitconverter.view.CalculationPanel
 
setFontSize(float) - Method in interface com.timjohnstondev.unitconverter.view.Configuration
Changes the font size for this and all contained components while maintaining the font name and style.
setFontSize(float) - Method in class com.timjohnstondev.unitconverter.view.ConfigurationPanel
 
setFontSize(float) - Method in class com.timjohnstondev.unitconverter.view.MolarMassPanel
 
setFontSize(float) - Method in class com.timjohnstondev.unitconverter.view.TopPanel
 
setFontSize(float) - Method in class com.timjohnstondev.unitconverter.view.UnitConverter
 
setFontSize(float) - Method in class com.timjohnstondev.unitconverter.view.UnitLabelPanel
 
setFontSize(float) - Method in class com.timjohnstondev.unitconverter.view.UnitPanel
 
setFontSizePreference(int) - Method in class com.timjohnstondev.unitconverter.controller.LogicController
Puts a font size preference into the Preference settings.
setFontSizePreference(int) - Static method in class com.timjohnstondev.unitconverter.logic.ConfigurationLogic
Puts a font size preference into the JVM preference storage location.
setForegroundColor(Color) - Method in class com.timjohnstondev.unitconverter.view.AboutPanel
 
setForegroundColor(Color) - Method in class com.timjohnstondev.unitconverter.view.CalculationPanel
 
setForegroundColor(Color) - Method in interface com.timjohnstondev.unitconverter.view.Configuration
Changes the foreground color for this and all contained components.
setForegroundColor(Color) - Method in class com.timjohnstondev.unitconverter.view.ConfigurationPanel
 
setForegroundColor(Color) - Method in class com.timjohnstondev.unitconverter.view.MolarMassPanel
 
setForegroundColor(Color) - Method in class com.timjohnstondev.unitconverter.view.TopPanel
 
setForegroundColor(Color) - Method in class com.timjohnstondev.unitconverter.view.UnitConverter
 
setForegroundColor(Color) - Method in class com.timjohnstondev.unitconverter.view.UnitLabelPanel
 
setForegroundColor(Color) - Method in class com.timjohnstondev.unitconverter.view.UnitPanel
 
setOrder(int) - Method in class com.timjohnstondev.unitconverter.model.Property
Sets this Property's sort order
setPropertyOrderPreferences(JList) - Method in class com.timjohnstondev.unitconverter.controller.ModelController
Updates the preference that orders the Propertys in the application.
setUnitSeparator(String) - Method in class com.timjohnstondev.unitconverter.controller.ModelController
Updates the unit separator symbol
setUnitSeparator(String) - Method in interface com.timjohnstondev.unitconverter.model.Conversion
Updates the unit separator symbol
setUnitSeparator(String) - Method in class com.timjohnstondev.unitconverter.model.ConversionFactor
 
setUnitSeparator(String) - Method in class com.timjohnstondev.unitconverter.model.ConversionFormula
 
setUnitSeparator(String) - Method in class com.timjohnstondev.unitconverter.model.Property
Updates the unit separator symbol
setUnitSeparator(String) - Method in class com.timjohnstondev.unitconverter.model.PropertyList
Updates the unit separator symbol
setUnitSeparatorPreference(String) - Method in class com.timjohnstondev.unitconverter.controller.LogicController
Puts a unit separator symbol preference into the Preference settings.
setUnitSeparatorPreference(String) - Static method in class com.timjohnstondev.unitconverter.logic.ConfigurationLogic
Puts a unit separator symbol preference into the JVM preference storage location.
startElement(String, String, String, Attributes) - Method in class com.timjohnstondev.unitconverter.logic.ConversionFactorParserHandler
 

T

TopPanel - Class in com.timjohnstondev.unitconverter.view
This JTabbedPane provided a way to add the ConfigurationPanel and AboutPanel without adding more to the window size.
TopPanel(UnitConverter, ModelController) - Constructor for class com.timjohnstondev.unitconverter.view.TopPanel
Constructs a TopPanel with a UnitConverter to allow contained panels access to other panels for updating.

U

UnitConverter - Class in com.timjohnstondev.unitconverter.view
This is the main class for this application.
UnitConverter() - Constructor for class com.timjohnstondev.unitconverter.view.UnitConverter
Constructs a UnitConverter.
UnitLabelPanel - Class in com.timjohnstondev.unitconverter.view
This panel holds the labels for the UnitPanel.
UnitLabelPanel() - Constructor for class com.timjohnstondev.unitconverter.view.UnitLabelPanel
Constructs a UnitLabelPanel setting the label sizes to match the UnitPanel lists.
UnitLogic - Class in com.timjohnstondev.unitconverter.logic
Utility class that contains all of the logic for checking and updating the units with mole.
UnitPanel - Class in com.timjohnstondev.unitconverter.view
This panel contains all of the Propertys with their respective units.
UnitPanel(ModelController) - Constructor for class com.timjohnstondev.unitconverter.view.UnitPanel
Constructs a UnitPanel with a ModelController that provides access to the model layer.
updateCalculations(BigDecimal) - Method in class com.timjohnstondev.unitconverter.view.CalculationPanel
Updates the result field if the input field has valid data and a conversion factor is selected.
usesMoles(String) - Method in class com.timjohnstondev.unitconverter.controller.ModelController
Returns true if this Property can do mole to mass and mass to mole unit conversions, else false
usesMoles() - Method in class com.timjohnstondev.unitconverter.model.Property
Returns true if this Property can do mole to mass and mass to mole unit conversions, else false
usesMoles(String) - Method in class com.timjohnstondev.unitconverter.model.PropertyList
Returns true if this Property can do mole to mass and mass to mole unit conversions, else false

A C E F G H I L M P R S T U

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