Added program scope document.

Signed-off-by: Mike Schoonover <mike@folsomvillage.com>
Merge pull request #2 from FolsomMike/mks

Added program scope document.
Added LEDGroup and LED classes.
In View class, changed the size the size of mainPanel to accomodate the
LEDS.
Also in View class, created an instance of LEDGroup.

Signed-off-by: Hunter Schoonover <hunter@folsomvillage.com>
The LEDGroup class now adjusts its width according to the number of leds,
the width of each led and the gap between each led.
Led width is now passed in through the View class when an instance of
LEDGroup is created.
There are now two groups of leds: current and voltage.

Signed-off-by: Hunter Schoonover <hunter@folsomvillage.com>
LEDGroup class now adjusts the height according to the height of the leds.

Signed-off-by: Hunter Schoonover <hunter@folsomvillage.com>
The number of leds to turn on is now determined according to the input
value.

Functions that set the range and value now exist.

Signed-off-by: Hunter Schoonover <hunter@folsomvillage.com>
The LEDGroup class can now take any input and determine the number of leds
to turn on depending on any set range of input values.

The input, minimum, maximum, and range can now be decimal values.

If the input value is above or below the maximum or minimum value,
respectively, then a catch in the program sets the input equal to
the min or max value. Before doing this, the results from math involving
the input value were unpredictable and unreliable.

The highestLitLedIndex is now always set to -1 if the value is below 0. A
catch in the program does not turn on any leds if the highestLitLedIndex is
set to -1.
In the setAllLedStatesToRepresentInputValue function, all of the leds in
the ledArray are now turned off at the beginning of the function; the
proper number of leds are then turned on. By first turning off all of the
leds, this ensures that no leds are turned on in accordance to the previous
input value and that no leds are turned on if none should be.

Signed-off-by: Hunter Schoonover <hunter@folsomvillage.com>
All leds are set to the off color on creation.
Added simulation code.

Signed-off-by: Hunter Schoonover <hunter@folsomvillage.com>
Made setting the led state more generalized.

The turn on and turn off functions were combined into one function:
setState

Signed-off-by: Hunter Schoonover <hunter@folsomvillage.com>
The notcher controller and notcher UI objects now exist.

The Controller class now has the added code to create notcher controllers
according to the number of notchers (number currently preset).

View has an added function to create a notcherUI and add it to the
mainPanel.

Signed-off-by: Hunter Schoonover <hunter@folsomvillage.com>
The program can now adjust the notcherUIs within the mainPanel according
to the number of notchers, for up to four notchers.

The index number of each notcherController in the array in the main
controller is passed into both the notcherUI and the notcherController.

mainPanel in view no longer has any ledGroups, textfields, buttons, etc.
added to it directly. All of these are added to the notcherUI, which is
then added to the mainPanel in view.

Signed-off-by: Hunter Schoonover <hunter@folsomvillage.com>
The program now has a MFloatSpinner.

The class MFloatSpinner has been added to the view package.
Changes were made to the EventHandler, NotcherController, and NotcherUI
classes to use the MFloatSpinner:
	Event Hander
		now has a stateChanged function
	NotcherController
		now overrides the stateChanged function and specifies what
		to do when it is given a ChangeEvent.
	Controller
		forced to override stateChanged (because it implements
		EventHandler) but does nothing with it

Signed-off-by: Hunter Schoonover <hunter@folsomvillage.com>
There are so many changes, I don't even know what to say.
Must start doing this more often.

Current:
	Basic layout and design is almost complete

Signed-off-by: Hunter Schoonover <hunter@folsomvillage.com>
Some layout changes were made in order to fit everything on the screen.
Current layout is not final.

Signed-off-by: Hunter Schoonover <hunter@folsomvillage.com>
More change in layout. Probably the final layout!

The objects in each Notcher UI panel are centered.
There is now a "Settings" button for each Notcher UI -- currently unusable.

In View class, changed the height of each of the NotcherUI so that they fit
the objects within them snugly.

Signed-off-by: Hunter Schoonover <hunter@folsomvillage.com>
Changes in the headerPanel.

The headerPanel no longer uses a horizontal glue, just spacers.

The settings button is now a gear icon.

Signed-off-by: Hunter Schoonover <hunter@folsomvillage.com>
Slightly changed the layout of the namePanel.

The "Change" button is now below the name label.

Signed-off-by: Hunter Schoonover <hunter@folsomvillage.com>
Changed the width of each NotcherUI to better fit the objects within.

Signed-off-by: Hunter Schoonover <hunter@folsomvillage.com>
The settings button is on its way to functioning.

Created a NotcherSettings class.

In NotcherUIClass, made a few comment changes and made it a windowListener.

Class View had a few comment changes, and I changed the sizes of each
notcherUI to better fit their objects.

Signed-off-by: Hunter Schoonover <hunter@folsomvillage.com>
Just a few minor changes.

In class NotcherUI: the Save button is now an icon.

In class NotcherSettings: removed unneeded functions.

In class View: the mainFrame is no longer resizable and is centered in the
		screen

Signed-off-by: Hunter Schoonover <hunter@folsomvillage.com>