1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119<!DOCTYPE html> 120<html devsite> 121<head> 122 123 124 <meta name="top_category" value="develop" /> 125 126 <meta name="subcategory" value="reference" /> 127 128 129 <meta name="book_path" value="/reference/android/support/test/_book.yaml" /> 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145<title>CoordinatesProvider</title> 146 147 148</head> 149 150<body class="gc-documentation develop reference api apilevel-"> 151<div id="doc-api-level" class="" style="display:none"></div> 152 153 154 155 156<div id="naMessage"></div> 157 158<div id="api-info-block"> 159<div class="api-level"> 160 161 162 163 164</div> 165 166 167 168 169<div class="sum-details-links"> 170 171Summary: 172 173 174 175 176 177 178 179 180 181 182 183 <a href="#pubmethods">Methods</a> 184 185 186 187 188| <a href="#" onclick="return toggleAllClassInherited()" id="toggleAllClassInherited">[Expand All]</a> 189 190</div><!-- end sum-details-links --> 191</div><!-- end api-info-block --> 192 193<div class="api apilevel-" id="jd-content"> 194 195<!-- ======== START OF CLASS DATA ======== --> 196 197<h1 class="api-title">CoordinatesProvider</h1> 198<p> 199<code class="api-signature"> 200 public 201 202 203 204 interface 205 CoordinatesProvider 206</code> 207<br> 208 209 210<code class="api-signature"> 211 212 213 214</code> 215 216</p><table class="jd-inheritance-table"> 217 218 219 <tr> 220 221 <td colspan="1" class="jd-inheritance-class-cell">android.support.test.espresso.action.CoordinatesProvider 222 </td> 223 </tr> 224 225 226</table> 227 228 <table class="jd-sumtable jd-sumtable-subclasses"><tr><td colspan="2" style="border:none;margin:0;padding:0;"> 229 230 <a href="#" onclick="return toggleInherited(this, null)" id="subclasses-indirect" class="jd-expando-trigger closed" 231 ><img height="34" id="subclasses-indirect-trigger" 232 src="/assets/images/styles/disclosure_down.png" 233 class="jd-expando-trigger-img" /></a>Known Indirect Subclasses 234 235 <div id="subclasses-indirect"> 236 <div id="subclasses-indirect-list" 237 class="jd-inheritedlinks" 238 239 > 240 241 242 <a href="/reference/android/support/test/espresso/action/GeneralLocation.html">GeneralLocation</a> 243 244 245 </div> 246 <div id="subclasses-indirect-summary" 247 style="display: none;" 248 > 249 250 <table class="jd-sumtable-expando"> 251 252 <tr class="alt-color api apilevel-" > 253 <td class="jd-linkcol"><a href="/reference/android/support/test/espresso/action/GeneralLocation.html">GeneralLocation</a></td> 254 <td class="jd-descrcol" width="100%"> 255 Calculates coordinate position for general locations. 256 257 258 259 </td> 260 </tr> 261 262 263 </table> 264 265 </div> 266 </div> 267 </td></tr></table> 268 269 270 271<br><hr> 272 273 274 <p>Interface to implement calculation of Coordinates. 275</p> 276 277 278 279 280 281 282 283<h2 class="api-section">Summary</h2> 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311<!-- ========== METHOD SUMMARY =========== --> 312<table id="pubmethods" class="responsive methods"> 313<tr><th colspan="2"><h3>Public methods</h3></th></tr> 314 315 316 317 318 <tr class="api apilevel-" > 319 320 321 <td><code> 322 abstract 323 324 325 326 327 float[]</code> 328 </td> 329 330 <td width="100%"> 331 <code> 332 <a href="/reference/android/support/test/espresso/action/CoordinatesProvider.html#calculateCoordinates(android.view.View)">calculateCoordinates</a>(View view) 333 </code> 334 335 <p>Calculates coordinates of given view. 336 337 338</p> 339 340 </td> 341 </tr> 342 343 344 345</table> 346 347 348 349 350 351 352 353 354<!-- XML Attributes --> 355 356 357<!-- Enum Values --> 358 359 360<!-- Constants --> 361 362 363<!-- Fields --> 364 365 366<!-- Public ctors --> 367 368 369 370<!-- ========= CONSTRUCTOR DETAIL ======== --> 371<!-- Protected ctors --> 372 373 374 375<!-- ========= METHOD DETAIL ======== --> 376<!-- Public methdos --> 377 378<h2 class="api-section">Public methods</h2> 379 380 381 382<A NAME="calculateCoordinates(android.view.View)"></A> 383 384<div class="api apilevel-"> 385 <h3 class="api-name">calculateCoordinates</h3> 386 <div class="api-level"> 387 <div></div> 388 389 390 391 </div> 392<pre class="api-signature no-pretty-print"> 393float[] calculateCoordinates (View view)</pre> 394 395 396 397 398 <p>Calculates coordinates of given view.</p> 399 <table class="responsive"> 400 <tr><th colspan=2>Parameters</th></tr> 401 <tr> 402 <td><code>view</code></td> 403 <td width="100%"> 404 <code>View</code>: 405 the View which is used for the calculation.</td> 406 </tr> 407 </table> 408 <table class="responsive"> 409 <tr><th colspan=2>Returns</th></tr> 410 <tr> 411 <td><code>float[]</code></td> 412 <td width="100%">a float[] with x and y values of the calculated coordinates. 413</td> 414 </tr> 415 </table> 416 417</div> 418 419 420 421 422 423<!-- ========= METHOD DETAIL ======== --> 424 425 426 427<!-- ========= END OF CLASS DATA ========= --> 428 429</div><!-- end jd-content --> 430 431 432 433<div class="data-reference-resources-wrapper"> 434 435 <ul data-reference-resources> 436 437 438 <li><h2>Interfaces</h2> 439 <ul> 440 <li class="api apilevel-"><a href="/reference/android/support/test/espresso/action/AdapterViewProtocol.html">AdapterViewProtocol</a></li> 441 <li class="api apilevel-"><a href="/reference/android/support/test/espresso/action/AdapterViewProtocol.DataFunction.html">AdapterViewProtocol.DataFunction</a></li> 442 <li class="selected api apilevel-"><a href="/reference/android/support/test/espresso/action/CoordinatesProvider.html">CoordinatesProvider</a></li> 443 <li class="api apilevel-"><a href="/reference/android/support/test/espresso/action/PrecisionDescriber.html">PrecisionDescriber</a></li> 444 <li class="api apilevel-"><a href="/reference/android/support/test/espresso/action/Swiper.html">Swiper</a></li> 445 <li class="api apilevel-"><a href="/reference/android/support/test/espresso/action/Tapper.html">Tapper</a></li> 446 </ul> 447 </li> 448 449 <li><h2>Classes</h2> 450 <ul> 451 <li class="api apilevel-"><a href="/reference/android/support/test/espresso/action/AdapterDataLoaderAction.html">AdapterDataLoaderAction</a></li> 452 <li class="api apilevel-"><a href="/reference/android/support/test/espresso/action/AdapterViewProtocol.AdaptedData.html">AdapterViewProtocol.AdaptedData</a></li> 453 <li class="api apilevel-"><a href="/reference/android/support/test/espresso/action/AdapterViewProtocol.AdaptedData.Builder.html">AdapterViewProtocol.AdaptedData.Builder</a></li> 454 <li class="api apilevel-"><a href="/reference/android/support/test/espresso/action/AdapterViewProtocols.html">AdapterViewProtocols</a></li> 455 <li class="api apilevel-"><a href="/reference/android/support/test/espresso/action/CloseKeyboardAction.html">CloseKeyboardAction</a></li> 456 <li class="api apilevel-"><a href="/reference/android/support/test/espresso/action/EditorAction.html">EditorAction</a></li> 457 <li class="api apilevel-"><a href="/reference/android/support/test/espresso/action/EspressoKey.html">EspressoKey</a></li> 458 <li class="api apilevel-"><a href="/reference/android/support/test/espresso/action/EspressoKey.Builder.html">EspressoKey.Builder</a></li> 459 <li class="api apilevel-"><a href="/reference/android/support/test/espresso/action/GeneralClickAction.html">GeneralClickAction</a></li> 460 <li class="api apilevel-"><a href="/reference/android/support/test/espresso/action/GeneralSwipeAction.html">GeneralSwipeAction</a></li> 461 <li class="api apilevel-"><a href="/reference/android/support/test/espresso/action/KeyEventAction.html">KeyEventAction</a></li> 462 <li class="api apilevel-"><a href="/reference/android/support/test/espresso/action/MotionEvents.html">MotionEvents</a></li> 463 <li class="api apilevel-"><a href="/reference/android/support/test/espresso/action/MotionEvents.DownResultHolder.html">MotionEvents.DownResultHolder</a></li> 464 <li class="api apilevel-"><a href="/reference/android/support/test/espresso/action/OpenLinkAction.html">OpenLinkAction</a></li> 465 <li class="api apilevel-"><a href="/reference/android/support/test/espresso/action/ReplaceTextAction.html">ReplaceTextAction</a></li> 466 <li class="api apilevel-"><a href="/reference/android/support/test/espresso/action/ScrollToAction.html">ScrollToAction</a></li> 467 <li class="api apilevel-"><a href="/reference/android/support/test/espresso/action/TypeTextAction.html">TypeTextAction</a></li> 468 <li class="api apilevel-"><a href="/reference/android/support/test/espresso/action/ViewActions.html">ViewActions</a></li> 469 </ul> 470 </li> 471 472 <li><h2>Enums</h2> 473 <ul> 474 <li class="api apilevel-"><a href="/reference/android/support/test/espresso/action/GeneralLocation.html">GeneralLocation</a></li> 475 <li class="api apilevel-"><a href="/reference/android/support/test/espresso/action/Press.html">Press</a></li> 476 <li class="api apilevel-"><a href="/reference/android/support/test/espresso/action/Swipe.html">Swipe</a></li> 477 <li class="api apilevel-"><a href="/reference/android/support/test/espresso/action/Swiper.Status.html">Swiper.Status</a></li> 478 <li class="api apilevel-"><a href="/reference/android/support/test/espresso/action/Tap.html">Tap</a></li> 479 <li class="api apilevel-"><a href="/reference/android/support/test/espresso/action/Tapper.Status.html">Tapper.Status</a></li> 480 </ul> 481 </li> 482 483 484 </ul> 485 486</div> 487 488 489 490</body> 491</html> 492