Returns true if (x,y) is one of the points in this collection.
(int x, int y)
| 534 | |
| 535 | /** Returns true if (x,y) is one of the points in this collection. */ |
| 536 | public boolean contains(int x, int y) { |
| 537 | for (int i=0; i<nPoints; i++) { |
| 538 | if (x==this.x+xpf[i] && y==this.y+ypf[i]) return true; |
| 539 | } |
| 540 | return false; |
| 541 | } |
| 542 | |
| 543 | public void setShowLabels(boolean showLabels) { |
| 544 | this.showLabels = showLabels; |
no outgoing calls
no test coverage detected