To create this project, I worked with a package called Unfolding Maps, which is a library in Java version 8 for interactive maps and geovisualizations.
And what we're doing in this visualization is
- Depicting each earthquake as either a square or a circle on this map,
- Coloring that square or circle on the map based on attributes like magnitude, like depth and like time.
- How long ago the earthquake happened.
- Encoding every attribute/feature in a key/legend .Styled our own legend as well and what that key tells us.
Interactivity Includes Features Like:
- Event Handlers to respond to graphical user input.
- When user hovers over a city marker, the map shall display a box with the city’s name, country, and population.
- When user hovers over an earthquake marker, the map shall display the title of the earthquake (including its magnitude and region).
- Clicking on a marker gives even more information: A click on a city marker will lead to only that city and earthquakes which affect it being displayed on the map.Clicking once again on that marker will bring the rest of the map’s markers back.
- After clicking on an earthquake marker, only cities potentially affected by that earthquake will be displayed.
Overall Implementation Of:
- Classes And Objects.
- Object-Oriented Programming Principles.
- Generation of visual maps using Java code and the Unfolding Maps libraries.
- Creation and manipulation Graphical User Interfaces (GUIs)
- Used the Processing library in programs.
- Inheritance , Method Overloading , Method Overriding , Polymorphism.
- Abstract Classes And Interfaces In Java.
Project for the "Object Oriented Programming in Java" course by the University of California, San Diego in collaboration with Duke University.