Line | |
---|
1 | //License: GPL. For details, see LICENSE file.
|
---|
2 | // Copyright (c) 2009 / 2010 by Werner Koenig & Malcolm Herring
|
---|
3 |
|
---|
4 | package toms.seamarks.buoys;
|
---|
5 |
|
---|
6 | import javax.swing.ImageIcon;
|
---|
7 |
|
---|
8 | import org.openstreetmap.josm.Main;
|
---|
9 |
|
---|
10 | import toms.dialogs.SmpDialogAction;
|
---|
11 |
|
---|
12 | public class BuoyUkn extends Buoy {
|
---|
13 | public BuoyUkn(SmpDialogAction dia, String Msg) {
|
---|
14 | super(dia);
|
---|
15 | resetMask();
|
---|
16 | dlg.cbM01TypeOfMark.setSelectedIndex(0);
|
---|
17 | setErrMsg(Msg);
|
---|
18 | }
|
---|
19 |
|
---|
20 | public void paintSign() {
|
---|
21 | if (dlg.paintlock)
|
---|
22 | return;
|
---|
23 | super.paintSign();
|
---|
24 |
|
---|
25 | if (getErrMsg() != null)
|
---|
26 | dlg.sM01StatusBar.setText(getErrMsg());
|
---|
27 |
|
---|
28 | setErrMsg(null);
|
---|
29 | }
|
---|
30 |
|
---|
31 | public void setLightColour() {
|
---|
32 | super.setLightColour("");
|
---|
33 | }
|
---|
34 |
|
---|
35 | public void saveSign() {
|
---|
36 | }
|
---|
37 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.