| 225 | | try { |
| 226 | | if((attrImageBounds != null && attrImageBounds.contains(p)) |
| 227 | | || (attrTextBounds != null && attrTextBounds.contains(p))) { |
| 228 | | if(click) |
| 229 | | Desktop.getDesktop().browse(new URI(ts.getAttributionLinkURL())); |
| 230 | | /*else |
| 231 | | Main.warn(ts.getAttributionLinkURL());*/ |
| 232 | | return true; |
| 233 | | } else if(attrToUBounds != null && attrToUBounds.contains(p)) { |
| 234 | | if(click) |
| 235 | | Desktop.getDesktop().browse(new URI(ts.getTermsOfUseURL())); |
| 236 | | /*else |
| 237 | | Main.warn(ts.getTermsOfUseURL());*/ |
| 238 | | return true; |
| 239 | | } |
| 240 | | } catch (IOException e1) { |
| 241 | | e1.printStackTrace(); |
| 242 | | } catch (URISyntaxException e1) { |
| 243 | | e1.printStackTrace(); |
| | 223 | if((attrImageBounds != null && attrImageBounds.contains(p)) |
| | 224 | || (attrTextBounds != null && attrTextBounds.contains(p))) { |
| | 225 | if(click) |
| | 226 | OpenBrowser.displayUrl(ts.getAttributionLinkURL()); |
| | 227 | /*else |
| | 228 | Main.warn(ts.getAttributionLinkURL());*/ |
| | 229 | return true; |
| | 230 | } else if(attrToUBounds != null && attrToUBounds.contains(p)) { |
| | 231 | if(click) |
| | 232 | OpenBrowser.displayUrl(ts.getTermsOfUseURL()); |
| | 233 | /*else |
| | 234 | Main.warn(ts.getTermsOfUseURL());*/ |
| | 235 | return true; |