source: osm/applications/editors/josm/plugins/imagery_offset_db/src/iodb/OffsetDialogButton.java@ 29371

Last change on this file since 29371 was 29371, checked in by zverik, 11 years ago

some updates to iodb plugin

File size: 533 bytes
Line 
1package iodb;
2
3import javax.swing.JButton;
4
5/**
6 * A button which shows offset information.
7 *
8 * @author zverik
9 */
10public class OffsetDialogButton extends JButton {
11
12 private ImageryOffsetBase offset;
13
14 public OffsetDialogButton( ImageryOffsetBase offset ) {
15 super(offset.getDescription() + " (" + Math.round(offset.getPosition().greatCircleDistance(ImageryOffsetTools.getMapCenter())) + " m)");
16 this.offset = offset;
17 }
18
19 public ImageryOffsetBase getOffset() {
20 return offset;
21 }
22
23}
Note: See TracBrowser for help on using the repository browser.