Line | |
---|
1 | package iodb;
|
---|
2 |
|
---|
3 | import javax.swing.JButton;
|
---|
4 |
|
---|
5 | /**
|
---|
6 | * A button which shows offset information.
|
---|
7 | *
|
---|
8 | * @author zverik
|
---|
9 | */
|
---|
10 | public 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.