Changeset 18597 in osm for applications/editors/josm/plugins/piclayer/src
- Timestamp:
- 2009-11-14T20:01:49+01:00 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/piclayer/src/org/openstreetmap/josm/plugins/piclayer/PicLayerAbstract.java
r17327 r18597 37 37 import javax.swing.JSeparator; 38 38 39 import org.openstreetmap.josm.Main; 40 import org.openstreetmap.josm.data.Bounds; 39 41 import org.openstreetmap.josm.data.coor.EastNorth; 40 42 import org.openstreetmap.josm.data.osm.visitor.BoundingXYVisitor; 41 import org.openstreetmap.josm.Main;42 43 import org.openstreetmap.josm.gui.MapView; 43 44 import org.openstreetmap.josm.gui.layer.Layer; … … 70 71 // Layer icon 71 72 private Icon m_layericon = null; 72 73 73 74 // Keys for saving in Properties 74 75 private final String INITIAL_POS_X = "INITIAL_POS_X"; … … 186 187 187 188 @Override 188 public void paint(Graphics arg0, MapViewarg1) {189 190 if ( m_image != null && arg0instanceof Graphics2D) {189 public void paint(Graphics2D g2, MapView mv, Bounds bounds) { 190 191 if ( m_image != null && g2 instanceof Graphics2D) { 191 192 192 193 // Position image at the right graphical place … … 200 201 201 202 // Let's use Graphics 2D 202 Graphics2D g = (Graphics2D) arg0.create();203 Graphics2D g = (Graphics2D)g2.create(); 203 204 // Move 204 205 g.translate( pic_offset_x, pic_offset_y ); … … 294 295 props.put(ANGLE, "" + m_angle); 295 296 } 296 297 297 298 /** 298 299 * Loads calibration data from properties structure
Note:
See TracChangeset
for help on using the changeset viewer.