(int start, int stop)
| 1399 | |
| 1400 | |
| 1401 | public void setSelection(int start, int stop) { |
| 1402 | // make sure that a tool isn't asking for a bad location |
| 1403 | start = PApplet.constrain(start, 0, textarea.getDocumentLength()); |
| 1404 | stop = PApplet.constrain(stop, 0, textarea.getDocumentLength()); |
| 1405 | |
| 1406 | textarea.select(start, stop); |
| 1407 | } |
| 1408 | |
| 1409 | |
| 1410 | /** |
no test coverage detected