{"action":"created","comment":{"url":"https://api.github.com/repos/iis-powp-2018/powp_plotter_project/pulls/comments/176177172","pull_request_review_id":105834407,"id":176177172,"diff_hunk":"@@ -0,0 +1,56 @@\n+package edu.iis.powp.adapter;\n+\n+import edu.iis.client.plottermagic.IPlotter;\n+import edu.iis.powp.appext.ApplicationWithDrawer;\n+import edu.kis.powp.drawer.panel.DrawPanelController;\n+import edu.kis.powp.drawer.shape.ILine;\n+import edu.kis.powp.drawer.shape.LineFactory;\n+\n+\n+/**\n+ * Plotter adapter to drawer with several bugs.\n+ */\n+public class LinePlotterAdapter extends DrawPanelController implements IPlotter\n+{\n+    private int startX = 0, startY = 0;\n+    private ILine line = LineFactory.getDottedLine();\n+    private DrawPanelController dpc;\n+\n+    public LinePlotterAdapter() {\n+        super();\n+    }\n+\n+    @Override\n+    public void setPosition(int x, int y) {\n+        this.startX = x;\n+        this.startY = y;\n+    }\n+\n+    @Override\n+    public void drawTo(int x, int y) {\n+        line.setStartCoordinates(this.startX, this.startY);\n+        line.setEndCoordinates(x, y);\n+        this.startX = x;\n+        this.startY = y;\n+\n+        ApplicationWithDrawer.getDrawPanelController().drawLine(line);\n+    }\n+\n+\n+    @Override\n+    public String toString() {\n+        return \"Line Picker Plotter\";\n+    }\n+\n+    public void setSpecialLineType(){\n+        line = LineFactory.getSpecialLine();","path":"src/main/java/edu/iis/powp/adapter/LinePlotterAdapter.java","position":46,"original_position":46,"commit_id":"1c35087d55f7b0137b31b58c7525a6179dab25ad","original_commit_id":"1c35087d55f7b0137b31b58c7525a6179dab25ad","user":{"login":"kowallus","id":6030543,"avatar_url":"https://avatars0.githubusercontent.com/u/6030543?v=4","gravatar_id":"","url":"https://api.github.com/users/kowallus","html_url":"https://github.com/kowallus","followers_url":"https://api.github.com/users/kowallus/followers","following_url":"https://api.github.com/users/kowallus/following{/other_user}","gists_url":"https://api.github.com/users/kowallus/gists{/gist_id}","starred_url":"https://api.github.com/users/kowallus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kowallus/subscriptions","organizations_url":"https://api.github.com/users/kowallus/orgs","repos_url":"https://api.github.com/users/kowallus/repos","events_url":"https://api.github.com/users/kowallus/events{/privacy}","received_events_url":"https://api.github.com/users/kowallus/received_events","type":"User","site_admin":false},"body":"Coupling with LineFactory. Parameter could be used, to pass any ILine.","created_at":"2018-03-21T17:45:20Z","updated_at":"2018-03-21T17:49:08Z","html_url":"https://github.com/iis-powp-2018/powp_plotter_project/pull/28#discussion_r176177172","pull_request_url":"https://api.github.com/repos/iis-powp-2018/powp_plotter_project/pulls/28","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/iis-powp-2018/powp_plotter_project/pulls/comments/176177172"},"html":{"href":"https://github.com/iis-powp-2018/powp_plotter_project/pull/28#discussion_r176177172"},"pull_request":{"href":"https://api.github.com/repos/iis-powp-2018/powp_plotter_project/pulls/28"}}},"pull_request":{"url":"https://api.github.com/repos/iis-powp-2018/powp_plotter_project/pulls/28","id":175400075,"html_url":"https://github.com/iis-powp-2018/powp_plotter_project/pull/28","diff_url":"https://github.com/iis-powp-2018/powp_plotter_project/pull/28.diff","patch_url":"https://github.com/iis-powp-2018/powp_plotter_project/pull/28.patch","issue_url":"https://api.github.com/repos/iis-powp-2018/powp_plotter_project/issues/28","number":28,"state":"open","locked":false,"title":"Artur Sonenberg 195060","user":{"login":"ganymede95","id":33862790,"avatar_url":"https://avatars0.githubusercontent.com/u/33862790?v=4","gravatar_id":"","url":"https://api.github.com/users/ganymede95","html_url":"https://github.com/ganymede95","followers_url":"https://api.github.com/users/ganymede95/followers","following_url":"https://api.github.com/users/ganymede95/following{/other_user}","gists_url":"https://api.github.com/users/ganymede95/gists{/gist_id}","starred_url":"https://api.github.com/users/ganymede95/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ganymede95/subscriptions","organizations_url":"https://api.github.com/users/ganymede95/orgs","repos_url":"https://api.github.com/users/ganymede95/repos","events_url":"https://api.github.com/users/ganymede95/events{/privacy}","received_events_url":"https://api.github.com/users/ganymede95/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-03-15T22:54:47Z","updated_at":"2018-03-21T17:49:08Z","closed_at":null,"merged_at":null,"merge_commit_sha":"38c848ac45addb44992e76eeb4fd8281a2e4828b","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/iis-powp-2018/powp_plotter_project/pulls/28/commits","review_comments_url":"https://api.github.com/repos/iis-powp-2018/powp_plotter_project/pulls/28/comments","review_comment_url":"https://api.github.com/repos/iis-powp-2018/powp_plotter_project/pulls/comments{/number}","comments_url":"https://api.github.com/repos/iis-powp-2018/powp_plotter_project/issues/28/comments","statuses_url":"https://api.github.com/repos/iis-powp-2018/powp_plotter_project/statuses/1c35087d55f7b0137b31b58c7525a6179dab25ad","head":{"label":"ganymede95:master","ref":"master","sha":"1c35087d55f7b0137b31b58c7525a6179dab25ad","user":{"login":"ganymede95","id":33862790,"avatar_url":"https://avatars0.githubusercontent.com/u/33862790?v=4","gravatar_id":"","url":"https://api.github.com/users/ganymede95","html_url":"https://github.com/ganymede95","followers_url":"https://api.github.com/users/ganymede95/followers","following_url":"https://api.github.com/users/ganymede95/following{/other_user}","gists_url":"https://api.github.com/users/ganymede95/gists{/gist_id}","starred_url":"https://api.github.com/users/ganymede95/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ganymede95/subscriptions","organizations_url":"https://api.github.com/users/ganymede95/orgs","repos_url":"https://api.github.com/users/ganymede95/repos","events_url":"https://api.github.com/users/ganymede95/events{/privacy}","received_events_url":"https://api.github.com/users/ganymede95/received_events","type":"User","site_admin":false},"repo":{"id":124394795,"name":"powp_plotter_project","full_name":"ganymede95/powp_plotter_project","owner":{"login":"ganymede95","id":33862790,"avatar_url":"https://avatars0.githubusercontent.com/u/33862790?v=4","gravatar_id":"","url":"https://api.github.com/users/ganymede95","html_url":"https://github.com/ganymede95","followers_url":"https://api.github.com/users/ganymede95/followers","following_url":"https://api.github.com/users/ganymede95/following{/other_user}","gists_url":"https://api.github.com/users/ganymede95/gists{/gist_id}","starred_url":"https://api.github.com/users/ganymede95/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ganymede95/subscriptions","organizations_url":"https://api.github.com/users/ganymede95/orgs","repos_url":"https://api.github.com/users/ganymede95/repos","events_url":"https://api.github.com/users/ganymede95/events{/privacy}","received_events_url":"https://api.github.com/users/ganymede95/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ganymede95/powp_plotter_project","description":null,"fork":true,"url":"https://api.github.com/repos/ganymede95/powp_plotter_project","forks_url":"https://api.github.com/repos/ganymede95/powp_plotter_project/forks","keys_url":"https://api.github.com/repos/ganymede95/powp_plotter_project/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ganymede95/powp_plotter_project/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ganymede95/powp_plotter_project/teams","hooks_url":"https://api.github.com/repos/ganymede95/powp_plotter_project/hooks","issue_events_url":"https://api.github.com/repos/ganymede95/powp_plotter_project/issues/events{/number}","events_url":"https://api.github.com/repos/ganymede95/powp_plotter_project/events","assignees_url":"https://api.github.com/repos/ganymede95/powp_plotter_project/assignees{/user}","branches_url":"https://api.github.com/repos/ganymede95/powp_plotter_project/branches{/branch}","tags_url":"https://api.github.com/repos/ganymede95/powp_plotter_project/tags","blobs_url":"https://api.github.com/repos/ganymede95/powp_plotter_project/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ganymede95/powp_plotter_project/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ganymede95/powp_plotter_project/git/refs{/sha}","trees_url":"https://api.github.com/repos/ganymede95/powp_plotter_project/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ganymede95/powp_plotter_project/statuses/{sha}","languages_url":"https://api.github.com/repos/ganymede95/powp_plotter_project/languages","stargazers_url":"https://api.github.com/repos/ganymede95/powp_plotter_project/stargazers","contributors_url":"https://api.github.com/repos/ganymede95/powp_plotter_project/contributors","subscribers_url":"https://api.github.com/repos/ganymede95/powp_plotter_project/subscribers","subscription_url":"https://api.github.com/repos/ganymede95/powp_plotter_project/subscription","commits_url":"https://api.github.com/repos/ganymede95/powp_plotter_project/commits{/sha}","git_commits_url":"https://api.github.com/repos/ganymede95/powp_plotter_project/git/commits{/sha}","comments_url":"https://api.github.com/repos/ganymede95/powp_plotter_project/comments{/number}","issue_comment_url":"https://api.github.com/repos/ganymede95/powp_plotter_project/issues/comments{/number}","contents_url":"https://api.github.com/repos/ganymede95/powp_plotter_project/contents/{+path}","compare_url":"https://api.github.com/repos/ganymede95/powp_plotter_project/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ganymede95/powp_plotter_project/merges","archive_url":"https://api.github.com/repos/ganymede95/powp_plotter_project/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ganymede95/powp_plotter_project/downloads","issues_url":"https://api.github.com/repos/ganymede95/powp_plotter_project/issues{/number}","pulls_url":"https://api.github.com/repos/ganymede95/powp_plotter_project/pulls{/number}","milestones_url":"https://api.github.com/repos/ganymede95/powp_plotter_project/milestones{/number}","notifications_url":"https://api.github.com/repos/ganymede95/powp_plotter_project/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ganymede95/powp_plotter_project/labels{/name}","releases_url":"https://api.github.com/repos/ganymede95/powp_plotter_project/releases{/id}","deployments_url":"https://api.github.com/repos/ganymede95/powp_plotter_project/deployments","created_at":"2018-03-08T13:22:59Z","updated_at":"2018-03-15T22:50:17Z","pushed_at":"2018-03-15T22:50:16Z","git_url":"git://github.com/ganymede95/powp_plotter_project.git","ssh_url":"git@github.com:ganymede95/powp_plotter_project.git","clone_url":"https://github.com/ganymede95/powp_plotter_project.git","svn_url":"https://github.com/ganymede95/powp_plotter_project","homepage":null,"size":592,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":null,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"iis-powp-2018:master","ref":"master","sha":"0d4a190f1e1ef8bece78cb2fbf56d7afe89c5d80","user":{"login":"iis-powp-2018","id":36953069,"avatar_url":"https://avatars1.githubusercontent.com/u/36953069?v=4","gravatar_id":"","url":"https://api.github.com/users/iis-powp-2018","html_url":"https://github.com/iis-powp-2018","followers_url":"https://api.github.com/users/iis-powp-2018/followers","following_url":"https://api.github.com/users/iis-powp-2018/following{/other_user}","gists_url":"https://api.github.com/users/iis-powp-2018/gists{/gist_id}","starred_url":"https://api.github.com/users/iis-powp-2018/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/iis-powp-2018/subscriptions","organizations_url":"https://api.github.com/users/iis-powp-2018/orgs","repos_url":"https://api.github.com/users/iis-powp-2018/repos","events_url":"https://api.github.com/users/iis-powp-2018/events{/privacy}","received_events_url":"https://api.github.com/users/iis-powp-2018/received_events","type":"Organization","site_admin":false},"repo":{"id":123418307,"name":"powp_plotter_project","full_name":"iis-powp-2018/powp_plotter_project","owner":{"login":"iis-powp-2018","id":36953069,"avatar_url":"https://avatars1.githubusercontent.com/u/36953069?v=4","gravatar_id":"","url":"https://api.github.com/users/iis-powp-2018","html_url":"https://github.com/iis-powp-2018","followers_url":"https://api.github.com/users/iis-powp-2018/followers","following_url":"https://api.github.com/users/iis-powp-2018/following{/other_user}","gists_url":"https://api.github.com/users/iis-powp-2018/gists{/gist_id}","starred_url":"https://api.github.com/users/iis-powp-2018/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/iis-powp-2018/subscriptions","organizations_url":"https://api.github.com/users/iis-powp-2018/orgs","repos_url":"https://api.github.com/users/iis-powp-2018/repos","events_url":"https://api.github.com/users/iis-powp-2018/events{/privacy}","received_events_url":"https://api.github.com/users/iis-powp-2018/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/iis-powp-2018/powp_plotter_project","description":null,"fork":true,"url":"https://api.github.com/repos/iis-powp-2018/powp_plotter_project","forks_url":"https://api.github.com/repos/iis-powp-2018/powp_plotter_project/forks","keys_url":"https://api.github.com/repos/iis-powp-2018/powp_plotter_project/keys{/key_id}","collaborators_url":"https://api.github.com/repos/iis-powp-2018/powp_plotter_project/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/iis-powp-2018/powp_plotter_project/teams","hooks_url":"https://api.github.com/repos/iis-powp-2018/powp_plotter_project/hooks","issue_events_url":"https://api.github.com/repos/iis-powp-2018/powp_plotter_project/issues/events{/number}","events_url":"https://api.github.com/repos/iis-powp-2018/powp_plotter_project/events","assignees_url":"https://api.github.com/repos/iis-powp-2018/powp_plotter_project/assignees{/user}","branches_url":"https://api.github.com/repos/iis-powp-2018/powp_plotter_project/branches{/branch}","tags_url":"https://api.github.com/repos/iis-powp-2018/powp_plotter_project/tags","blobs_url":"https://api.github.com/repos/iis-powp-2018/powp_plotter_project/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/iis-powp-2018/powp_plotter_project/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/iis-powp-2018/powp_plotter_project/git/refs{/sha}","trees_url":"https://api.github.com/repos/iis-powp-2018/powp_plotter_project/git/trees{/sha}","statuses_url":"https://api.github.com/repos/iis-powp-2018/powp_plotter_project/statuses/{sha}","languages_url":"https://api.github.com/repos/iis-powp-2018/powp_plotter_project/languages","stargazers_url":"https://api.github.com/repos/iis-powp-2018/powp_plotter_project/stargazers","contributors_url":"https://api.github.com/repos/iis-powp-2018/powp_plotter_project/contributors","subscribers_url":"https://api.github.com/repos/iis-powp-2018/powp_plotter_project/subscribers","subscription_url":"https://api.github.com/repos/iis-powp-2018/powp_plotter_project/subscription","commits_url":"https://api.github.com/repos/iis-powp-2018/powp_plotter_project/commits{/sha}","git_commits_url":"https://api.github.com/repos/iis-powp-2018/powp_plotter_project/git/commits{/sha}","comments_url":"https://api.github.com/repos/iis-powp-2018/powp_plotter_project/comments{/number}","issue_comment_url":"https://api.github.com/repos/iis-powp-2018/powp_plotter_project/issues/comments{/number}","contents_url":"https://api.github.com/repos/iis-powp-2018/powp_plotter_project/contents/{+path}","compare_url":"https://api.github.com/repos/iis-powp-2018/powp_plotter_project/compare/{base}...{head}","merges_url":"https://api.github.com/repos/iis-powp-2018/powp_plotter_project/merges","archive_url":"https://api.github.com/repos/iis-powp-2018/powp_plotter_project/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/iis-powp-2018/powp_plotter_project/downloads","issues_url":"https://api.github.com/repos/iis-powp-2018/powp_plotter_project/issues{/number}","pulls_url":"https://api.github.com/repos/iis-powp-2018/powp_plotter_project/pulls{/number}","milestones_url":"https://api.github.com/repos/iis-powp-2018/powp_plotter_project/milestones{/number}","notifications_url":"https://api.github.com/repos/iis-powp-2018/powp_plotter_project/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/iis-powp-2018/powp_plotter_project/labels{/name}","releases_url":"https://api.github.com/repos/iis-powp-2018/powp_plotter_project/releases{/id}","deployments_url":"https://api.github.com/repos/iis-powp-2018/powp_plotter_project/deployments","created_at":"2018-03-01T10:14:55Z","updated_at":"2018-03-01T10:14:57Z","pushed_at":"2018-03-21T15:03:30Z","git_url":"git://github.com/iis-powp-2018/powp_plotter_project.git","ssh_url":"git@github.com:iis-powp-2018/powp_plotter_project.git","clone_url":"https://github.com/iis-powp-2018/powp_plotter_project.git","svn_url":"https://github.com/iis-powp-2018/powp_plotter_project","homepage":null,"size":568,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":32,"mirror_url":null,"archived":false,"open_issues_count":5,"license":null,"forks":32,"open_issues":5,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/iis-powp-2018/powp_plotter_project/pulls/28"},"html":{"href":"https://github.com/iis-powp-2018/powp_plotter_project/pull/28"},"issue":{"href":"https://api.github.com/repos/iis-powp-2018/powp_plotter_project/issues/28"},"comments":{"href":"https://api.github.com/repos/iis-powp-2018/powp_plotter_project/issues/28/comments"},"review_comments":{"href":"https://api.github.com/repos/iis-powp-2018/powp_plotter_project/pulls/28/comments"},"review_comment":{"href":"https://api.github.com/repos/iis-powp-2018/powp_plotter_project/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/iis-powp-2018/powp_plotter_project/pulls/28/commits"},"statuses":{"href":"https://api.github.com/repos/iis-powp-2018/powp_plotter_project/statuses/1c35087d55f7b0137b31b58c7525a6179dab25ad"}},"author_association":"NONE"}}
{"actor":{"display_login":"kowallus"}}