Persons_Comparator.git
5 years agoMake the main window a singleton to permit to query it from other views and update...
Jérôme Benoit [Wed, 16 Jan 2019 19:13:36 +0000 (20:13 +0100)] 
Make the main window a singleton to permit to query it from other views and update it if needed on GUI events.

Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
5 years agoSplit the person panel into two sub panels : one for the current person, one for...
Jérôme Benoit [Wed, 16 Jan 2019 15:39:05 +0000 (16:39 +0100)] 
Split the person panel into two sub panels : one for the current person, one for the closest person found.

Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
5 years agoAdd a cell renderer on the eye color JList view component that display the color...
Jérôme Benoit [Wed, 16 Jan 2019 13:38:48 +0000 (14:38 +0100)] 
Add a cell renderer on the eye color JList view component that display the color eye as a background cell color.

Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
5 years agoAdd CSV countries file and remove the JSON ones.
Jérôme Benoit [Wed, 16 Jan 2019 12:39:10 +0000 (13:39 +0100)] 
Add CSV countries file and remove the JSON ones.

Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
5 years agoAdd a CSVUtils class for future usage.
Jérôme Benoit [Wed, 16 Jan 2019 12:33:30 +0000 (13:33 +0100)] 
Add a CSVUtils class for future usage.

Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
5 years agoReorganize the PersonView :
Jérôme Benoit [Wed, 16 Jan 2019 12:13:42 +0000 (13:13 +0100)] 
Reorganize the PersonView :

* Use BorderLayout for the PersonView;
* Add four panels to the PersonView : north, south, east, west;
* Add PersonPanel class for the center in the layout and use it in the PersonView.

Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
5 years agoImplement the person comparator :
Jérôme Benoit [Tue, 15 Jan 2019 11:24:06 +0000 (12:24 +0100)] 
Implement the person comparator :

* Add a distance attribute in the Person class;
* Add helper function to compute the distance from a reference person;
* Display the person (text only for now) in the GUI.

Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
5 years agoStart the implementation of inputs gathering and the comparator code (still buggy...
Jérôme Benoit [Mon, 14 Jan 2019 15:01:06 +0000 (16:01 +0100)] 
Start the implementation of inputs gathering and the comparator code (still buggy, need work).

Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
5 years agoadd person in Main and data
Sylvain Papa [Mon, 14 Jan 2019 11:12:27 +0000 (12:12 +0100)] 
add person in Main and data

5 years agoDefine the Region object type.
Jérôme Benoit [Mon, 14 Jan 2019 11:06:12 +0000 (12:06 +0100)] 
Define the Region object type.

Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
5 years agoAdd country envelope class.
Jérôme Benoit [Mon, 14 Jan 2019 10:45:44 +0000 (11:45 +0100)] 
Add country envelope class.

Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
5 years agoRemove duplicate region data files and indent in a human readable fashion some files.
Jérôme Benoit [Mon, 14 Jan 2019 10:16:58 +0000 (11:16 +0100)] 
Remove duplicate region data files and indent in a human readable fashion some files.

Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
5 years agoadd data continent
Sylvain Papa [Mon, 14 Jan 2019 09:02:52 +0000 (10:02 +0100)] 
add data continent

5 years agoAdd listener to specific events like country selection.
Jérôme Benoit [Sat, 12 Jan 2019 13:15:43 +0000 (14:15 +0100)] 
Add listener to specific events like country selection.

Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
5 years agoBut all person displaying related information into the View and add a panel for the...
Jérôme Benoit [Sat, 12 Jan 2019 12:46:45 +0000 (13:46 +0100)] 
But all person displaying related information into the View and add a panel for the closest person found.

Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
5 years agoDo not create a new instance recursively for nothing to display the list of valid...
Jérôme Benoit [Sat, 12 Jan 2019 11:22:23 +0000 (12:22 +0100)] 
Do not create a new instance recursively for nothing to display the list of valid colors name.

Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
5 years agoCode cleanup.
Jérôme Benoit [Sat, 12 Jan 2019 09:31:49 +0000 (10:31 +0100)] 
Code cleanup.

Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
5 years agoRemove a warning.
Jérôme Benoit [Fri, 11 Jan 2019 20:04:50 +0000 (21:04 +0100)] 
Remove a warning.

Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
5 years agoAdd some basic data for the Origin class and implement the associated view to allow...
Jérôme Benoit [Fri, 11 Jan 2019 19:54:23 +0000 (20:54 +0100)] 
Add some basic data for the Origin class and implement the associated view to allow future complete inputs treatment testing.

Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
5 years agoFinish the WeightView by using a JComboBox.
Jérôme Benoit [Fri, 11 Jan 2019 17:29:53 +0000 (18:29 +0100)] 
Finish the WeightView by using a JComboBox.

Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
5 years agoFinish the SizeView by using a JSpinner.
Jérôme Benoit [Fri, 11 Jan 2019 16:23:34 +0000 (17:23 +0100)] 
Finish the SizeView by using a JSpinner.

Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
5 years agoAdd cut/copy/paste to the main windows menu.
Jérôme Benoit [Fri, 11 Jan 2019 15:52:20 +0000 (16:52 +0100)] 
Add cut/copy/paste to the main windows menu.

Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
5 years agoGo back to JList on the EyeView, JComboBox will be used somewhere else.
Jérôme Benoit [Fri, 11 Jan 2019 15:33:34 +0000 (16:33 +0100)] 
Go back to JList on the EyeView, JComboBox will be used somewhere else.

Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
5 years agoPut each view inside its own panel and add each panel to the main panel.
Jérôme Benoit [Fri, 11 Jan 2019 15:12:36 +0000 (16:12 +0100)] 
Put each view inside its own panel and add each panel to the main panel.

Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
5 years agoChange the EyeView for a JComboList, store the color string inside the Eye class...
Jérôme Benoit [Fri, 11 Jan 2019 14:54:20 +0000 (15:54 +0100)] 
Change the EyeView for a JComboList, store the color string inside the Eye class and choose the color string in the view.

Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
5 years agoFix .compareTo() calculation in Size and Weight classes.
Jérôme Benoit [Fri, 11 Jan 2019 14:13:59 +0000 (15:13 +0100)] 
Fix .compareTo() calculation in Size and Weight classes.

Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
5 years agoAdd an ArrayList of persons to the Person class.
Jérôme Benoit [Fri, 11 Jan 2019 13:42:30 +0000 (14:42 +0100)] 
Add an ArrayList of persons to the Person class.
Fix all Person constructor and attributes constructors.

Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
5 years agoMerge branch 'master' of git.piment-noir.org:Persons_Comparator
Jérôme Benoit [Thu, 10 Jan 2019 10:47:25 +0000 (11:47 +0100)] 
Merge branch 'master' of git.piment-noir.org:Persons_Comparator

5 years agoA lib directory to the project with gson library.
Jérôme Benoit [Thu, 10 Jan 2019 10:47:16 +0000 (11:47 +0100)] 
A lib directory to the project with gson library.

Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
5 years agoadd class Region and RegionView
Sylvain Papa [Thu, 10 Jan 2019 10:38:55 +0000 (11:38 +0100)] 
add class Region and RegionView

5 years agoAdd a menu to the main windows.
Jérôme Benoit [Thu, 10 Jan 2019 09:14:16 +0000 (10:14 +0100)] 
Add a menu to the main windows.

Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
5 years agoTune a bit the Idea configuration for the project.
Jérôme Benoit [Wed, 9 Jan 2019 19:58:29 +0000 (20:58 +0100)] 
Tune a bit the Idea configuration for the project.

Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
5 years agoAdd a label to all views.
Jérôme Benoit [Wed, 9 Jan 2019 15:29:22 +0000 (16:29 +0100)] 
Add a label to all views.

Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
5 years agoProperly add all view JComponents to the JPanel in the main JFrame.
Jérôme Benoit [Wed, 9 Jan 2019 14:38:41 +0000 (15:38 +0100)] 
Properly add all view JComponents to the JPanel in the main JFrame.

And implement one view properly.

Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
5 years agoAdd a MainWindowsView class and use it in the main().
Jérôme Benoit [Wed, 9 Jan 2019 11:28:37 +0000 (12:28 +0100)] 
Add a MainWindowsView class and use it in the main().

Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
5 years ago* Add Levenshtein distance to Firstname class Comparable.
Jérôme Benoit [Wed, 9 Jan 2019 11:10:09 +0000 (12:10 +0100)] 
* Add Levenshtein distance to Firstname class Comparable.
* Fix PersonView setter and contructor.
* Add some javadoc.

Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
5 years agoStructure the code to respect MVC design pattern.
Jérôme Benoit [Wed, 9 Jan 2019 09:29:21 +0000 (10:29 +0100)] 
Structure the code to respect MVC design pattern.

Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
5 years agoImplement eye color compareTo() method.
Jérôme Benoit [Tue, 8 Jan 2019 15:10:22 +0000 (16:10 +0100)] 
Implement eye color compareTo() method.

Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
5 years agoImplement some compareTo() methods.
Jérôme Benoit [Tue, 8 Jan 2019 14:30:47 +0000 (15:30 +0100)] 
Implement some compareTo() methods.

Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
5 years agoMake Person class and attributes implements Comparable.
Jérôme Benoit [Tue, 8 Jan 2019 14:14:55 +0000 (15:14 +0100)] 
Make Person class and attributes implements Comparable.

Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
5 years agoThrow an error for illegal arguments.
Jérôme Benoit [Tue, 8 Jan 2019 13:42:35 +0000 (14:42 +0100)] 
Throw an error for illegal arguments.

Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
5 years agoBasic classes structure that deal with Person attributes.
Jérôme Benoit [Tue, 8 Jan 2019 12:21:01 +0000 (13:21 +0100)] 
Basic classes structure that deal with Person attributes.

5 years agoRefine .gitignore for Eclipse.
Jérôme Benoit [Mon, 7 Jan 2019 15:08:21 +0000 (16:08 +0100)] 
Refine .gitignore for Eclipse.

5 years agoInitial git repository creation with Hello World in Swing.
Jérôme Benoit [Mon, 7 Jan 2019 14:20:13 +0000 (15:20 +0100)] 
Initial git repository creation with Hello World in Swing.