()
| 102 | } |
| 103 | |
| 104 | private void drawHorizontalLines() { |
| 105 | GeneralPath path = new GeneralPath(); |
| 106 | int width = imp.getWidth(); |
| 107 | int height = imp.getHeight(); |
| 108 | for(int i=0; i<linesH; i++) { |
| 109 | float yoff = (float)(ystart+i*tileHeight); |
| 110 | path.moveTo(0f, yoff); |
| 111 | path.lineTo(width, yoff); |
| 112 | } |
| 113 | drawGrid(path); |
| 114 | } |
| 115 | |
| 116 | void drawGrid(Shape shape) { |
| 117 | if (shape==null) { |