Changeset 26173 in osm


Ignore:
Timestamp:
2011-06-25T17:57:10+02:00 (13 years ago)
Author:
malcolmh
Message:

save

Location:
applications/editors/josm/plugins/smed/plugs/oseam/src
Files:
2 added
17 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/smed/plugs/oseam/src/oseam/dialogs/OSeaMAction.java

    r25145 r26173  
    8080                return panelMain;
    8181        }
    82        
     82
    8383}
  • applications/editors/josm/plugins/smed/plugs/oseam/src/oseam/msg/messages.properties

    r26099 r26173  
    4040RegionA=IALA Region A
    4141RegionB=IALA Region B
     42RegionC=CEVNI
    4243
    4344NoTop=No topmark
  • applications/editors/josm/plugins/smed/plugs/oseam/src/oseam/msg/messages_de.properties

    r26099 r26173  
    4040RegionA=IALA Region A
    4141RegionB=IALA Region B
     42RegionC=CEVNI
    4243
    4344NoTop=No topmark
  • applications/editors/josm/plugins/smed/plugs/oseam/src/oseam/msg/messages_en.properties

    r26099 r26173  
    4040RegionA=IALA Region A
    4141RegionB=IALA Region B
     42RegionC=CEVNI
    4243
    4344NoTop=No topmark
  • applications/editors/josm/plugins/smed/plugs/oseam/src/oseam/panels/PanelChan.java

    r26110 r26173  
    3131        public PanelSaw panelSaw = null;
    3232        private ButtonGroup catButtons = new ButtonGroup();
    33         public JRadioButton portButton = new JRadioButton(new ImageIcon(getClass()
    34                         .getResource("/images/PortButton.png")));
    35         public JRadioButton stbdButton = new JRadioButton(new ImageIcon(getClass()
    36                         .getResource("/images/StbdButton.png")));
    37         public JRadioButton prefPortButton = new JRadioButton(new ImageIcon(
    38                         getClass().getResource("/images/PrefPortButton.png")));
    39         public JRadioButton prefStbdButton = new JRadioButton(new ImageIcon(
    40                         getClass().getResource("/images/PrefStbdButton.png")));
    41         public JRadioButton safeWaterButton = new JRadioButton(new ImageIcon(
    42                         getClass().getResource("/images/SafeWaterButton.png")));
     33        public JRadioButton portButton = new JRadioButton(new ImageIcon(getClass().getResource("/images/PortButton.png")));
     34        public JRadioButton stbdButton = new JRadioButton(new ImageIcon(getClass().getResource("/images/StbdButton.png")));
     35        public JRadioButton prefPortButton = new JRadioButton(new ImageIcon(getClass().getResource("/images/PrefPortButton.png")));
     36        public JRadioButton prefStbdButton = new JRadioButton(new ImageIcon(getClass().getResource("/images/PrefStbdButton.png")));
     37        public JRadioButton safeWaterButton = new JRadioButton(new ImageIcon(getClass().getResource("/images/SafeWaterButton.png")));
    4338        private ActionListener alCat = new ActionListener() {
    4439                public void actionPerformed(java.awt.event.ActionEvent e) {
     
    198193                dlg = dia;
    199194                panelPort = new PanelPort(dlg);
    200                 panelPort.setBounds(new Rectangle(55, 0, 225, 160));
     195                panelPort.setBounds(new Rectangle(55, 0, 180, 160));
    201196                panelPort.setVisible(false);
    202197                panelStbd = new PanelStbd(dlg);
    203                 panelStbd.setBounds(new Rectangle(55, 0, 225, 160));
     198                panelStbd.setBounds(new Rectangle(55, 0, 180, 160));
    204199                panelStbd.setVisible(false);
    205200                panelSaw = new PanelSaw(dlg);
    206                 panelSaw.setBounds(new Rectangle(55, 0, 225, 160));
     201                panelSaw.setBounds(new Rectangle(55, 0, 180, 160));
    207202                panelSaw.setVisible(false);
    208203                this.setLayout(null);
     
    225220        }
    226221
    227         private JRadioButton getCatButton(JRadioButton button, int x, int y, int w,
    228                         int h, String tip) {
     222        private JRadioButton getCatButton(JRadioButton button, int x, int y, int w, int h, String tip) {
    229223                button.setBounds(new Rectangle(x, y, w, h));
    230224                button.setBorder(BorderFactory.createLineBorder(Color.magenta, 2));
  • applications/editors/josm/plugins/smed/plugs/oseam/src/oseam/panels/PanelChr.java

    r26124 r26173  
    3030        public JLabel charLabel = new JLabel();
    3131        public JTextField charBox = new JTextField();
    32         public JToggleButton noneButton = new JToggleButton(new ImageIcon(getClass()
    33                         .getResource("/images/NoCharButton.png")));
    34         public JToggleButton fixedButton = new JToggleButton(new ImageIcon(getClass()
    35                         .getResource("/images/FixedButton.png")));
    36         public JToggleButton flashButton = new JToggleButton(new ImageIcon(getClass()
    37                         .getResource("/images/FlashButton.png")));
    38         public JToggleButton longFlashButton = new JToggleButton(new ImageIcon(
    39                         getClass().getResource("/images/LongFlashButton.png")));
    40         public JToggleButton quickButton = new JToggleButton(new ImageIcon(getClass()
    41                         .getResource("/images/QuickButton.png")));
    42         public JToggleButton veryQuickButton = new JToggleButton(new ImageIcon(
    43                         getClass().getResource("/images/VeryQuickButton.png")));
    44         public JToggleButton ultraQuickButton = new JToggleButton(new ImageIcon(
    45                         getClass().getResource("/images/UltraQuickButton.png")));
    46         public JToggleButton interruptedQuickButton = new JToggleButton(
    47                         new ImageIcon(getClass()
    48                                         .getResource("/images/InterruptedQuickButton.png")));
    49         public JToggleButton interruptedVeryQuickButton = new JToggleButton(
    50                         new ImageIcon(getClass().getResource(
    51                                         "/images/InterruptedVeryQuickButton.png")));
    52         public JToggleButton interruptedUltraQuickButton = new JToggleButton(
    53                         new ImageIcon(getClass().getResource(
    54                                         "/images/InterruptedUltraQuickButton.png")));
    55         public JToggleButton isophasedButton = new JToggleButton(new ImageIcon(
    56                         getClass().getResource("/images/IsophasedButton.png")));
    57         public JToggleButton occultingButton = new JToggleButton(new ImageIcon(
    58                         getClass().getResource("/images/OccultingButton.png")));
    59         public JToggleButton morseButton = new JToggleButton(new ImageIcon(getClass()
    60                         .getResource("/images/MorseButton.png")));
    61         public JToggleButton alternatingButton = new JToggleButton(new ImageIcon(
    62                         getClass().getResource("/images/AlternatingButton.png")));
    63         private EnumMap<Chr, JToggleButton> buttons = new EnumMap<Chr, JToggleButton>(
    64                         Chr.class);
     32        public JToggleButton noneButton = new JToggleButton(new ImageIcon(getClass().getResource("/images/NoCharButton.png")));
     33        public JToggleButton fixedButton = new JToggleButton(new ImageIcon(getClass().getResource("/images/FixedButton.png")));
     34        public JToggleButton flashButton = new JToggleButton(new ImageIcon(getClass().getResource("/images/FlashButton.png")));
     35        public JToggleButton longFlashButton = new JToggleButton(new ImageIcon(getClass().getResource("/images/LongFlashButton.png")));
     36        public JToggleButton quickButton = new JToggleButton(new ImageIcon(getClass().getResource("/images/QuickButton.png")));
     37        public JToggleButton veryQuickButton = new JToggleButton(new ImageIcon(getClass().getResource("/images/VeryQuickButton.png")));
     38        public JToggleButton ultraQuickButton = new JToggleButton(new ImageIcon(getClass().getResource("/images/UltraQuickButton.png")));
     39        public JToggleButton interruptedQuickButton = new JToggleButton(new ImageIcon(getClass().getResource(
     40                        "/images/InterruptedQuickButton.png")));
     41        public JToggleButton interruptedVeryQuickButton = new JToggleButton(new ImageIcon(getClass().getResource(
     42                        "/images/InterruptedVeryQuickButton.png")));
     43        public JToggleButton interruptedUltraQuickButton = new JToggleButton(new ImageIcon(getClass().getResource(
     44                        "/images/InterruptedUltraQuickButton.png")));
     45        public JToggleButton isophasedButton = new JToggleButton(new ImageIcon(getClass().getResource("/images/IsophasedButton.png")));
     46        public JToggleButton occultingButton = new JToggleButton(new ImageIcon(getClass().getResource("/images/OccultingButton.png")));
     47        public JToggleButton morseButton = new JToggleButton(new ImageIcon(getClass().getResource("/images/MorseButton.png")));
     48        public JToggleButton alternatingButton = new JToggleButton(new ImageIcon(getClass().getResource("/images/AlternatingButton.png")));
     49        private EnumMap<Chr, JToggleButton> buttons = new EnumMap<Chr, JToggleButton>(Chr.class);
    6550        private ActionListener alCharButton = new ActionListener() {
    6651                public void actionPerformed(java.awt.event.ActionEvent e) {
     
    120105                dlg = dia;
    121106                this.setLayout(null);
    122                 this.add(
    123                                 getChrButton(noneButton, 0, 0, 44, 16, Messages.getString("NoChar"),
    124                                                 Chr.UNKNOWN), null);
    125                 this.add(
    126                                 getChrButton(fixedButton, 0, 16, 44, 16, Messages.getString("FChar"),
    127                                                 Chr.FIXED), null);
    128                 this.add(
    129                                 getChrButton(flashButton, 0, 32, 44, 16, Messages.getString("FlChar"),
    130                                                 Chr.FLASH), null);
    131                 this.add(
    132                                 getChrButton(longFlashButton, 0, 48, 44, 16,
    133                                                 Messages.getString("LFlChar"), Chr.LONGFLASH), null);
    134                 this.add(
    135                                 getChrButton(quickButton, 0, 64, 44, 16, Messages.getString("QChar"),
    136                                                 Chr.QUICK), null);
    137                 this.add(
    138                                 getChrButton(veryQuickButton, 0, 80, 44, 16,
    139                                                 Messages.getString("VQChar"), Chr.VERYQUICK), null);
    140                 this.add(
    141                                 getChrButton(ultraQuickButton, 0, 96, 44, 16,
    142                                                 Messages.getString("UQChar"), Chr.ULTRAQUICK), null);
    143                 this.add(
    144                                 getChrButton(alternatingButton, 44, 0, 44, 16,
    145                                                 Messages.getString("AlChar"), Chr.ALTERNATING), null);
    146                 this.add(
    147                                 getChrButton(isophasedButton, 44, 16, 44, 16,
    148                                                 Messages.getString("IsoChar"), Chr.ISOPHASED), null);
    149                 this.add(
    150                                 getChrButton(occultingButton, 44, 32, 44, 16,
    151                                                 Messages.getString("OcChar"), Chr.OCCULTING), null);
    152                 this.add(
    153                                 getChrButton(morseButton, 44, 48, 44, 16, Messages.getString("MoChar"),
    154                                                 Chr.MORSE), null);
    155                 this.add(
    156                                 getChrButton(interruptedQuickButton, 44, 64, 44, 16,
    157                                                 Messages.getString("IQChar"), Chr.INTERRUPTEDQUICK), null);
    158                 this.add(
    159                                 getChrButton(interruptedVeryQuickButton, 44, 80, 44, 16,
    160                                                 Messages.getString("IVQChar"), Chr.INTERRUPTEDVERYQUICK), null);
    161                 this.add(
    162                                 getChrButton(interruptedUltraQuickButton, 44, 96, 44, 16,
    163                                                 Messages.getString("IUQChar"), Chr.INTERRUPTEDULTRAQUICK), null);
     107                this.add(getChrButton(noneButton, 0, 0, 44, 16, Messages.getString("NoChar"), Chr.UNKNOWN), null);
     108                this.add(getChrButton(fixedButton, 0, 16, 44, 16, Messages.getString("FChar"), Chr.FIXED), null);
     109                this.add(getChrButton(flashButton, 0, 32, 44, 16, Messages.getString("FlChar"), Chr.FLASH), null);
     110                this.add(getChrButton(longFlashButton, 0, 48, 44, 16, Messages.getString("LFlChar"), Chr.LONGFLASH), null);
     111                this.add(getChrButton(quickButton, 0, 64, 44, 16, Messages.getString("QChar"), Chr.QUICK), null);
     112                this.add(getChrButton(veryQuickButton, 0, 80, 44, 16, Messages.getString("VQChar"), Chr.VERYQUICK), null);
     113                this.add(getChrButton(ultraQuickButton, 0, 96, 44, 16, Messages.getString("UQChar"), Chr.ULTRAQUICK), null);
     114                this.add(getChrButton(alternatingButton, 44, 0, 44, 16, Messages.getString("AlChar"), Chr.ALTERNATING), null);
     115                this.add(getChrButton(isophasedButton, 44, 16, 44, 16, Messages.getString("IsoChar"), Chr.ISOPHASED), null);
     116                this.add(getChrButton(occultingButton, 44, 32, 44, 16, Messages.getString("OcChar"), Chr.OCCULTING), null);
     117                this.add(getChrButton(morseButton, 44, 48, 44, 16, Messages.getString("MoChar"), Chr.MORSE), null);
     118                this.add(getChrButton(interruptedQuickButton, 44, 64, 44, 16, Messages.getString("IQChar"), Chr.INTERRUPTEDQUICK), null);
     119                this.add(getChrButton(interruptedVeryQuickButton, 44, 80, 44, 16, Messages.getString("IVQChar"), Chr.INTERRUPTEDVERYQUICK),
     120                                null);
     121                this.add(getChrButton(interruptedUltraQuickButton, 44, 96, 44, 16, Messages.getString("IUQChar"), Chr.INTERRUPTEDULTRAQUICK),
     122                                null);
    164123                charLabel.setBounds(new Rectangle(0, 113, 88, 20));
    165124                charLabel.setHorizontalAlignment(SwingConstants.CENTER);
     
    186145        }
    187146
    188         private JToggleButton getChrButton(JToggleButton button, int x, int y, int w,
    189                         int h, String tip, Chr chr) {
     147        private JToggleButton getChrButton(JToggleButton button, int x, int y, int w, int h, String tip, Chr chr) {
    190148                button.setBounds(new Rectangle(x, y, w, h));
    191149                button.setBorder(BorderFactory.createLineBorder(Color.magenta, 2));
  • applications/editors/josm/plugins/smed/plugs/oseam/src/oseam/panels/PanelCol.java

    r26110 r26173  
    2525        private Ent ent;
    2626        private ButtonGroup colourButtons = new ButtonGroup();
    27         public JRadioButton offButton = new JRadioButton(new ImageIcon(getClass()
    28                         .getResource("/images/OffButton.png")));
    29         public JRadioButton whiteButton = new JRadioButton(new ImageIcon(getClass()
    30                         .getResource("/images/WhiteButton.png")));
    31         public JRadioButton redButton = new JRadioButton(new ImageIcon(getClass()
    32                         .getResource("/images/RedButton.png")));
    33         public JRadioButton orangeButton = new JRadioButton(new ImageIcon(getClass()
    34                         .getResource("/images/OrangeButton.png")));
    35         public JRadioButton amberButton = new JRadioButton(new ImageIcon(getClass()
    36                         .getResource("/images/AmberButton.png")));
    37         public JRadioButton yellowButton = new JRadioButton(new ImageIcon(getClass()
    38                         .getResource("/images/YellowButton.png")));
    39         public JRadioButton greenButton = new JRadioButton(new ImageIcon(getClass()
    40                         .getResource("/images/GreenButton.png")));
    41         public JRadioButton blueButton = new JRadioButton(new ImageIcon(getClass()
    42                         .getResource("/images/BlueButton.png")));
    43         public JRadioButton violetButton = new JRadioButton(new ImageIcon(getClass()
    44                         .getResource("/images/VioletButton.png")));
    45         public JRadioButton blackButton = new JRadioButton(new ImageIcon(getClass()
    46                         .getResource("/images/BlackButton.png")));
    47         private EnumMap<Col, JRadioButton> colours = new EnumMap<Col, JRadioButton>(
    48                         Col.class);
     27        public JRadioButton offButton = new JRadioButton(new ImageIcon(getClass().getResource("/images/OffButton.png")));
     28        public JRadioButton whiteButton = new JRadioButton(new ImageIcon(getClass().getResource("/images/WhiteButton.png")));
     29        public JRadioButton redButton = new JRadioButton(new ImageIcon(getClass().getResource("/images/RedButton.png")));
     30        public JRadioButton orangeButton = new JRadioButton(new ImageIcon(getClass().getResource("/images/OrangeButton.png")));
     31        public JRadioButton amberButton = new JRadioButton(new ImageIcon(getClass().getResource("/images/AmberButton.png")));
     32        public JRadioButton yellowButton = new JRadioButton(new ImageIcon(getClass().getResource("/images/YellowButton.png")));
     33        public JRadioButton greenButton = new JRadioButton(new ImageIcon(getClass().getResource("/images/GreenButton.png")));
     34        public JRadioButton blueButton = new JRadioButton(new ImageIcon(getClass().getResource("/images/BlueButton.png")));
     35        public JRadioButton violetButton = new JRadioButton(new ImageIcon(getClass().getResource("/images/VioletButton.png")));
     36        public JRadioButton blackButton = new JRadioButton(new ImageIcon(getClass().getResource("/images/BlackButton.png")));
     37        private EnumMap<Col, JRadioButton> colours = new EnumMap<Col, JRadioButton>(Col.class);
    4938        private ActionListener alColour = new ActionListener() {
    5039                public void actionPerformed(java.awt.event.ActionEvent e) {
     
    6554                ent = entity;
    6655                this.setLayout(null);
    67                 this.add(
    68                                 getColButton(offButton, 0, 0, 34, 16, Messages.getString("NoColour"),
    69                                                 Col.UNKNOWN), null);
    70                 this.add(
    71                                 getColButton(whiteButton, 0, 16, 34, 16, Messages.getString("White"),
    72                                                 Col.WHITE), null);
    73                 this.add(
    74                                 getColButton(redButton, 0, 32, 34, 16, Messages.getString("Red"),
    75                                                 Col.RED), null);
    76                 this.add(
    77                                 getColButton(orangeButton, 0, 48, 34, 16, Messages.getString("Orange"),
    78                                                 Col.ORANGE), null);
    79                 this.add(
    80                                 getColButton(amberButton, 0, 64, 34, 16, Messages.getString("Amber"),
    81                                                 Col.AMBER), null);
    82                 this.add(
    83                                 getColButton(yellowButton, 0, 80, 34, 16, Messages.getString("Yellow"),
    84                                                 Col.YELLOW), null);
    85                 this.add(
    86                                 getColButton(greenButton, 0, 96, 34, 16, Messages.getString("Green"),
    87                                                 Col.GREEN), null);
    88                 this.add(
    89                                 getColButton(blueButton, 0, 112, 34, 16, Messages.getString("Blue"),
    90                                                 Col.BLUE), null);
    91                 this.add(
    92                                 getColButton(violetButton, 0, 128, 34, 16,
    93                                                 Messages.getString("Violet"), Col.VIOLET), null);
    94                 this.add(
    95                                 getColButton(blackButton, 0, 144, 34, 16, Messages.getString("Black"),
    96                                                 Col.BLACK), null);
     56                this.add(getColButton(offButton, 0, 0, 34, 16, Messages.getString("NoColour"), Col.UNKNOWN), null);
     57                this.add(getColButton(whiteButton, 0, 16, 34, 16, Messages.getString("White"), Col.WHITE), null);
     58                this.add(getColButton(redButton, 0, 32, 34, 16, Messages.getString("Red"), Col.RED), null);
     59                this.add(getColButton(orangeButton, 0, 48, 34, 16, Messages.getString("Orange"), Col.ORANGE), null);
     60                this.add(getColButton(amberButton, 0, 64, 34, 16, Messages.getString("Amber"), Col.AMBER), null);
     61                this.add(getColButton(yellowButton, 0, 80, 34, 16, Messages.getString("Yellow"), Col.YELLOW), null);
     62                this.add(getColButton(greenButton, 0, 96, 34, 16, Messages.getString("Green"), Col.GREEN), null);
     63                this.add(getColButton(blueButton, 0, 112, 34, 16, Messages.getString("Blue"), Col.BLUE), null);
     64                this.add(getColButton(violetButton, 0, 128, 34, 16, Messages.getString("Violet"), Col.VIOLET), null);
     65                this.add(getColButton(blackButton, 0, 144, 34, 16, Messages.getString("Black"), Col.BLACK), null);
    9766        }
    9867
     
    10877        }
    10978
    110         private JRadioButton getColButton(JRadioButton button, int x, int y, int w,
    111                         int h, String tip, Col col) {
     79        private JRadioButton getColButton(JRadioButton button, int x, int y, int w, int h, String tip, Col col) {
    11280                button.setBounds(new Rectangle(x, y, w, h));
    11381                button.setBorder(BorderFactory.createLineBorder(Color.magenta, 2));
  • applications/editors/josm/plugins/smed/plugs/oseam/src/oseam/panels/PanelHaz.java

    r26110 r26173  
    2525        private OSeaMAction dlg;
    2626        private ButtonGroup catButtons = new ButtonGroup();
    27         public JRadioButton northButton = new JRadioButton(new ImageIcon(getClass()
    28                         .getResource("/images/CardNButton.png")));
    29         public JRadioButton southButton = new JRadioButton(new ImageIcon(getClass()
    30                         .getResource("/images/CardSButton.png")));
    31         public JRadioButton eastButton = new JRadioButton(new ImageIcon(getClass()
    32                         .getResource("/images/CardEButton.png")));
    33         public JRadioButton westButton = new JRadioButton(new ImageIcon(getClass()
    34                         .getResource("/images/CardWButton.png")));
    35         public JRadioButton isolButton = new JRadioButton(new ImageIcon(getClass()
    36                         .getResource("/images/IsolButton.png")));
     27        public JRadioButton northButton = new JRadioButton(new ImageIcon(getClass().getResource("/images/CardNButton.png")));
     28        public JRadioButton southButton = new JRadioButton(new ImageIcon(getClass().getResource("/images/CardSButton.png")));
     29        public JRadioButton eastButton = new JRadioButton(new ImageIcon(getClass().getResource("/images/CardEButton.png")));
     30        public JRadioButton westButton = new JRadioButton(new ImageIcon(getClass().getResource("/images/CardWButton.png")));
     31        public JRadioButton isolButton = new JRadioButton(new ImageIcon(getClass().getResource("/images/IsolButton.png")));
    3732        private ActionListener alCat = new ActionListener() {
    3833                public void actionPerformed(java.awt.event.ActionEvent e) {
     
    9792
    9893        private ButtonGroup shapeButtons = new ButtonGroup();
    99         public JRadioButton pillarButton = new JRadioButton(new ImageIcon(getClass()
    100                         .getResource("/images/PillarButton.png")));
    101         public JRadioButton sparButton = new JRadioButton(new ImageIcon(getClass()
    102                         .getResource("/images/SparButton.png")));
    103         public JRadioButton floatButton = new JRadioButton(new ImageIcon(getClass()
    104                         .getResource("/images/FloatButton.png")));
    105         public JRadioButton beaconButton = new JRadioButton(new ImageIcon(getClass()
    106                         .getResource("/images/BeaconButton.png")));
    107         public JRadioButton towerButton = new JRadioButton(new ImageIcon(getClass()
    108                         .getResource("/images/TowerButton.png")));
    109         public EnumMap<Shp, JRadioButton> shapes = new EnumMap<Shp, JRadioButton>(
    110                         Shp.class);
     94        public JRadioButton pillarButton = new JRadioButton(new ImageIcon(getClass().getResource("/images/PillarButton.png")));
     95        public JRadioButton sparButton = new JRadioButton(new ImageIcon(getClass().getResource("/images/SparButton.png")));
     96        public JRadioButton floatButton = new JRadioButton(new ImageIcon(getClass().getResource("/images/FloatButton.png")));
     97        public JRadioButton beaconButton = new JRadioButton(new ImageIcon(getClass().getResource("/images/BeaconButton.png")));
     98        public JRadioButton towerButton = new JRadioButton(new ImageIcon(getClass().getResource("/images/TowerButton.png")));
     99        public EnumMap<Shp, JRadioButton> shapes = new EnumMap<Shp, JRadioButton>(Shp.class);
    111100        public EnumMap<Shp, Obj> carObjects = new EnumMap<Shp, Obj>(Shp.class);
    112101        public EnumMap<Shp, Obj> isdObjects = new EnumMap<Shp, Obj>(Shp.class);
     
    139128                this.add(getCatButton(isolButton, 0, 128, 52, 32, "Isol"), null);
    140129
    141                 this.add(
    142                                 getShapeButton(pillarButton, 55, 0, 34, 32, "Pillar", Shp.PILLAR,
    143                                                 Obj.BOYCAR, Obj.BOYISD), null);
    144                 this.add(
    145                                 getShapeButton(sparButton, 55, 32, 34, 32, "Spar", Shp.SPAR,
    146                                                 Obj.BOYCAR, Obj.BOYISD), null);
    147                 this.add(
    148                                 getShapeButton(floatButton, 55, 64, 34, 32, "Float", Shp.FLOAT,
    149                                                 Obj.LITFLT, Obj.LITFLT), null);
    150                 this.add(
    151                                 getShapeButton(beaconButton, 55, 96, 34, 32, "Beacon", Shp.BEACON,
    152                                                 Obj.BCNCAR, Obj.BCNISD), null);
    153                 this.add(
    154                                 getShapeButton(towerButton, 55, 128, 34, 32, "Tower", Shp.TOWER,
    155                                                 Obj.BCNCAR, Obj.BCNISD), null);
     130                this.add(getShapeButton(pillarButton, 55, 0, 34, 32, "Pillar", Shp.PILLAR, Obj.BOYCAR, Obj.BOYISD), null);
     131                this.add(getShapeButton(sparButton, 55, 32, 34, 32, "Spar", Shp.SPAR, Obj.BOYCAR, Obj.BOYISD), null);
     132                this.add(getShapeButton(floatButton, 55, 64, 34, 32, "Float", Shp.FLOAT, Obj.LITFLT, Obj.LITFLT), null);
     133                this.add(getShapeButton(beaconButton, 55, 96, 34, 32, "Beacon", Shp.BEACON, Obj.BCNCAR, Obj.BCNISD), null);
     134                this.add(getShapeButton(towerButton, 55, 128, 34, 32, "Tower", Shp.TOWER, Obj.BCNCAR, Obj.BCNISD), null);
    156135        }
    157136
     
    163142        }
    164143
    165         private JRadioButton getCatButton(JRadioButton button, int x, int y, int w,
    166                         int h, String tip) {
     144        private JRadioButton getCatButton(JRadioButton button, int x, int y, int w, int h, String tip) {
    167145                button.setBounds(new Rectangle(x, y, w, h));
    168146                button.setBorder(BorderFactory.createLineBorder(Color.magenta, 2));
     
    173151        }
    174152
    175         private JRadioButton getShapeButton(JRadioButton button, int x, int y, int w,
    176                         int h, String tip, Shp shp, Obj car, Obj isd) {
     153        private JRadioButton getShapeButton(JRadioButton button, int x, int y, int w, int h, String tip, Shp shp, Obj car, Obj isd) {
    177154                button.setBounds(new Rectangle(x, y, w, h));
    178155                button.setBorder(BorderFactory.createLineBorder(Color.magenta, 2));
  • applications/editors/josm/plugins/smed/plugs/oseam/src/oseam/panels/PanelLights.java

    r26110 r26173  
    2222        private OSeaMAction dlg;
    2323        private ButtonGroup catButtons = new ButtonGroup();
    24         public JRadioButton houseButton = new JRadioButton(new ImageIcon(getClass()
    25                         .getResource("/images/LighthouseButton.png")));
    26         public JRadioButton majorButton = new JRadioButton(new ImageIcon(getClass()
    27                         .getResource("/images/LightMajorButton.png")));
    28         public JRadioButton minorButton = new JRadioButton(new ImageIcon(getClass()
    29                         .getResource("/images/LightMinorButton.png")));
    30         public JRadioButton vesselButton = new JRadioButton(new ImageIcon(getClass()
    31                         .getResource("/images/LightVesselButton.png")));
    32         public JRadioButton stationButton = new JRadioButton(new ImageIcon(getClass()
    33                         .getResource("/images/StationButton.png")));
    34         private EnumMap<Cat, JRadioButton> categories = new EnumMap<Cat, JRadioButton>(
    35                         Cat.class);
     24        public JRadioButton houseButton = new JRadioButton(new ImageIcon(getClass().getResource("/images/LighthouseButton.png")));
     25        public JRadioButton majorButton = new JRadioButton(new ImageIcon(getClass().getResource("/images/LightMajorButton.png")));
     26        public JRadioButton minorButton = new JRadioButton(new ImageIcon(getClass().getResource("/images/LightMinorButton.png")));
     27        public JRadioButton vesselButton = new JRadioButton(new ImageIcon(getClass().getResource("/images/LightVesselButton.png")));
     28        public JRadioButton stationButton = new JRadioButton(new ImageIcon(getClass().getResource("/images/StationButton.png")));
     29        private EnumMap<Cat, JRadioButton> categories = new EnumMap<Cat, JRadioButton>(Cat.class);
    3630        private EnumMap<Cat, Obj> objects = new EnumMap<Cat, Obj>(Cat.class);
    3731        private ActionListener alCat = new ActionListener() {
     
    5448                dlg = dia;
    5549                this.setLayout(null);
    56                 this.add(
    57                                 getCatButton(houseButton, 0, 0, 34, 32, "Lighthouse", Cat.LIGHT_HOUSE,
    58                                                 Obj.LNDMRK), null);
    59                 this.add(
    60                                 getCatButton(majorButton, 0, 32, 34, 32, "MajorLight", Cat.LIGHT_MAJOR,
    61                                                 Obj.LITMAJ), null);
    62                 this.add(
    63                                 getCatButton(minorButton, 0, 64, 34, 32, "MinorLight", Cat.LIGHT_MINOR,
    64                                                 Obj.LITMIN), null);
    65                 this.add(
    66                                 getCatButton(vesselButton, 0, 96, 34, 32, "LightVessel",
    67                                                 Cat.LIGHT_VESSEL, Obj.LITVES), null);
    68                 this.add(
    69                                 getCatButton(stationButton, 0, 128, 34, 32, "SignalStation",
    70                                                 Cat.SIGNAL_STATION, Obj.SIGSTA), null);
     50                this.add(getCatButton(houseButton, 0, 0, 34, 32, "Lighthouse", Cat.LIGHT_HOUSE, Obj.LNDMRK), null);
     51                this.add(getCatButton(majorButton, 0, 32, 34, 32, "MajorLight", Cat.LIGHT_MAJOR, Obj.LITMAJ), null);
     52                this.add(getCatButton(minorButton, 0, 64, 34, 32, "MinorLight", Cat.LIGHT_MINOR, Obj.LITMIN), null);
     53                this.add(getCatButton(vesselButton, 0, 96, 34, 32, "LightVessel", Cat.LIGHT_VESSEL, Obj.LITVES), null);
     54                this.add(getCatButton(stationButton, 0, 128, 34, 32, "SignalStation", Cat.SIGNAL_STATION, Obj.SIGSTA), null);
    7155        }
    7256
     
    7559        }
    7660
    77         private JRadioButton getCatButton(JRadioButton button, int x, int y, int w,
    78                         int h, String tip, Cat cat, Obj obj) {
     61        private JRadioButton getCatButton(JRadioButton button, int x, int y, int w, int h, String tip, Cat cat, Obj obj) {
    7962                button.setBounds(new Rectangle(x, y, w, h));
    8063                button.setBorder(BorderFactory.createLineBorder(Color.magenta, 2));
  • applications/editors/josm/plugins/smed/plugs/oseam/src/oseam/panels/PanelLit.java

    r26128 r26173  
    9191                };
    9292                typeButtons = new ButtonGroup();
    93                 singleButton = new JRadioButton(new ImageIcon(getClass().getResource(
    94                                 "/images/SingleButton.png")));
     93                singleButton = new JRadioButton(new ImageIcon(getClass().getResource("/images/SingleButton.png")));
    9594                this.add(getTypeButton(singleButton, 280, 125, 34, 30, "Single"), null);
    96                 sectorButton = new JRadioButton(new ImageIcon(getClass().getResource(
    97                                 "/images/SectorButton.png")));
     95                sectorButton = new JRadioButton(new ImageIcon(getClass().getResource("/images/SectorButton.png")));
    9896                this.add(getTypeButton(sectorButton, 315, 125, 34, 30, "Sector"), null);
    9997
     
    116114                        }
    117115                };
    118                 periodLabel = new JLabel(Messages.getString("Period"),
    119                                 SwingConstants.CENTER);
     116                periodLabel = new JLabel(Messages.getString("Period"), SwingConstants.CENTER);
    120117                periodLabel.setBounds(new Rectangle(123, 40, 65, 20));
    121118                this.add(periodLabel, null);
     
    131128                        }
    132129                };
    133                 heightLabel = new JLabel(Messages.getString("Height"),
    134                                 SwingConstants.CENTER);
     130                heightLabel = new JLabel(Messages.getString("Height"), SwingConstants.CENTER);
    135131                heightLabel.setBounds(new Rectangle(123, 80, 65, 20));
    136132                this.add(heightLabel, null);
     
    160156                        }
    161157                };
    162                 sequenceLabel = new JLabel(Messages.getString("Sequence"),
    163                                 SwingConstants.CENTER);
     158                sequenceLabel = new JLabel(Messages.getString("Sequence"), SwingConstants.CENTER);
    164159                sequenceLabel.setBounds(new Rectangle(188, 120, 80, 20));
    165160                this.add(sequenceLabel, null);
     
    174169                        }
    175170                };
    176                 categoryLabel = new JLabel(Messages.getString("Category"),
    177                                 SwingConstants.CENTER);
     171                categoryLabel = new JLabel(Messages.getString("Category"), SwingConstants.CENTER);
    178172                categoryLabel.setBounds(new Rectangle(185, 0, 165, 20));
    179173                this.add(categoryLabel, null);
     
    189183                        }
    190184                };
    191                 visibilityLabel = new JLabel(Messages.getString("Visibility"),
    192                                 SwingConstants.CENTER);
     185                visibilityLabel = new JLabel(Messages.getString("Visibility"), SwingConstants.CENTER);
    193186                visibilityLabel.setBounds(new Rectangle(185, 40, 165, 20));
    194187                this.add(visibilityLabel, null);
     
    206199                        }
    207200                };
    208                 exhibitionLabel = new JLabel(Messages.getString("Exhibition"),
    209                                 SwingConstants.CENTER);
     201                exhibitionLabel = new JLabel(Messages.getString("Exhibition"), SwingConstants.CENTER);
    210202                exhibitionLabel.setBounds(new Rectangle(280, 80, 70, 20));
    211203                this.add(exhibitionLabel, null);
     
    224216                        }
    225217                };
    226                 orientationLabel = new JLabel(Messages.getString("Orientation"),
    227                                 SwingConstants.CENTER);
     218                orientationLabel = new JLabel(Messages.getString("Orientation"), SwingConstants.CENTER);
    228219                orientationLabel.setBounds(new Rectangle(188, 80, 80, 20));
    229220                this.add(orientationLabel, null);
     
    235226        }
    236227
    237         private JRadioButton getTypeButton(JRadioButton button, int x, int y, int w,
    238                         int h, String tip) {
     228        private JRadioButton getTypeButton(JRadioButton button, int x, int y, int w, int h, String tip) {
    239229                button.setBounds(new Rectangle(x, y, w, h));
    240230                button.setBorder(BorderFactory.createLineBorder(Color.magenta, 2));
  • applications/editors/josm/plugins/smed/plugs/oseam/src/oseam/panels/PanelMain.java

    r26110 r26173  
    3131        private JButton saveButton = null;
    3232        public ButtonGroup typeButtons = null;
    33         public JRadioButton chanButton = new JRadioButton(new ImageIcon(getClass()
    34                         .getResource("/images/ChanButton.png")));
    35         public JRadioButton hazButton = new JRadioButton(new ImageIcon(getClass()
    36                         .getResource("/images/HazButton.png")));
    37         public JRadioButton specButton = new JRadioButton(new ImageIcon(getClass()
    38                         .getResource("/images/SpecButton.png")));
    39         public JRadioButton lightsButton = new JRadioButton(new ImageIcon(getClass()
    40                         .getResource("/images/LightsButton.png")));
     33        public JRadioButton chanButton = new JRadioButton(new ImageIcon(getClass().getResource("/images/ChanButton.png")));
     34        public JRadioButton hazButton = new JRadioButton(new ImageIcon(getClass().getResource("/images/HazButton.png")));
     35        public JRadioButton specButton = new JRadioButton(new ImageIcon(getClass().getResource("/images/SpecButton.png")));
     36        public JRadioButton lightsButton = new JRadioButton(new ImageIcon(getClass().getResource("/images/LightsButton.png")));
    4137        private ActionListener alType = null;
    4238        private ButtonGroup miscButtons = null;
    43         public JRadioButton topButton = new JRadioButton(new ImageIcon(getClass()
    44                         .getResource("/images/TopButton.png")));
    45         public JRadioButton fogButton = new JRadioButton(new ImageIcon(getClass()
    46                         .getResource("/images/FogButton.png")));
    47         public JRadioButton radButton = new JRadioButton(new ImageIcon(getClass()
    48                         .getResource("/images/RadarButton.png")));
    49         public JRadioButton litButton = new JRadioButton(new ImageIcon(getClass()
    50                         .getResource("/images/LitButton.png")));
     39        public JRadioButton topButton = new JRadioButton(new ImageIcon(getClass().getResource("/images/TopButton.png")));
     40        public JRadioButton fogButton = new JRadioButton(new ImageIcon(getClass().getResource("/images/FogButton.png")));
     41        public JRadioButton radButton = new JRadioButton(new ImageIcon(getClass().getResource("/images/RadarButton.png")));
     42        public JRadioButton litButton = new JRadioButton(new ImageIcon(getClass().getResource("/images/LitButton.png")));
    5143        private ActionListener alMisc = null;
    5244        private ActionListener alName = null;
     
    6456                dlg = dia;
    6557                panelChan = new PanelChan(dlg);
    66                 panelChan.setBounds(new Rectangle(65, 0, 205, 160));
     58                panelChan.setBounds(new Rectangle(65, 0, 185, 160));
    6759                panelChan.setVisible(false);
    6860                panelHaz = new PanelHaz(dlg);
    69                 panelHaz.setBounds(new Rectangle(65, 0, 205, 160));
     61                panelHaz.setBounds(new Rectangle(65, 0, 185, 160));
    7062                panelHaz.setVisible(false);
    7163                panelSpec = new PanelSpec(dlg);
    72                 panelSpec.setBounds(new Rectangle(65, 0, 205, 160));
     64                panelSpec.setBounds(new Rectangle(65, 0, 185, 160));
    7365                panelSpec.setVisible(false);
    7466                panelLights = new PanelLights(dlg);
    75                 panelLights.setBounds(new Rectangle(65, 0, 205, 160));
     67                panelLights.setBounds(new Rectangle(65, 0, 185, 160));
    7668                panelLights.setVisible(false);
    7769                panelTop = new PanelTop(dlg);
     
    8981
    9082                shapeIcon = new JLabel();
    91                 shapeIcon.setBounds(new Rectangle(220, 0, 130, 185));
     83                shapeIcon.setBounds(new Rectangle(250, 0, 150, 185));
    9284                this.add(shapeIcon, null);
    9385                lightIcon = new JLabel();
    94                 lightIcon.setBounds(new Rectangle(220, 0, 130, 185));
     86                lightIcon.setBounds(new Rectangle(250, 0, 150, 185));
    9587                this.add(lightIcon, null);
    9688                topIcon = new JLabel();
    97                 topIcon.setBounds(new Rectangle(220, 0, 130, 185));
     89                topIcon.setBounds(new Rectangle(250, 0, 150, 185));
    9890                this.add(topIcon, null);
    9991                radarIcon = new JLabel();
    100                 radarIcon.setBounds(new Rectangle(220, 0, 130, 185));
     92                radarIcon.setBounds(new Rectangle(250, 0, 150, 185));
     93                radarIcon.setIcon(new ImageIcon(getClass().getResource("/images/Radar_Station.png")));
    10194                this.add(radarIcon, null);
    10295                fogIcon = new JLabel();
    103                 fogIcon.setBounds(new Rectangle(220, 0, 130, 185));
     96                fogIcon.setBounds(new Rectangle(250, 0, 150, 185));
    10497                this.add(fogIcon, null);
    10598
     
    275268                lightIcon.setIcon(null);
    276269                topIcon.setIcon(null);
    277                 radarIcon.setIcon(null);
     270                // radarIcon.setIcon(null);
     271                radarIcon.setIcon(new ImageIcon(getClass().getResource("/images/Radar_Station.png")));
    278272                fogIcon.setIcon(null);
    279273        }
    280274
    281         private JRadioButton getButton(JRadioButton button, int x, int y, int w,
    282                         int h, String tip) {
     275        private JRadioButton getButton(JRadioButton button, int x, int y, int w, int h, String tip) {
    283276                button.setBounds(new Rectangle(x, y, w, h));
    284277                button.setBorder(BorderFactory.createLineBorder(Color.magenta, 2));
  • applications/editors/josm/plugins/smed/plugs/oseam/src/oseam/panels/PanelPort.java

    r26110 r26173  
    2222        private OSeaMAction dlg;
    2323        private ButtonGroup regionButtons = new ButtonGroup();
    24         public JRadioButton regionAButton = new JRadioButton(new ImageIcon(getClass()
    25                         .getResource("/images/RegionAButton.png")));
    26         public JRadioButton regionBButton = new JRadioButton(new ImageIcon(getClass()
    27                         .getResource("/images/RegionBButton.png")));
     24        public JRadioButton regionAButton = new JRadioButton(new ImageIcon(getClass().getResource("/images/RegionAButton.png")));
     25        public JRadioButton regionBButton = new JRadioButton(new ImageIcon(getClass().getResource("/images/RegionBButton.png")));
     26        public JRadioButton regionCButton = new JRadioButton(new ImageIcon(getClass().getResource("/images/RegionCButton.png")));
    2827        private ActionListener alRegion = new ActionListener() {
    2928                public void actionPerformed(java.awt.event.ActionEvent e) {
    3029                        regionAButton.setBorderPainted(regionAButton.isSelected());
    3130                        regionBButton.setBorderPainted(regionBButton.isSelected());
     31                        regionCButton.setBorderPainted(regionCButton.isSelected());
    3232                        dlg.mark.paintSign();
    3333                }
    3434        };
    3535        private ButtonGroup shapeButtons = new ButtonGroup();
    36         public JRadioButton pillarButton = new JRadioButton(new ImageIcon(getClass()
    37                         .getResource("/images/PillarButton.png")));
    38         public JRadioButton sparButton = new JRadioButton(new ImageIcon(getClass()
    39                         .getResource("/images/SparButton.png")));
    40         public JRadioButton canButton = new JRadioButton(new ImageIcon(getClass()
    41                         .getResource("/images/CanButton.png")));
    42         public JRadioButton floatButton = new JRadioButton(new ImageIcon(getClass()
    43                         .getResource("/images/FloatButton.png")));
    44         public JRadioButton beaconButton = new JRadioButton(new ImageIcon(getClass()
    45                         .getResource("/images/BeaconButton.png")));
    46         public JRadioButton towerButton = new JRadioButton(new ImageIcon(getClass()
    47                         .getResource("/images/TowerButton.png")));
    48         public JRadioButton perchButton = new JRadioButton(new ImageIcon(getClass()
    49                         .getResource("/images/PerchPButton.png")));
    50         public EnumMap<Shp, JRadioButton> shapes = new EnumMap<Shp, JRadioButton>(
    51                         Shp.class);
     36        public JRadioButton pillarButton = new JRadioButton(new ImageIcon(getClass().getResource("/images/PillarButton.png")));
     37        public JRadioButton sparButton = new JRadioButton(new ImageIcon(getClass().getResource("/images/SparButton.png")));
     38        public JRadioButton canButton = new JRadioButton(new ImageIcon(getClass().getResource("/images/CanButton.png")));
     39        public JRadioButton sphereButton = new JRadioButton(new ImageIcon(getClass().getResource("/images/SphereButton.png")));
     40        public JRadioButton floatButton = new JRadioButton(new ImageIcon(getClass().getResource("/images/FloatButton.png")));
     41        public JRadioButton beaconButton = new JRadioButton(new ImageIcon(getClass().getResource("/images/BeaconButton.png")));
     42        public JRadioButton towerButton = new JRadioButton(new ImageIcon(getClass().getResource("/images/TowerButton.png")));
     43        public JRadioButton perchButton = new JRadioButton(new ImageIcon(getClass().getResource("/images/PerchPButton.png")));
     44        public EnumMap<Shp, JRadioButton> shapes = new EnumMap<Shp, JRadioButton>(Shp.class);
    5245        public EnumMap<Shp, Obj> objects = new EnumMap<Shp, Obj>(Shp.class);
    5346        private ActionListener alShape = new ActionListener() {
     
    7063                dlg = dia;
    7164                this.setLayout(null);
    72                 this.add(getRegionButton(regionAButton, 0, 2, 34, 30, "RegionA"), null);
    73                 this.add(getRegionButton(regionBButton, 0, 32, 34, 30, "RegionB"), null);
    74                 this.add(
    75                                 getShapeButton(pillarButton, 0, 64, 34, 32, "Pillar", Shp.PILLAR,
    76                                                 Obj.BOYLAT), null);
    77                 this.add(
    78                                 getShapeButton(sparButton, 0, 96, 34, 32, "Spar", Shp.SPAR, Obj.BOYLAT),
    79                                 null);
    80                 this.add(
    81                                 getShapeButton(canButton, 0, 128, 34, 32, "Can", Shp.CAN, Obj.BOYLAT),
    82                                 null);
    83                 this.add(
    84                                 getShapeButton(floatButton, 35, 0, 34, 32, "Float", Shp.FLOAT,
    85                                                 Obj.LITFLT), null);
    86                 this.add(
    87                                 getShapeButton(beaconButton, 35, 32, 34, 32, "Beacon", Shp.BEACON,
    88                                                 Obj.BCNLAT), null);
    89                 this.add(
    90                                 getShapeButton(towerButton, 35, 64, 34, 32, "Tower", Shp.TOWER,
    91                                                 Obj.BCNLAT), null);
    92                 this.add(
    93                                 getShapeButton(perchButton, 35, 96, 34, 32, "Perch", Shp.PERCH,
    94                                                 Obj.BCNLAT), null);
     65                this.add(getRegionButton(regionAButton, 70, 0, 34, 30, "RegionA"), null);
     66                this.add(getRegionButton(regionBButton, 70, 32, 34, 30, "RegionB"), null);
     67                this.add(getRegionButton(regionCButton, 70, 64, 34, 30, "RegionC"), null);
     68                this.add(getShapeButton(pillarButton, 0, 0, 34, 32, "Pillar", Shp.PILLAR, Obj.BOYLAT), null);
     69                this.add(getShapeButton(sparButton, 0, 32, 34, 32, "Spar", Shp.SPAR, Obj.BOYLAT), null);
     70                this.add(getShapeButton(canButton, 0, 64, 34, 32, "Can", Shp.CAN, Obj.BOYLAT), null);
     71                this.add(getShapeButton(sphereButton, 0, 96, 34, 32, "Sphere", Shp.SPHERE, Obj.LITFLT), null);
     72                this.add(getShapeButton(floatButton, 0, 128, 34, 32, "Float", Shp.FLOAT, Obj.LITFLT), null);
     73                this.add(getShapeButton(beaconButton, 35, 0, 34, 32, "Beacon", Shp.BEACON, Obj.BCNLAT), null);
     74                this.add(getShapeButton(towerButton, 35, 32, 34, 32, "Tower", Shp.TOWER, Obj.BCNLAT), null);
     75                this.add(getShapeButton(perchButton, 35, 64, 34, 32, "Perch", Shp.PERCH, Obj.BCNLAT), null);
    9576        }
    9677
     
    10081        }
    10182
    102         private JRadioButton getRegionButton(JRadioButton button, int x, int y,
    103                         int w, int h, String tip) {
     83        private JRadioButton getRegionButton(JRadioButton button, int x, int y, int w, int h, String tip) {
    10484                button.setBounds(new Rectangle(x, y, w, h));
    10585                button.setBorder(BorderFactory.createLineBorder(Color.magenta, 2));
     
    11090        }
    11191
    112         private JRadioButton getShapeButton(JRadioButton button, int x, int y, int w,
    113                         int h, String tip, Shp shp, Obj obj) {
     92        private JRadioButton getShapeButton(JRadioButton button, int x, int y, int w, int h, String tip, Shp shp, Obj obj) {
    11493                button.setBounds(new Rectangle(x, y, w, h));
    11594                button.setBorder(BorderFactory.createLineBorder(Color.magenta, 2));
  • applications/editors/josm/plugins/smed/plugs/oseam/src/oseam/panels/PanelSaw.java

    r26110 r26173  
    2222        private OSeaMAction dlg;
    2323        private ButtonGroup shapeButtons = new ButtonGroup();
    24         public JRadioButton pillarButton = new JRadioButton(new ImageIcon(getClass()
    25                         .getResource("/images/PillarButton.png")));
    26         public JRadioButton sparButton = new JRadioButton(new ImageIcon(getClass()
    27                         .getResource("/images/SparButton.png")));
    28         public JRadioButton sphereButton = new JRadioButton(new ImageIcon(getClass()
    29                         .getResource("/images/SphereButton.png")));
    30         public JRadioButton barrelButton = new JRadioButton(new ImageIcon(getClass()
    31                         .getResource("/images/BarrelButton.png")));
    32         public JRadioButton floatButton = new JRadioButton(new ImageIcon(getClass()
    33                         .getResource("/images/FloatButton.png")));
    34         public EnumMap<Shp, JRadioButton> shapes = new EnumMap<Shp, JRadioButton>(
    35                         Shp.class);
     24        public JRadioButton pillarButton = new JRadioButton(new ImageIcon(getClass().getResource("/images/PillarButton.png")));
     25        public JRadioButton sparButton = new JRadioButton(new ImageIcon(getClass().getResource("/images/SparButton.png")));
     26        public JRadioButton sphereButton = new JRadioButton(new ImageIcon(getClass().getResource("/images/SphereButton.png")));
     27        public JRadioButton barrelButton = new JRadioButton(new ImageIcon(getClass().getResource("/images/BarrelButton.png")));
     28        public JRadioButton floatButton = new JRadioButton(new ImageIcon(getClass().getResource("/images/FloatButton.png")));
     29        public EnumMap<Shp, JRadioButton> shapes = new EnumMap<Shp, JRadioButton>(Shp.class);
    3630        public EnumMap<Shp, Obj> objects = new EnumMap<Shp, Obj>(Shp.class);
    3731        private ActionListener alShape = new ActionListener() {
     
    5448                dlg = dia;
    5549                this.setLayout(null);
    56                 this.add(
    57                                 getShapeButton(pillarButton, 0, 0, 34, 32, "Pillar", Shp.PILLAR,
    58                                                 Obj.BOYSAW), null);
    59                 this.add(
    60                                 getShapeButton(sparButton, 0, 32, 34, 32, "Spar", Shp.SPAR, Obj.BOYSAW),
    61                                 null);
    62                 this.add(
    63                                 getShapeButton(sphereButton, 0, 64, 34, 32, "Sphere", Shp.SPHERE,
    64                                                 Obj.BOYSAW), null);
    65                 this.add(
    66                                 getShapeButton(barrelButton, 0, 96, 34, 32, "Barrel", Shp.BARREL,
    67                                                 Obj.BOYSAW), null);
    68                 this.add(
    69                                 getShapeButton(floatButton, 0, 128, 34, 32, "Float", Shp.FLOAT,
    70                                                 Obj.LITFLT), null);
     50                this.add(getShapeButton(pillarButton, 0, 0, 34, 32, "Pillar", Shp.PILLAR, Obj.BOYSAW), null);
     51                this.add(getShapeButton(sparButton, 0, 32, 34, 32, "Spar", Shp.SPAR, Obj.BOYSAW), null);
     52                this.add(getShapeButton(sphereButton, 0, 64, 34, 32, "Sphere", Shp.SPHERE, Obj.BOYSAW), null);
     53                this.add(getShapeButton(barrelButton, 0, 96, 34, 32, "Barrel", Shp.BARREL, Obj.BOYSAW), null);
     54                this.add(getShapeButton(floatButton, 0, 128, 34, 32, "Float", Shp.FLOAT, Obj.LITFLT), null);
    7155        }
    7256
     
    7660        }
    7761
    78         private JRadioButton getShapeButton(JRadioButton button, int x, int y, int w,
    79                         int h, String tip, Shp shp, Obj obj) {
     62        private JRadioButton getShapeButton(JRadioButton button, int x, int y, int w, int h, String tip, Shp shp, Obj obj) {
    8063                button.setBounds(new Rectangle(x, y, w, h));
    8164                button.setBorder(BorderFactory.createLineBorder(Color.magenta, 2));
  • applications/editors/josm/plugins/smed/plugs/oseam/src/oseam/panels/PanelSectors.java

    r26128 r26173  
    1414
    1515public class PanelSectors extends JFrame {
    16        
     16
    1717        public JPanel panel;
    1818        public JButton minusButton;
     
    2323        private ActionListener alMinusButton;
    2424        private ActionListener alPlusButton;
    25        
     25
    2626        public PanelSectors(Light lit) {
    2727                super("Sector Table");
     
    3636                panel.setLayout(null);
    3737                panel.add(tablePane);
    38                
     38
    3939                alMinusButton = new ActionListener() {
    4040                        public void actionPerformed(java.awt.event.ActionEvent e) {
     
    4646                minusButton.addActionListener(alMinusButton);
    4747                panel.add(minusButton);
    48                
     48
    4949                alPlusButton = new ActionListener() {
    5050                        public void actionPerformed(java.awt.event.ActionEvent e) {
     
    5757                panel.add(plusButton);
    5858        }
    59        
     59
    6060        public int getSectorCount() {
    6161                return light.getRowCount();
    6262        }
    63        
     63
    6464        public void addSector(int idx) {
    6565                light.addSector(idx);
     
    7272                light.fireTableRowsInserted(idx, idx);
    7373        }
    74        
     74
    7575        public void deleteSector(int idx) {
    7676                light.deleteSector(idx);
     
    8383                light.fireTableRowsDeleted(idx, idx);
    8484        }
    85        
     85
    8686}
  • applications/editors/josm/plugins/smed/plugs/oseam/src/oseam/panels/PanelSpec.java

    r26110 r26173  
    2323        private OSeaMAction dlg;
    2424        private ButtonGroup shapeButtons = new ButtonGroup();
    25         public JRadioButton pillarButton = new JRadioButton(new ImageIcon(getClass()
    26                         .getResource("/images/PillarButton.png")));
    27         public JRadioButton sparButton = new JRadioButton(new ImageIcon(getClass()
    28                         .getResource("/images/SparButton.png")));
    29         public JRadioButton canButton = new JRadioButton(new ImageIcon(getClass()
    30                         .getResource("/images/CanButton.png")));
    31         public JRadioButton coneButton = new JRadioButton(new ImageIcon(getClass()
    32                         .getResource("/images/ConeButton.png")));
    33         public JRadioButton sphereButton = new JRadioButton(new ImageIcon(getClass()
    34                         .getResource("/images/SphereButton.png")));
    35         public JRadioButton barrelButton = new JRadioButton(new ImageIcon(getClass()
    36                         .getResource("/images/BarrelButton.png")));
    37         public JRadioButton superButton = new JRadioButton(new ImageIcon(getClass()
    38                         .getResource("/images/SuperButton.png")));
    39         public JRadioButton floatButton = new JRadioButton(new ImageIcon(getClass()
    40                         .getResource("/images/FloatButton.png")));
    41         public JRadioButton beaconButton = new JRadioButton(new ImageIcon(getClass()
    42                         .getResource("/images/BeaconButton.png")));
    43         public JRadioButton towerButton = new JRadioButton(new ImageIcon(getClass()
    44                         .getResource("/images/TowerButton.png")));
    45         public EnumMap<Shp, JRadioButton> shapes = new EnumMap<Shp, JRadioButton>(
    46                         Shp.class);
     25        public JRadioButton pillarButton = new JRadioButton(new ImageIcon(getClass().getResource("/images/PillarButton.png")));
     26        public JRadioButton sparButton = new JRadioButton(new ImageIcon(getClass().getResource("/images/SparButton.png")));
     27        public JRadioButton canButton = new JRadioButton(new ImageIcon(getClass().getResource("/images/CanButton.png")));
     28        public JRadioButton coneButton = new JRadioButton(new ImageIcon(getClass().getResource("/images/ConeButton.png")));
     29        public JRadioButton sphereButton = new JRadioButton(new ImageIcon(getClass().getResource("/images/SphereButton.png")));
     30        public JRadioButton barrelButton = new JRadioButton(new ImageIcon(getClass().getResource("/images/BarrelButton.png")));
     31        public JRadioButton superButton = new JRadioButton(new ImageIcon(getClass().getResource("/images/SuperButton.png")));
     32        public JRadioButton floatButton = new JRadioButton(new ImageIcon(getClass().getResource("/images/FloatButton.png")));
     33        public JRadioButton beaconButton = new JRadioButton(new ImageIcon(getClass().getResource("/images/BeaconButton.png")));
     34        public JRadioButton towerButton = new JRadioButton(new ImageIcon(getClass().getResource("/images/TowerButton.png")));
     35        public EnumMap<Shp, JRadioButton> shapes = new EnumMap<Shp, JRadioButton>(Shp.class);
    4736        public EnumMap<Shp, Obj> objects = new EnumMap<Shp, Obj>(Shp.class);
    4837        public PanelCol panelCol = null;
     
    7059                this.setLayout(null);
    7160                this.add(panelCol, null);
    72                 this.add(
    73                                 getShapeButton(pillarButton, 55, 0, 34, 32, "Pillar", Shp.PILLAR,
    74                                                 Obj.BOYSPP), null);
    75                 this.add(
    76                                 getShapeButton(sparButton, 55, 32, 34, 32, "Spar", Shp.SPAR, Obj.BOYSPP),
    77                                 null);
    78                 this.add(
    79                                 getShapeButton(canButton, 55, 64, 34, 32, "Can", Shp.CAN, Obj.BOYSPP),
    80                                 null);
    81                 this.add(
    82                                 getShapeButton(coneButton, 55, 96, 34, 32, "Cone", Shp.CONE, Obj.BOYSPP),
    83                                 null);
    84                 this.add(
    85                                 getShapeButton(sphereButton, 55, 128, 34, 32, "Sphere", Shp.SPHERE,
    86                                                 Obj.BOYSPP), null);
    87                 this.add(
    88                                 getShapeButton(barrelButton, 90, 0, 34, 32, "Barrel", Shp.BARREL,
    89                                                 Obj.BOYSPP), null);
    90                 this.add(
    91                                 getShapeButton(superButton, 90, 32, 34, 32, "Super", Shp.SUPER,
    92                                                 Obj.BOYSPP), null);
    93                 this.add(
    94                                 getShapeButton(floatButton, 90, 64, 34, 32, "Float", Shp.FLOAT,
    95                                                 Obj.LITFLT), null);
    96                 this.add(
    97                                 getShapeButton(beaconButton, 90, 96, 34, 32, "Beacon", Shp.BEACON,
    98                                                 Obj.BCNSPP), null);
    99                 this.add(
    100                                 getShapeButton(towerButton, 90, 128, 34, 32, "Tower", Shp.TOWER,
    101                                                 Obj.BCNSPP), null);
     61                this.add(getShapeButton(pillarButton, 55, 0, 34, 32, "Pillar", Shp.PILLAR, Obj.BOYSPP), null);
     62                this.add(getShapeButton(sparButton, 55, 32, 34, 32, "Spar", Shp.SPAR, Obj.BOYSPP), null);
     63                this.add(getShapeButton(canButton, 55, 64, 34, 32, "Can", Shp.CAN, Obj.BOYSPP), null);
     64                this.add(getShapeButton(coneButton, 55, 96, 34, 32, "Cone", Shp.CONE, Obj.BOYSPP), null);
     65                this.add(getShapeButton(sphereButton, 55, 128, 34, 32, "Sphere", Shp.SPHERE, Obj.BOYSPP), null);
     66                this.add(getShapeButton(barrelButton, 90, 0, 34, 32, "Barrel", Shp.BARREL, Obj.BOYSPP), null);
     67                this.add(getShapeButton(superButton, 90, 32, 34, 32, "Super", Shp.SUPER, Obj.BOYSPP), null);
     68                this.add(getShapeButton(floatButton, 90, 64, 34, 32, "Float", Shp.FLOAT, Obj.LITFLT), null);
     69                this.add(getShapeButton(beaconButton, 90, 96, 34, 32, "Beacon", Shp.BEACON, Obj.BCNSPP), null);
     70                this.add(getShapeButton(towerButton, 90, 128, 34, 32, "Tower", Shp.TOWER, Obj.BCNSPP), null);
    10271        }
    10372
     
    10675        }
    10776
    108         private JRadioButton getShapeButton(JRadioButton button, int x, int y, int w,
    109                         int h, String tip, Shp shp, Obj obj) {
     77        private JRadioButton getShapeButton(JRadioButton button, int x, int y, int w, int h, String tip, Shp shp, Obj obj) {
    11078                button.setBounds(new Rectangle(x, y, w, h));
    11179                button.setBorder(BorderFactory.createLineBorder(Color.magenta, 2));
  • applications/editors/josm/plugins/smed/plugs/oseam/src/oseam/panels/PanelStbd.java

    r26110 r26173  
    2222        private OSeaMAction dlg;
    2323        private ButtonGroup regionButtons = new ButtonGroup();
    24         public JRadioButton regionAButton = new JRadioButton(new ImageIcon(getClass()
    25                         .getResource("/images/RegionAButton.png")));
    26         public JRadioButton regionBButton = new JRadioButton(new ImageIcon(getClass()
    27                         .getResource("/images/RegionBButton.png")));
     24        public JRadioButton regionAButton = new JRadioButton(new ImageIcon(getClass().getResource("/images/RegionAButton.png")));
     25        public JRadioButton regionBButton = new JRadioButton(new ImageIcon(getClass().getResource("/images/RegionBButton.png")));
     26        public JRadioButton regionCButton = new JRadioButton(new ImageIcon(getClass().getResource("/images/RegionCButton.png")));
    2827        private ActionListener alRegion = new ActionListener() {
    2928                public void actionPerformed(java.awt.event.ActionEvent e) {
    3029                        regionAButton.setBorderPainted(regionAButton.isSelected());
    3130                        regionBButton.setBorderPainted(regionBButton.isSelected());
     31                        regionCButton.setBorderPainted(regionCButton.isSelected());
    3232                        dlg.mark.paintSign();
    3333                }
    3434        };
    3535        private ButtonGroup shapeButtons = new ButtonGroup();
    36         public JRadioButton pillarButton = new JRadioButton(new ImageIcon(getClass()
    37                         .getResource("/images/PillarButton.png")));
    38         public JRadioButton sparButton = new JRadioButton(new ImageIcon(getClass()
    39                         .getResource("/images/SparButton.png")));
    40         public JRadioButton coneButton = new JRadioButton(new ImageIcon(getClass()
    41                         .getResource("/images/ConeButton.png")));
    42         public JRadioButton floatButton = new JRadioButton(new ImageIcon(getClass()
    43                         .getResource("/images/FloatButton.png")));
    44         public JRadioButton beaconButton = new JRadioButton(new ImageIcon(getClass()
    45                         .getResource("/images/BeaconButton.png")));
    46         public JRadioButton towerButton = new JRadioButton(new ImageIcon(getClass()
    47                         .getResource("/images/TowerButton.png")));
    48         public JRadioButton perchButton = new JRadioButton(new ImageIcon(getClass()
    49                         .getResource("/images/PerchSButton.png")));
    50         public EnumMap<Shp, JRadioButton> shapes = new EnumMap<Shp, JRadioButton>(
    51                         Shp.class);
     36        public JRadioButton pillarButton = new JRadioButton(new ImageIcon(getClass().getResource("/images/PillarButton.png")));
     37        public JRadioButton sparButton = new JRadioButton(new ImageIcon(getClass().getResource("/images/SparButton.png")));
     38        public JRadioButton coneButton = new JRadioButton(new ImageIcon(getClass().getResource("/images/ConeButton.png")));
     39        public JRadioButton sphereButton = new JRadioButton(new ImageIcon(getClass().getResource("/images/SphereButton.png")));
     40        public JRadioButton floatButton = new JRadioButton(new ImageIcon(getClass().getResource("/images/FloatButton.png")));
     41        public JRadioButton beaconButton = new JRadioButton(new ImageIcon(getClass().getResource("/images/BeaconButton.png")));
     42        public JRadioButton towerButton = new JRadioButton(new ImageIcon(getClass().getResource("/images/TowerButton.png")));
     43        public JRadioButton perchButton = new JRadioButton(new ImageIcon(getClass().getResource("/images/PerchSButton.png")));
     44        public EnumMap<Shp, JRadioButton> shapes = new EnumMap<Shp, JRadioButton>(Shp.class);
    5245        public EnumMap<Shp, Obj> objects = new EnumMap<Shp, Obj>(Shp.class);
    5346        private ActionListener alShape = new ActionListener() {
     
    7063                dlg = dia;
    7164                this.setLayout(null);
    72                 this.add(getRegionButton(regionAButton, 0, 2, 34, 30, "RegionA"), null);
    73                 this.add(getRegionButton(regionBButton, 0, 32, 34, 30, "RegionB"), null);
    74                 this.add(
    75                                 getShapeButton(pillarButton, 0, 64, 34, 32, "Pillar", Shp.PILLAR,
    76                                                 Obj.BOYLAT), null);
    77                 this.add(
    78                                 getShapeButton(sparButton, 0, 96, 34, 32, "Spar", Shp.SPAR, Obj.BOYLAT),
    79                                 null);
    80                 this.add(
    81                                 getShapeButton(coneButton, 0, 128, 34, 32, "Cone", Shp.CONE, Obj.BOYLAT),
    82                                 null);
    83                 this.add(
    84                                 getShapeButton(floatButton, 35, 0, 34, 32, "Float", Shp.FLOAT,
    85                                                 Obj.LITFLT), null);
    86                 this.add(
    87                                 getShapeButton(beaconButton, 35, 32, 34, 32, "Beacon", Shp.BEACON,
    88                                                 Obj.BCNLAT), null);
    89                 this.add(
    90                                 getShapeButton(towerButton, 35, 64, 34, 32, "Tower", Shp.TOWER,
    91                                                 Obj.BCNLAT), null);
    92                 this.add(
    93                                 getShapeButton(perchButton, 35, 96, 34, 32, "Perch", Shp.PERCH,
    94                                                 Obj.BCNLAT), null);
     65                this.add(getRegionButton(regionAButton, 70, 0, 34, 30, "RegionA"), null);
     66                this.add(getRegionButton(regionBButton, 70, 32, 34, 30, "RegionB"), null);
     67                this.add(getRegionButton(regionCButton, 70, 64, 34, 30, "RegionC"), null);
     68                this.add(getShapeButton(pillarButton, 0, 0, 34, 32, "Pillar", Shp.PILLAR, Obj.BOYLAT), null);
     69                this.add(getShapeButton(sparButton, 0, 32, 34, 32, "Spar", Shp.SPAR, Obj.BOYLAT), null);
     70                this.add(getShapeButton(coneButton, 0, 64, 34, 32, "Cone", Shp.CONE, Obj.BOYLAT), null);
     71                this.add(getShapeButton(sphereButton, 0, 96, 34, 32, "Sphere", Shp.SPHERE, Obj.LITFLT), null);
     72                this.add(getShapeButton(floatButton, 0, 128, 34, 32, "Float", Shp.FLOAT, Obj.LITFLT), null);
     73                this.add(getShapeButton(beaconButton, 35, 0, 34, 32, "Beacon", Shp.BEACON, Obj.BCNLAT), null);
     74                this.add(getShapeButton(towerButton, 35, 32, 34, 32, "Tower", Shp.TOWER, Obj.BCNLAT), null);
     75                this.add(getShapeButton(perchButton, 35, 64, 34, 32, "Perch", Shp.PERCH, Obj.BCNLAT), null);
    9576        }
    9677
     
    10081        }
    10182
    102         private JRadioButton getRegionButton(JRadioButton button, int x, int y,
    103                         int w, int h, String tip) {
     83        private JRadioButton getRegionButton(JRadioButton button, int x, int y, int w, int h, String tip) {
    10484                button.setBounds(new Rectangle(x, y, w, h));
    10585                button.setBorder(BorderFactory.createLineBorder(Color.magenta, 2));
     
    11090        }
    11191
    112         private JRadioButton getShapeButton(JRadioButton button, int x, int y, int w,
    113                         int h, String tip, Shp shp, Obj obj) {
     92        private JRadioButton getShapeButton(JRadioButton button, int x, int y, int w, int h, String tip, Shp shp, Obj obj) {
    11493                button.setBounds(new Rectangle(x, y, w, h));
    11594                button.setBorder(BorderFactory.createLineBorder(Color.magenta, 2));
  • applications/editors/josm/plugins/smed/plugs/oseam/src/oseam/panels/PanelTop.java

    r26110 r26173  
    2323        public PanelCol panelCol = null;
    2424        private ButtonGroup topButtons = new ButtonGroup();
    25         public JRadioButton noTopButton = new JRadioButton(new ImageIcon(getClass()
    26                         .getResource("/images/NoTopButton.png")));
    27         public JRadioButton canTopButton = new JRadioButton(new ImageIcon(getClass()
    28                         .getResource("/images/CanTopButton.png")));
    29         public JRadioButton coneTopButton = new JRadioButton(new ImageIcon(getClass()
    30                         .getResource("/images/ConeTopButton.png")));
    31         public JRadioButton sphereTopButton = new JRadioButton(new ImageIcon(
    32                         getClass().getResource("/images/SphereTopButton.png")));
    33         public JRadioButton XTopButton = new JRadioButton(new ImageIcon(getClass()
    34                         .getResource("/images/XTopButton.png")));
    35         public JRadioButton northTopButton = new JRadioButton(new ImageIcon(
    36                         getClass().getResource("/images/NorthTopButton.png")));
    37         public JRadioButton southTopButton = new JRadioButton(new ImageIcon(
    38                         getClass().getResource("/images/SouthTopButton.png")));
    39         public JRadioButton eastTopButton = new JRadioButton(new ImageIcon(getClass()
    40                         .getResource("/images/EastTopButton.png")));
    41         public JRadioButton westTopButton = new JRadioButton(new ImageIcon(getClass()
    42                         .getResource("/images/WestTopButton.png")));
    43         public JRadioButton spheres2TopButton = new JRadioButton(new ImageIcon(
    44                         getClass().getResource("/images/Spheres2TopButton.png")));
    45         public JRadioButton boardDayButton = new JRadioButton(new ImageIcon(
    46                         getClass().getResource("/images/BoardDayButton.png")));
    47         public JRadioButton diamondDayButton = new JRadioButton(new ImageIcon(
    48                         getClass().getResource("/images/DiamondDayButton.png")));
    49         public JRadioButton triangleDayButton = new JRadioButton(new ImageIcon(
    50                         getClass().getResource("/images/TriangleDayButton.png")));
    51         public JRadioButton triangleInvDayButton = new JRadioButton(new ImageIcon(
    52                         getClass().getResource("/images/TriangleInvDayButton.png")));
    53         public JRadioButton squareDayButton = new JRadioButton(new ImageIcon(
    54                         getClass().getResource("/images/SquareDayButton.png")));
    55         public JRadioButton circleDayButton = new JRadioButton(new ImageIcon(
    56                         getClass().getResource("/images/CircleDayButton.png")));
    57         public JRadioButton mooringTopButton = new JRadioButton(new ImageIcon(
    58                         getClass().getResource("/images/MooringTopButton.png")));
    59         private EnumMap<Top, JRadioButton> tops = new EnumMap<Top, JRadioButton>(
    60                         Top.class);
    61         private EnumMap<Day, JRadioButton> days = new EnumMap<Day, JRadioButton>(
    62                         Day.class);
     25        public JRadioButton noTopButton = new JRadioButton(new ImageIcon(getClass().getResource("/images/NoTopButton.png")));
     26        public JRadioButton canTopButton = new JRadioButton(new ImageIcon(getClass().getResource("/images/CanTopButton.png")));
     27        public JRadioButton coneTopButton = new JRadioButton(new ImageIcon(getClass().getResource("/images/ConeTopButton.png")));
     28        public JRadioButton sphereTopButton = new JRadioButton(new ImageIcon(getClass().getResource("/images/SphereTopButton.png")));
     29        public JRadioButton XTopButton = new JRadioButton(new ImageIcon(getClass().getResource("/images/XTopButton.png")));
     30        public JRadioButton northTopButton = new JRadioButton(new ImageIcon(getClass().getResource("/images/NorthTopButton.png")));
     31        public JRadioButton southTopButton = new JRadioButton(new ImageIcon(getClass().getResource("/images/SouthTopButton.png")));
     32        public JRadioButton eastTopButton = new JRadioButton(new ImageIcon(getClass().getResource("/images/EastTopButton.png")));
     33        public JRadioButton westTopButton = new JRadioButton(new ImageIcon(getClass().getResource("/images/WestTopButton.png")));
     34        public JRadioButton spheres2TopButton = new JRadioButton(new ImageIcon(getClass().getResource("/images/Spheres2TopButton.png")));
     35        public JRadioButton boardDayButton = new JRadioButton(new ImageIcon(getClass().getResource("/images/BoardDayButton.png")));
     36        public JRadioButton diamondDayButton = new JRadioButton(new ImageIcon(getClass().getResource("/images/DiamondDayButton.png")));
     37        public JRadioButton triangleDayButton = new JRadioButton(new ImageIcon(getClass().getResource("/images/TriangleDayButton.png")));
     38        public JRadioButton triangleInvDayButton = new JRadioButton(new ImageIcon(getClass().getResource(
     39                        "/images/TriangleInvDayButton.png")));
     40        public JRadioButton squareDayButton = new JRadioButton(new ImageIcon(getClass().getResource("/images/SquareDayButton.png")));
     41        public JRadioButton circleDayButton = new JRadioButton(new ImageIcon(getClass().getResource("/images/CircleDayButton.png")));
     42        public JRadioButton mooringTopButton = new JRadioButton(new ImageIcon(getClass().getResource("/images/MooringTopButton.png")));
     43        private EnumMap<Top, JRadioButton> tops = new EnumMap<Top, JRadioButton>(Top.class);
     44        private EnumMap<Day, JRadioButton> days = new EnumMap<Day, JRadioButton>(Day.class);
    6345        private ActionListener alTop = new ActionListener() {
    6446                public void actionPerformed(java.awt.event.ActionEvent e) {
     
    9375                this.add(getTopButton(noTopButton, 40, 5, 27, 27, "NoTop", Top.NONE), null);
    9476                this.add(getTopButton(canTopButton, 70, 5, 27, 27, "CanTop", Top.CAN), null);
    95                 this.add(getTopButton(coneTopButton, 100, 5, 27, 27, "ConeTop", Top.CONE),
    96                                 null);
    97                 this.add(
    98                                 getTopButton(sphereTopButton, 130, 5, 27, 27, "SphereTop", Top.SPHERE),
    99                                 null);
    100                 this.add(getTopButton(XTopButton, 160, 5, 27, 27, "XTop", Top.X_SHAPE),
    101                                 null);
    102                 this.add(
    103                                 getTopButton(northTopButton, 40, 35, 27, 27, "NorthTop", Top.NORTH),
    104                                 null);
    105                 this.add(
    106                                 getTopButton(southTopButton, 70, 35, 27, 27, "SouthTop", Top.SOUTH),
    107                                 null);
    108                 this.add(getTopButton(eastTopButton, 100, 35, 27, 27, "EastTop", Top.EAST),
    109                                 null);
    110                 this.add(getTopButton(westTopButton, 130, 35, 27, 27, "WestTop", Top.WEST),
    111                                 null);
    112                 this.add(
    113                                 getTopButton(spheres2TopButton, 160, 35, 27, 27, "Spheres2Top",
    114                                                 Top.SPHERES2), null);
    115                 this.add(
    116                                 getDayButton(boardDayButton, 40, 65, 27, 27, "BoardDay", Day.BOARD),
    117                                 null);
    118                 this.add(
    119                                 getDayButton(diamondDayButton, 70, 65, 27, 27, "DiamondDay",
    120                                                 Day.DIAMOND), null);
    121                 this.add(
    122                                 getDayButton(triangleDayButton, 100, 65, 27, 27, "TriangleDay",
    123                                                 Day.TRIANGLE), null);
    124                 this.add(
    125                                 getDayButton(triangleInvDayButton, 130, 65, 27, 27, "TriangleInvDay",
    126                                                 Day.TRIANGLE_INV), null);
    127                 this.add(
    128                                 getDayButton(squareDayButton, 160, 65, 27, 27, "SquareDay", Day.SQUARE),
    129                                 null);
    130                 this.add(
    131                                 getDayButton(circleDayButton, 160, 95, 27, 27, "CircleDay", Day.CIRCLE),
    132                                 null);
    133                 this.add(getMoorButton(mooringTopButton, 40, 95, 27, 27, "MooringTop"),
    134                                 null);
     77                this.add(getTopButton(coneTopButton, 100, 5, 27, 27, "ConeTop", Top.CONE), null);
     78                this.add(getTopButton(sphereTopButton, 130, 5, 27, 27, "SphereTop", Top.SPHERE), null);
     79                this.add(getTopButton(XTopButton, 160, 5, 27, 27, "XTop", Top.X_SHAPE), null);
     80                this.add(getTopButton(northTopButton, 40, 35, 27, 27, "NorthTop", Top.NORTH), null);
     81                this.add(getTopButton(southTopButton, 70, 35, 27, 27, "SouthTop", Top.SOUTH), null);
     82                this.add(getTopButton(eastTopButton, 100, 35, 27, 27, "EastTop", Top.EAST), null);
     83                this.add(getTopButton(westTopButton, 130, 35, 27, 27, "WestTop", Top.WEST), null);
     84                this.add(getTopButton(spheres2TopButton, 160, 35, 27, 27, "Spheres2Top", Top.SPHERES2), null);
     85                this.add(getDayButton(boardDayButton, 40, 65, 27, 27, "BoardDay", Day.BOARD), null);
     86                this.add(getDayButton(diamondDayButton, 70, 65, 27, 27, "DiamondDay", Day.DIAMOND), null);
     87                this.add(getDayButton(triangleDayButton, 100, 65, 27, 27, "TriangleDay", Day.TRIANGLE), null);
     88                this.add(getDayButton(triangleInvDayButton, 130, 65, 27, 27, "TriangleInvDay", Day.TRIANGLE_INV), null);
     89                this.add(getDayButton(squareDayButton, 160, 65, 27, 27, "SquareDay", Day.SQUARE), null);
     90                this.add(getDayButton(circleDayButton, 160, 95, 27, 27, "CircleDay", Day.CIRCLE), null);
     91                this.add(getMoorButton(mooringTopButton, 40, 95, 27, 27, "MooringTop"), null);
    13592        }
    13693
     
    147104        }
    148105
    149         private JRadioButton getTopButton(JRadioButton button, int x, int y, int w,
    150                         int h, String tip, Top top) {
     106        private JRadioButton getTopButton(JRadioButton button, int x, int y, int w, int h, String tip, Top top) {
    151107                button.setBounds(new Rectangle(x, y, w, h));
    152108                button.setBorder(BorderFactory.createLineBorder(Color.magenta, 2));
     
    158114        }
    159115
    160         private JRadioButton getDayButton(JRadioButton button, int x, int y, int w,
    161                         int h, String tip, Day day) {
     116        private JRadioButton getDayButton(JRadioButton button, int x, int y, int w, int h, String tip, Day day) {
    162117                button.setBounds(new Rectangle(x, y, w, h));
    163118                button.setBorder(BorderFactory.createLineBorder(Color.magenta, 2));
     
    169124        }
    170125
    171         private JRadioButton getMoorButton(JRadioButton button, int x, int y, int w,
    172                         int h, String tip) {
     126        private JRadioButton getMoorButton(JRadioButton button, int x, int y, int w, int h, String tip) {
    173127                button.setBounds(new Rectangle(x, y, w, h));
    174128                button.setBorder(BorderFactory.createLineBorder(Color.magenta, 2));
Note: See TracChangeset for help on using the changeset viewer.