Changeset 27220 in osm for applications/editors/josm/plugins/piclayer/src
- Timestamp:
- 2011-12-12T14:30:33+01:00 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/piclayer/src/org/openstreetmap/josm/plugins/piclayer/layer/PicLayerAbstract.java
r27191 r27220 77 77 private Icon layerIcon = null; 78 78 79 private boolean draw Points = true;79 private boolean drawMarkers = true; 80 80 81 81 public void setDrawPoints(boolean value) { 82 draw Points = value;82 drawMarkers = value; 83 83 } 84 84 … … 122 122 if (pinImage == null) { 123 123 // allow system to load the image and use it in future 124 pinImage = new ImageIcon(Toolkit.getDefaultToolkit().createImage(getClass().getResource("/images/ arrow.png"))).getImage();124 pinImage = new ImageIcon(Toolkit.getDefaultToolkit().createImage(getClass().getResource("/images/marker.png"))).getImage(); 125 125 } 126 126 } … … 245 245 ); 246 246 } 247 if (draw Points ) {248 // draw points for selection247 if (drawMarkers ) { 248 // draw markers for selection 249 249 Graphics2D gPoints = (Graphics2D)g2.create(); 250 250 … … 259 259 Point2D trP = tr.transform(p, null); 260 260 int x = (int)trP.getX(), y = (int)trP.getY(); 261 gPoints.drawOval(x-2, y-2, 5, 5); 262 gPoints.drawImage(pinImage, x , y, null);261 //gPoints.drawOval(x-2, y-2, 5, 5); 262 gPoints.drawImage(pinImage, x-15, y-15, null); 263 263 } 264 264 }
Note:
See TracChangeset
for help on using the changeset viewer.