{"action":"created","comment":{"url":"https://api.github.com/repos/ProgrammingLife5/LifeTiles/pulls/comments/32225598","id":32225598,"diff_hunk":"@@ -0,0 +1,123 @@\n+package nl.tudelft.lifetiles.graph.controller;\n+\n+import javafx.beans.property.IntegerProperty;\n+import javafx.beans.property.SimpleIntegerProperty;\n+import javafx.beans.value.ChangeListener;\n+import javafx.geometry.Orientation;\n+import javafx.scene.control.Button;\n+import javafx.scene.control.Slider;\n+import javafx.scene.control.ToolBar;\n+\n+/**\n+ * Creates a new Toolbar with two buttons and a slider.\n+ * These can be used to zoom.\n+ *\n+ * @author AC Langerak\n+ *\n+ */\n+public class ZoomToolbar {\n+\n+    /**\n+     * The javafx toolbar.\n+     */\n+    private final ToolBar toolbar;\n+\n+    /**\n+     * Integer which holds the current selected zoomlevel.\n+     * Can be listened to.\n+     */\n+    private final IntegerProperty zoomLevel;\n+\n+    /**\n+     * The maximal amount of zooming.\n+     */\n+    private final int maxzoom;\n+\n+    /**\n+     * Create a new Toolbar.\n+     *\n+     * @param zoom\n+     *            the maximal value of the zoom\n+     */\n+    public ZoomToolbar(final int zoom) {","path":"lifetiles-graph/src/main/java/nl/tudelft/lifetiles/graph/controller/ZoomToolbar.java","position":42,"original_position":42,"commit_id":"c9f3d00d16b73f56979676aceabea9a0e8c7fc36","original_commit_id":"c9f3d00d16b73f56979676aceabea9a0e8c7fc36","user":{"login":"alangerak","id":5990893,"avatar_url":"https://avatars.githubusercontent.com/u/5990893?v=3","gravatar_id":"","url":"https://api.github.com/users/alangerak","html_url":"https://github.com/alangerak","followers_url":"https://api.github.com/users/alangerak/followers","following_url":"https://api.github.com/users/alangerak/following{/other_user}","gists_url":"https://api.github.com/users/alangerak/gists{/gist_id}","starred_url":"https://api.github.com/users/alangerak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alangerak/subscriptions","organizations_url":"https://api.github.com/users/alangerak/orgs","repos_url":"https://api.github.com/users/alangerak/repos","events_url":"https://api.github.com/users/alangerak/events{/privacy}","received_events_url":"https://api.github.com/users/alangerak/received_events","type":"User","site_admin":false},"body":"This class is not an extension of the ToolBar class but rather an implementation of it with added buttons and a custom slider. It does not add new functionalities to ToolBar.","created_at":"2015-06-11T14:25:27Z","updated_at":"2015-06-11T14:25:27Z","html_url":"https://github.com/ProgrammingLife5/LifeTiles/pull/198#discussion_r32225598","pull_request_url":"https://api.github.com/repos/ProgrammingLife5/LifeTiles/pulls/198","_links":{"self":{"href":"https://api.github.com/repos/ProgrammingLife5/LifeTiles/pulls/comments/32225598"},"html":{"href":"https://github.com/ProgrammingLife5/LifeTiles/pull/198#discussion_r32225598"},"pull_request":{"href":"https://api.github.com/repos/ProgrammingLife5/LifeTiles/pulls/198"}}},"pull_request":{"url":"https://api.github.com/repos/ProgrammingLife5/LifeTiles/pulls/198","id":37462780,"html_url":"https://github.com/ProgrammingLife5/LifeTiles/pull/198","diff_url":"https://github.com/ProgrammingLife5/LifeTiles/pull/198.diff","patch_url":"https://github.com/ProgrammingLife5/LifeTiles/pull/198.patch","issue_url":"https://api.github.com/repos/ProgrammingLife5/LifeTiles/issues/198","number":198,"state":"open","locked":false,"title":"Zoom Toolbar","user":{"login":"alangerak","id":5990893,"avatar_url":"https://avatars.githubusercontent.com/u/5990893?v=3","gravatar_id":"","url":"https://api.github.com/users/alangerak","html_url":"https://github.com/alangerak","followers_url":"https://api.github.com/users/alangerak/followers","following_url":"https://api.github.com/users/alangerak/following{/other_user}","gists_url":"https://api.github.com/users/alangerak/gists{/gist_id}","starred_url":"https://api.github.com/users/alangerak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alangerak/subscriptions","organizations_url":"https://api.github.com/users/alangerak/orgs","repos_url":"https://api.github.com/users/alangerak/repos","events_url":"https://api.github.com/users/alangerak/events{/privacy}","received_events_url":"https://api.github.com/users/alangerak/received_events","type":"User","site_admin":false},"body":"Added a toolbar with 2 buttons and a slider. Those can be used to zoom in/out on the graph.","created_at":"2015-06-11T13:26:21Z","updated_at":"2015-06-11T14:25:27Z","closed_at":null,"merged_at":null,"merge_commit_sha":"f20382759f23cbb90ed2adbf539ba3f922f82934","assignee":null,"milestone":{"url":"https://api.github.com/repos/ProgrammingLife5/LifeTiles/milestones/7","html_url":"https://github.com/ProgrammingLife5/LifeTiles/milestones/Sprint%207","labels_url":"https://api.github.com/repos/ProgrammingLife5/LifeTiles/milestones/7/labels","id":1149081,"number":7,"title":"Sprint 7","description":"","creator":{"login":"jorenham","id":6208662,"avatar_url":"https://avatars.githubusercontent.com/u/6208662?v=3","gravatar_id":"","url":"https://api.github.com/users/jorenham","html_url":"https://github.com/jorenham","followers_url":"https://api.github.com/users/jorenham/followers","following_url":"https://api.github.com/users/jorenham/following{/other_user}","gists_url":"https://api.github.com/users/jorenham/gists{/gist_id}","starred_url":"https://api.github.com/users/jorenham/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jorenham/subscriptions","organizations_url":"https://api.github.com/users/jorenham/orgs","repos_url":"https://api.github.com/users/jorenham/repos","events_url":"https://api.github.com/users/jorenham/events{/privacy}","received_events_url":"https://api.github.com/users/jorenham/received_events","type":"User","site_admin":false},"open_issues":8,"closed_issues":9,"state":"open","created_at":"2015-06-04T08:34:07Z","updated_at":"2015-06-11T13:51:23Z","due_on":"2015-06-13T22:00:00Z","closed_at":null},"commits_url":"https://api.github.com/repos/ProgrammingLife5/LifeTiles/pulls/198/commits","review_comments_url":"https://api.github.com/repos/ProgrammingLife5/LifeTiles/pulls/198/comments","review_comment_url":"https://api.github.com/repos/ProgrammingLife5/LifeTiles/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ProgrammingLife5/LifeTiles/issues/198/comments","statuses_url":"https://api.github.com/repos/ProgrammingLife5/LifeTiles/statuses/c9f3d00d16b73f56979676aceabea9a0e8c7fc36","head":{"label":"alangerak:graphZooming","ref":"graphZooming","sha":"c9f3d00d16b73f56979676aceabea9a0e8c7fc36","user":{"login":"alangerak","id":5990893,"avatar_url":"https://avatars.githubusercontent.com/u/5990893?v=3","gravatar_id":"","url":"https://api.github.com/users/alangerak","html_url":"https://github.com/alangerak","followers_url":"https://api.github.com/users/alangerak/followers","following_url":"https://api.github.com/users/alangerak/following{/other_user}","gists_url":"https://api.github.com/users/alangerak/gists{/gist_id}","starred_url":"https://api.github.com/users/alangerak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alangerak/subscriptions","organizations_url":"https://api.github.com/users/alangerak/orgs","repos_url":"https://api.github.com/users/alangerak/repos","events_url":"https://api.github.com/users/alangerak/events{/privacy}","received_events_url":"https://api.github.com/users/alangerak/received_events","type":"User","site_admin":false},"repo":{"id":34719481,"name":"LifeTiles","full_name":"alangerak/LifeTiles","owner":{"login":"alangerak","id":5990893,"avatar_url":"https://avatars.githubusercontent.com/u/5990893?v=3","gravatar_id":"","url":"https://api.github.com/users/alangerak","html_url":"https://github.com/alangerak","followers_url":"https://api.github.com/users/alangerak/followers","following_url":"https://api.github.com/users/alangerak/following{/other_user}","gists_url":"https://api.github.com/users/alangerak/gists{/gist_id}","starred_url":"https://api.github.com/users/alangerak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alangerak/subscriptions","organizations_url":"https://api.github.com/users/alangerak/orgs","repos_url":"https://api.github.com/users/alangerak/repos","events_url":"https://api.github.com/users/alangerak/events{/privacy}","received_events_url":"https://api.github.com/users/alangerak/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/alangerak/LifeTiles","description":"Visualization and comparison of DNA strains. ","fork":true,"url":"https://api.github.com/repos/alangerak/LifeTiles","forks_url":"https://api.github.com/repos/alangerak/LifeTiles/forks","keys_url":"https://api.github.com/repos/alangerak/LifeTiles/keys{/key_id}","collaborators_url":"https://api.github.com/repos/alangerak/LifeTiles/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/alangerak/LifeTiles/teams","hooks_url":"https://api.github.com/repos/alangerak/LifeTiles/hooks","issue_events_url":"https://api.github.com/repos/alangerak/LifeTiles/issues/events{/number}","events_url":"https://api.github.com/repos/alangerak/LifeTiles/events","assignees_url":"https://api.github.com/repos/alangerak/LifeTiles/assignees{/user}","branches_url":"https://api.github.com/repos/alangerak/LifeTiles/branches{/branch}","tags_url":"https://api.github.com/repos/alangerak/LifeTiles/tags","blobs_url":"https://api.github.com/repos/alangerak/LifeTiles/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/alangerak/LifeTiles/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/alangerak/LifeTiles/git/refs{/sha}","trees_url":"https://api.github.com/repos/alangerak/LifeTiles/git/trees{/sha}","statuses_url":"https://api.github.com/repos/alangerak/LifeTiles/statuses/{sha}","languages_url":"https://api.github.com/repos/alangerak/LifeTiles/languages","stargazers_url":"https://api.github.com/repos/alangerak/LifeTiles/stargazers","contributors_url":"https://api.github.com/repos/alangerak/LifeTiles/contributors","subscribers_url":"https://api.github.com/repos/alangerak/LifeTiles/subscribers","subscription_url":"https://api.github.com/repos/alangerak/LifeTiles/subscription","commits_url":"https://api.github.com/repos/alangerak/LifeTiles/commits{/sha}","git_commits_url":"https://api.github.com/repos/alangerak/LifeTiles/git/commits{/sha}","comments_url":"https://api.github.com/repos/alangerak/LifeTiles/comments{/number}","issue_comment_url":"https://api.github.com/repos/alangerak/LifeTiles/issues/comments{/number}","contents_url":"https://api.github.com/repos/alangerak/LifeTiles/contents/{+path}","compare_url":"https://api.github.com/repos/alangerak/LifeTiles/compare/{base}...{head}","merges_url":"https://api.github.com/repos/alangerak/LifeTiles/merges","archive_url":"https://api.github.com/repos/alangerak/LifeTiles/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/alangerak/LifeTiles/downloads","issues_url":"https://api.github.com/repos/alangerak/LifeTiles/issues{/number}","pulls_url":"https://api.github.com/repos/alangerak/LifeTiles/pulls{/number}","milestones_url":"https://api.github.com/repos/alangerak/LifeTiles/milestones{/number}","notifications_url":"https://api.github.com/repos/alangerak/LifeTiles/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/alangerak/LifeTiles/labels{/name}","releases_url":"https://api.github.com/repos/alangerak/LifeTiles/releases{/id}","created_at":"2015-04-28T08:51:27Z","updated_at":"2015-05-05T09:30:04Z","pushed_at":"2015-06-11T13:24:32Z","git_url":"git://github.com/alangerak/LifeTiles.git","ssh_url":"git@github.com:alangerak/LifeTiles.git","clone_url":"https://github.com/alangerak/LifeTiles.git","svn_url":"https://github.com/alangerak/LifeTiles","homepage":"","size":20677,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"ProgrammingLife5:dev","ref":"dev","sha":"7b2867c99ea828c15ed85f8336a2c4e0337e8d6a","user":{"login":"ProgrammingLife5","id":12098162,"avatar_url":"https://avatars.githubusercontent.com/u/12098162?v=3","gravatar_id":"","url":"https://api.github.com/users/ProgrammingLife5","html_url":"https://github.com/ProgrammingLife5","followers_url":"https://api.github.com/users/ProgrammingLife5/followers","following_url":"https://api.github.com/users/ProgrammingLife5/following{/other_user}","gists_url":"https://api.github.com/users/ProgrammingLife5/gists{/gist_id}","starred_url":"https://api.github.com/users/ProgrammingLife5/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ProgrammingLife5/subscriptions","organizations_url":"https://api.github.com/users/ProgrammingLife5/orgs","repos_url":"https://api.github.com/users/ProgrammingLife5/repos","events_url":"https://api.github.com/users/ProgrammingLife5/events{/privacy}","received_events_url":"https://api.github.com/users/ProgrammingLife5/received_events","type":"Organization","site_admin":false},"repo":{"id":34513744,"name":"LifeTiles","full_name":"ProgrammingLife5/LifeTiles","owner":{"login":"ProgrammingLife5","id":12098162,"avatar_url":"https://avatars.githubusercontent.com/u/12098162?v=3","gravatar_id":"","url":"https://api.github.com/users/ProgrammingLife5","html_url":"https://github.com/ProgrammingLife5","followers_url":"https://api.github.com/users/ProgrammingLife5/followers","following_url":"https://api.github.com/users/ProgrammingLife5/following{/other_user}","gists_url":"https://api.github.com/users/ProgrammingLife5/gists{/gist_id}","starred_url":"https://api.github.com/users/ProgrammingLife5/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ProgrammingLife5/subscriptions","organizations_url":"https://api.github.com/users/ProgrammingLife5/orgs","repos_url":"https://api.github.com/users/ProgrammingLife5/repos","events_url":"https://api.github.com/users/ProgrammingLife5/events{/privacy}","received_events_url":"https://api.github.com/users/ProgrammingLife5/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/ProgrammingLife5/LifeTiles","description":"Visualization and comparison of DNA strains. ","fork":false,"url":"https://api.github.com/repos/ProgrammingLife5/LifeTiles","forks_url":"https://api.github.com/repos/ProgrammingLife5/LifeTiles/forks","keys_url":"https://api.github.com/repos/ProgrammingLife5/LifeTiles/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ProgrammingLife5/LifeTiles/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ProgrammingLife5/LifeTiles/teams","hooks_url":"https://api.github.com/repos/ProgrammingLife5/LifeTiles/hooks","issue_events_url":"https://api.github.com/repos/ProgrammingLife5/LifeTiles/issues/events{/number}","events_url":"https://api.github.com/repos/ProgrammingLife5/LifeTiles/events","assignees_url":"https://api.github.com/repos/ProgrammingLife5/LifeTiles/assignees{/user}","branches_url":"https://api.github.com/repos/ProgrammingLife5/LifeTiles/branches{/branch}","tags_url":"https://api.github.com/repos/ProgrammingLife5/LifeTiles/tags","blobs_url":"https://api.github.com/repos/ProgrammingLife5/LifeTiles/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ProgrammingLife5/LifeTiles/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ProgrammingLife5/LifeTiles/git/refs{/sha}","trees_url":"https://api.github.com/repos/ProgrammingLife5/LifeTiles/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ProgrammingLife5/LifeTiles/statuses/{sha}","languages_url":"https://api.github.com/repos/ProgrammingLife5/LifeTiles/languages","stargazers_url":"https://api.github.com/repos/ProgrammingLife5/LifeTiles/stargazers","contributors_url":"https://api.github.com/repos/ProgrammingLife5/LifeTiles/contributors","subscribers_url":"https://api.github.com/repos/ProgrammingLife5/LifeTiles/subscribers","subscription_url":"https://api.github.com/repos/ProgrammingLife5/LifeTiles/subscription","commits_url":"https://api.github.com/repos/ProgrammingLife5/LifeTiles/commits{/sha}","git_commits_url":"https://api.github.com/repos/ProgrammingLife5/LifeTiles/git/commits{/sha}","comments_url":"https://api.github.com/repos/ProgrammingLife5/LifeTiles/comments{/number}","issue_comment_url":"https://api.github.com/repos/ProgrammingLife5/LifeTiles/issues/comments{/number}","contents_url":"https://api.github.com/repos/ProgrammingLife5/LifeTiles/contents/{+path}","compare_url":"https://api.github.com/repos/ProgrammingLife5/LifeTiles/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ProgrammingLife5/LifeTiles/merges","archive_url":"https://api.github.com/repos/ProgrammingLife5/LifeTiles/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ProgrammingLife5/LifeTiles/downloads","issues_url":"https://api.github.com/repos/ProgrammingLife5/LifeTiles/issues{/number}","pulls_url":"https://api.github.com/repos/ProgrammingLife5/LifeTiles/pulls{/number}","milestones_url":"https://api.github.com/repos/ProgrammingLife5/LifeTiles/milestones{/number}","notifications_url":"https://api.github.com/repos/ProgrammingLife5/LifeTiles/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ProgrammingLife5/LifeTiles/labels{/name}","releases_url":"https://api.github.com/repos/ProgrammingLife5/LifeTiles/releases{/id}","created_at":"2015-04-24T10:56:58Z","updated_at":"2015-06-03T09:38:23Z","pushed_at":"2015-06-11T13:26:22Z","git_url":"git://github.com/ProgrammingLife5/LifeTiles.git","ssh_url":"git@github.com:ProgrammingLife5/LifeTiles.git","clone_url":"https://github.com/ProgrammingLife5/LifeTiles.git","svn_url":"https://github.com/ProgrammingLife5/LifeTiles","homepage":"","size":22739,"stargazers_count":3,"watchers_count":3,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":5,"mirror_url":null,"open_issues_count":37,"forks":5,"open_issues":37,"watchers":3,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/ProgrammingLife5/LifeTiles/pulls/198"},"html":{"href":"https://github.com/ProgrammingLife5/LifeTiles/pull/198"},"issue":{"href":"https://api.github.com/repos/ProgrammingLife5/LifeTiles/issues/198"},"comments":{"href":"https://api.github.com/repos/ProgrammingLife5/LifeTiles/issues/198/comments"},"review_comments":{"href":"https://api.github.com/repos/ProgrammingLife5/LifeTiles/pulls/198/comments"},"review_comment":{"href":"https://api.github.com/repos/ProgrammingLife5/LifeTiles/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ProgrammingLife5/LifeTiles/pulls/198/commits"},"statuses":{"href":"https://api.github.com/repos/ProgrammingLife5/LifeTiles/statuses/c9f3d00d16b73f56979676aceabea9a0e8c7fc36"}}}}