| 85 | } |
| 86 | |
| 87 | private void drawLines() { |
| 88 | GeneralPath path = new GeneralPath(); |
| 89 | int width = imp.getWidth(); |
| 90 | int height = imp.getHeight(); |
| 91 | for(int i=0; i<linesV; i++) { |
| 92 | float xoff = (float)(xstart+i*tileWidth); |
| 93 | path.moveTo(xoff,0f); |
| 94 | path.lineTo(xoff, height); |
| 95 | } |
| 96 | for(int i=0; i<linesH; i++) { |
| 97 | float yoff = (float)(ystart+i*tileHeight); |
| 98 | path.moveTo(0f, yoff); |
| 99 | path.lineTo(width, yoff); |
| 100 | } |
| 101 | drawGrid(path); |
| 102 | } |
| 103 | |
| 104 | private void drawHorizontalLines() { |
| 105 | GeneralPath path = new GeneralPath(); |