{"action":"created","issue":{"url":"https://api.github.com/repos/NASAWorldWind/WorldWindJava/issues/75","repository_url":"https://api.github.com/repos/NASAWorldWind/WorldWindJava","labels_url":"https://api.github.com/repos/NASAWorldWind/WorldWindJava/issues/75/labels{/name}","comments_url":"https://api.github.com/repos/NASAWorldWind/WorldWindJava/issues/75/comments","events_url":"https://api.github.com/repos/NASAWorldWind/WorldWindJava/issues/75/events","html_url":"https://github.com/NASAWorldWind/WorldWindJava/pull/75","id":195069780,"number":75,"title":"ScreenSelector enhancements","user":{"login":"wcmatthysen","id":121888,"avatar_url":"https://avatars.githubusercontent.com/u/121888?v=3","gravatar_id":"","url":"https://api.github.com/users/wcmatthysen","html_url":"https://github.com/wcmatthysen","followers_url":"https://api.github.com/users/wcmatthysen/followers","following_url":"https://api.github.com/users/wcmatthysen/following{/other_user}","gists_url":"https://api.github.com/users/wcmatthysen/gists{/gist_id}","starred_url":"https://api.github.com/users/wcmatthysen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wcmatthysen/subscriptions","organizations_url":"https://api.github.com/users/wcmatthysen/orgs","repos_url":"https://api.github.com/users/wcmatthysen/repos","events_url":"https://api.github.com/users/wcmatthysen/events{/privacy}","received_events_url":"https://api.github.com/users/wcmatthysen/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-12-12T19:56:17Z","updated_at":"2016-12-13T21:48:47Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/NASAWorldWind/WorldWindJava/pulls/75","html_url":"https://github.com/NASAWorldWind/WorldWindJava/pull/75","diff_url":"https://github.com/NASAWorldWind/WorldWindJava/pull/75.diff","patch_url":"https://github.com/NASAWorldWind/WorldWindJava/pull/75.patch"},"body":"I made some modifications to the screen-selection classes:\r\n\r\n- The SelectionHighlightController is a very useful companion class for ScreenSelector and is currently hidden as a protected class inside the ScreenSelection example. I moved it out to a class of its own and made it a public class.\r\n- I then modified the ScreenSelector class by introducing two new toggles, called autoEnable and autoDisable. I also added an \"enabled\" flag to simplify the input-handler registration / deregistration that occurred in the enable and disable methods. With the autoEnable and autoDisable flags set to true you can Control / Shift click and drag the mouse to select objects on the globe using the ScreenSelector. This is a bit more convenient than manually arming the ScreenSelector.\r\n\r\nYou can test the ScreenSelection functionality by calling:\r\n\r\n`this.screenSelector.setAutoEnable(true);`\r\n`this.screenSelector.setAutoDisable(true);`\r\n\r\nin the ScreenSelection example. "},"comment":{"url":"https://api.github.com/repos/NASAWorldWind/WorldWindJava/issues/comments/266872578","html_url":"https://github.com/NASAWorldWind/WorldWindJava/pull/75#issuecomment-266872578","issue_url":"https://api.github.com/repos/NASAWorldWind/WorldWindJava/issues/75","id":266872578,"user":{"login":"wcmatthysen","id":121888,"avatar_url":"https://avatars.githubusercontent.com/u/121888?v=3","gravatar_id":"","url":"https://api.github.com/users/wcmatthysen","html_url":"https://github.com/wcmatthysen","followers_url":"https://api.github.com/users/wcmatthysen/followers","following_url":"https://api.github.com/users/wcmatthysen/following{/other_user}","gists_url":"https://api.github.com/users/wcmatthysen/gists{/gist_id}","starred_url":"https://api.github.com/users/wcmatthysen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wcmatthysen/subscriptions","organizations_url":"https://api.github.com/users/wcmatthysen/orgs","repos_url":"https://api.github.com/users/wcmatthysen/repos","events_url":"https://api.github.com/users/wcmatthysen/events{/privacy}","received_events_url":"https://api.github.com/users/wcmatthysen/received_events","type":"User","site_admin":false},"created_at":"2016-12-13T21:48:47Z","updated_at":"2016-12-13T21:48:47Z","body":"Oh, another thing: the default behavior of ScreenSelector stays the same for clients that are used to the manual arming / disarming. You get the new auto arm /  disarm behavior only if you set the two flags (autoEnable and autoDisable) to true."}}
{"actor":{"display_login":"wcmatthysen"}}