GithubHelp home page GithubHelp logo

adityamohan29 / unfolding-maps Goto Github PK

View Code? Open in Web Editor NEW
1.0 0.0 0.0 20 KB

Final assignment of the Coursera course of Object Oriented Programming in Java by the University of California, San Diego

Java 100.00%

unfolding-maps's Introduction

Unfolding-Maps

Final assignment of the Coursera course of Object Oriented Programming in Java by the University of California, San Diego. The course progresses with a hands on exprience of developing an interactive map using the Unfolding Maps and Processing libraries. The map contained markers pertaining to a few earthquakes along with some of its features like magnitude and threat circle to name a few. It helped us in developing multiple functionalities and GUIs like responding to mouse click and hovers and making a key for representing the symbols used.

I've added only the classes which were relevant to my final extension.

My extended functionality:-

When the earthquake button is clicked, it shows a relative threat circle perimeter. Since, the threat circle is obtained in kilometers, I have taken a relative measure which is shown on the screen. On the output screen, an earthquake which occurred elsewhere with a similar magnitude to the one which is clicked on is displayed.

The way I did it was:-

  1. I changed the Threat Circle variable to a static variable which enabled me to use the variable in a different class. This led me to draw an ellipse whenever the mouse position is clicked within the boundaries of the earthquake markers. The size of the ellipse was the relative size of the threat circle.
  2. The quakes list which was sorted in the sortAndPrint function was used to identify the quakes which have occurred with the same magnitude by simply comparing the magnitude of the selected quakes with the neighboring ones in the list.

unfolding-maps's People

Contributors

adityamohan29 avatar

Stargazers

Roman avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.