Closes the current subpath by drawing a straight line back to the coordinates of the last moveTo. If the path is already closed then this method has no effect.
()
| 275 | * this method has no effect. |
| 276 | */ |
| 277 | public final void closePath() { |
| 278 | if (numTypes == 0 || pointTypes[numTypes - 1] != SEG_CLOSE) { |
| 279 | needRoom(false, 0); |
| 280 | pointTypes[numTypes++] = SEG_CLOSE; |
| 281 | } |
| 282 | } |
| 283 | |
| 284 | |
| 285 | /** |
no test coverage detected