-------------------------------------------------------------------------------

	ONLINE SURVEY SYSTEM - JAVA SWING - ASSIGNMENT 4 - CS701

-------------------------------------------------------------------------------


Group G6:
Kriti Puniyani		04305012	kriti@cse.iitb.ac.in
Dheren Gala		04305011	dheren@cse.iitb.ac.in

-------------------------------------------------------------------------------

REQUIREMENTS:

1. All c
-------------------------------------------------------------------------------

INSTALLATION GUIDE:
1. copy the G6.tgz file.
2. untar it using tar -xzvf G6.tgz
3. cd G6	// change directory
4. configure the db.conf, dataForm.cfg & graphicalForm.cfg files to your required parameters.
5. ant		
6. cd build	//  change to relevant directory 
7. access the "Online Survey System " by running the G6 class file as
	java G6

-------------------------------------------------------------------------------

PROGRAM DESIGN:

The design has  classes:
1. Login manages the login of the user, and the addition of new users. 

2. Install is the class which maintains an interface with the database. It has capabilities to connect to the database and fire various queries.

3. Survey is the class that displays the survey form and stores data in the database

4. CreateSurvey class allows a user logged in as admin to change the fields og the database.

5. Graphics2 class acts as an interface between default and graphical analysis, and creates the graphical analysis frame.

6. BarChart class extends JPanel to allow drawing of Pie chart as part of its paintComponent function

7. BarChartFrame interfaces BarChart and Graphics2

8. PieChart class extends JPanel to allow drawing of Bar chart as part of its paintComponent function

9. PieChartFrame interfaces PieChart and Graphics2

10. ScatterChart class extends JPanel to allow drawing of Scatter chart as part of its paintComponent function

11. ScatterChartFrame interfaces ScatterChart and Graphics2



Modularity is maintained by carefully controlling the interaction between these classes and ensuring that each class maintains its own functionality.



-------------------------------------------------------------------------------

CONFIGURATION PARAMETERS:

1. Bar Chart:

frgnd=red		- define foreground color
interbarsdist=20	- distance between bars in different range groups
intrabarsdist=5		- distance between bars within the same range group (of different subjects)

2. Pie Chart:

bgColor=pink		- background color of the graph
distx=100		- x distance of the piechart from the top left corner
disty=100		- y distance of the piechart from the top left corner

3. Scatter Diagram:

scatterbgColor=cyan	- background color of the scatter diagram
colwidth=30		- distance between the grid rows
rowwidth=30		- distance between the grid columns

4. Data Gathering:

chkBxSize=20 60		- size of comboBoxes in the form
location=300 200	- location of the window as distance from top left corner of the monitor
fontName='Sanserif'	- font name for text in labels
fontStyle=1		- font style for text in labels
fontSize=15		- font size for text in labels

The legal values of each parameter are obvious per se depending on the examples already given.
For example, all colors may take the values predefined by the color object including red, blue, black, orange, magenta, pink, white, gray, darkGray, lightGray, green, yellow etc.
The width & distance parameters are reasonable small sized integers 
All supported font names, styles and sizes are allowed

-------------------------------------------------------------------------------
Known Limitations:

The Bar chart can be displayed only with 1 alignment type  - i.e. all bars vertical. The other type could not be implemented due to time constraints.
