Changeset 26173 in osm for applications/editors/josm/plugins
- Timestamp:
- 2011-06-25T17:57:10+02:00 (13 years ago)
- 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 80 80 return panelMain; 81 81 } 82 82 83 83 } -
applications/editors/josm/plugins/smed/plugs/oseam/src/oseam/msg/messages.properties
r26099 r26173 40 40 RegionA=IALA Region A 41 41 RegionB=IALA Region B 42 RegionC=CEVNI 42 43 43 44 NoTop=No topmark -
applications/editors/josm/plugins/smed/plugs/oseam/src/oseam/msg/messages_de.properties
r26099 r26173 40 40 RegionA=IALA Region A 41 41 RegionB=IALA Region B 42 RegionC=CEVNI 42 43 43 44 NoTop=No topmark -
applications/editors/josm/plugins/smed/plugs/oseam/src/oseam/msg/messages_en.properties
r26099 r26173 40 40 RegionA=IALA Region A 41 41 RegionB=IALA Region B 42 RegionC=CEVNI 42 43 43 44 NoTop=No topmark -
applications/editors/josm/plugins/smed/plugs/oseam/src/oseam/panels/PanelChan.java
r26110 r26173 31 31 public PanelSaw panelSaw = null; 32 32 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"))); 43 38 private ActionListener alCat = new ActionListener() { 44 39 public void actionPerformed(java.awt.event.ActionEvent e) { … … 198 193 dlg = dia; 199 194 panelPort = new PanelPort(dlg); 200 panelPort.setBounds(new Rectangle(55, 0, 225, 160));195 panelPort.setBounds(new Rectangle(55, 0, 180, 160)); 201 196 panelPort.setVisible(false); 202 197 panelStbd = new PanelStbd(dlg); 203 panelStbd.setBounds(new Rectangle(55, 0, 225, 160));198 panelStbd.setBounds(new Rectangle(55, 0, 180, 160)); 204 199 panelStbd.setVisible(false); 205 200 panelSaw = new PanelSaw(dlg); 206 panelSaw.setBounds(new Rectangle(55, 0, 225, 160));201 panelSaw.setBounds(new Rectangle(55, 0, 180, 160)); 207 202 panelSaw.setVisible(false); 208 203 this.setLayout(null); … … 225 220 } 226 221 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) { 229 223 button.setBounds(new Rectangle(x, y, w, h)); 230 224 button.setBorder(BorderFactory.createLineBorder(Color.magenta, 2)); -
applications/editors/josm/plugins/smed/plugs/oseam/src/oseam/panels/PanelChr.java
r26124 r26173 30 30 public JLabel charLabel = new JLabel(); 31 31 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); 65 50 private ActionListener alCharButton = new ActionListener() { 66 51 public void actionPerformed(java.awt.event.ActionEvent e) { … … 120 105 dlg = dia; 121 106 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); 164 123 charLabel.setBounds(new Rectangle(0, 113, 88, 20)); 165 124 charLabel.setHorizontalAlignment(SwingConstants.CENTER); … … 186 145 } 187 146 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) { 190 148 button.setBounds(new Rectangle(x, y, w, h)); 191 149 button.setBorder(BorderFactory.createLineBorder(Color.magenta, 2)); -
applications/editors/josm/plugins/smed/plugs/oseam/src/oseam/panels/PanelCol.java
r26110 r26173 25 25 private Ent ent; 26 26 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); 49 38 private ActionListener alColour = new ActionListener() { 50 39 public void actionPerformed(java.awt.event.ActionEvent e) { … … 65 54 ent = entity; 66 55 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); 97 66 } 98 67 … … 108 77 } 109 78 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) { 112 80 button.setBounds(new Rectangle(x, y, w, h)); 113 81 button.setBorder(BorderFactory.createLineBorder(Color.magenta, 2)); -
applications/editors/josm/plugins/smed/plugs/oseam/src/oseam/panels/PanelHaz.java
r26110 r26173 25 25 private OSeaMAction dlg; 26 26 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"))); 37 32 private ActionListener alCat = new ActionListener() { 38 33 public void actionPerformed(java.awt.event.ActionEvent e) { … … 97 92 98 93 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); 111 100 public EnumMap<Shp, Obj> carObjects = new EnumMap<Shp, Obj>(Shp.class); 112 101 public EnumMap<Shp, Obj> isdObjects = new EnumMap<Shp, Obj>(Shp.class); … … 139 128 this.add(getCatButton(isolButton, 0, 128, 52, 32, "Isol"), null); 140 129 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); 156 135 } 157 136 … … 163 142 } 164 143 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) { 167 145 button.setBounds(new Rectangle(x, y, w, h)); 168 146 button.setBorder(BorderFactory.createLineBorder(Color.magenta, 2)); … … 173 151 } 174 152 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) { 177 154 button.setBounds(new Rectangle(x, y, w, h)); 178 155 button.setBorder(BorderFactory.createLineBorder(Color.magenta, 2)); -
applications/editors/josm/plugins/smed/plugs/oseam/src/oseam/panels/PanelLights.java
r26110 r26173 22 22 private OSeaMAction dlg; 23 23 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); 36 30 private EnumMap<Cat, Obj> objects = new EnumMap<Cat, Obj>(Cat.class); 37 31 private ActionListener alCat = new ActionListener() { … … 54 48 dlg = dia; 55 49 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); 71 55 } 72 56 … … 75 59 } 76 60 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) { 79 62 button.setBounds(new Rectangle(x, y, w, h)); 80 63 button.setBorder(BorderFactory.createLineBorder(Color.magenta, 2)); -
applications/editors/josm/plugins/smed/plugs/oseam/src/oseam/panels/PanelLit.java
r26128 r26173 91 91 }; 92 92 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"))); 95 94 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"))); 98 96 this.add(getTypeButton(sectorButton, 315, 125, 34, 30, "Sector"), null); 99 97 … … 116 114 } 117 115 }; 118 periodLabel = new JLabel(Messages.getString("Period"), 119 SwingConstants.CENTER); 116 periodLabel = new JLabel(Messages.getString("Period"), SwingConstants.CENTER); 120 117 periodLabel.setBounds(new Rectangle(123, 40, 65, 20)); 121 118 this.add(periodLabel, null); … … 131 128 } 132 129 }; 133 heightLabel = new JLabel(Messages.getString("Height"), 134 SwingConstants.CENTER); 130 heightLabel = new JLabel(Messages.getString("Height"), SwingConstants.CENTER); 135 131 heightLabel.setBounds(new Rectangle(123, 80, 65, 20)); 136 132 this.add(heightLabel, null); … … 160 156 } 161 157 }; 162 sequenceLabel = new JLabel(Messages.getString("Sequence"), 163 SwingConstants.CENTER); 158 sequenceLabel = new JLabel(Messages.getString("Sequence"), SwingConstants.CENTER); 164 159 sequenceLabel.setBounds(new Rectangle(188, 120, 80, 20)); 165 160 this.add(sequenceLabel, null); … … 174 169 } 175 170 }; 176 categoryLabel = new JLabel(Messages.getString("Category"), 177 SwingConstants.CENTER); 171 categoryLabel = new JLabel(Messages.getString("Category"), SwingConstants.CENTER); 178 172 categoryLabel.setBounds(new Rectangle(185, 0, 165, 20)); 179 173 this.add(categoryLabel, null); … … 189 183 } 190 184 }; 191 visibilityLabel = new JLabel(Messages.getString("Visibility"), 192 SwingConstants.CENTER); 185 visibilityLabel = new JLabel(Messages.getString("Visibility"), SwingConstants.CENTER); 193 186 visibilityLabel.setBounds(new Rectangle(185, 40, 165, 20)); 194 187 this.add(visibilityLabel, null); … … 206 199 } 207 200 }; 208 exhibitionLabel = new JLabel(Messages.getString("Exhibition"), 209 SwingConstants.CENTER); 201 exhibitionLabel = new JLabel(Messages.getString("Exhibition"), SwingConstants.CENTER); 210 202 exhibitionLabel.setBounds(new Rectangle(280, 80, 70, 20)); 211 203 this.add(exhibitionLabel, null); … … 224 216 } 225 217 }; 226 orientationLabel = new JLabel(Messages.getString("Orientation"), 227 SwingConstants.CENTER); 218 orientationLabel = new JLabel(Messages.getString("Orientation"), SwingConstants.CENTER); 228 219 orientationLabel.setBounds(new Rectangle(188, 80, 80, 20)); 229 220 this.add(orientationLabel, null); … … 235 226 } 236 227 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) { 239 229 button.setBounds(new Rectangle(x, y, w, h)); 240 230 button.setBorder(BorderFactory.createLineBorder(Color.magenta, 2)); -
applications/editors/josm/plugins/smed/plugs/oseam/src/oseam/panels/PanelMain.java
r26110 r26173 31 31 private JButton saveButton = null; 32 32 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"))); 41 37 private ActionListener alType = null; 42 38 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"))); 51 43 private ActionListener alMisc = null; 52 44 private ActionListener alName = null; … … 64 56 dlg = dia; 65 57 panelChan = new PanelChan(dlg); 66 panelChan.setBounds(new Rectangle(65, 0, 205, 160));58 panelChan.setBounds(new Rectangle(65, 0, 185, 160)); 67 59 panelChan.setVisible(false); 68 60 panelHaz = new PanelHaz(dlg); 69 panelHaz.setBounds(new Rectangle(65, 0, 205, 160));61 panelHaz.setBounds(new Rectangle(65, 0, 185, 160)); 70 62 panelHaz.setVisible(false); 71 63 panelSpec = new PanelSpec(dlg); 72 panelSpec.setBounds(new Rectangle(65, 0, 205, 160));64 panelSpec.setBounds(new Rectangle(65, 0, 185, 160)); 73 65 panelSpec.setVisible(false); 74 66 panelLights = new PanelLights(dlg); 75 panelLights.setBounds(new Rectangle(65, 0, 205, 160));67 panelLights.setBounds(new Rectangle(65, 0, 185, 160)); 76 68 panelLights.setVisible(false); 77 69 panelTop = new PanelTop(dlg); … … 89 81 90 82 shapeIcon = new JLabel(); 91 shapeIcon.setBounds(new Rectangle(2 20, 0, 130, 185));83 shapeIcon.setBounds(new Rectangle(250, 0, 150, 185)); 92 84 this.add(shapeIcon, null); 93 85 lightIcon = new JLabel(); 94 lightIcon.setBounds(new Rectangle(2 20, 0, 130, 185));86 lightIcon.setBounds(new Rectangle(250, 0, 150, 185)); 95 87 this.add(lightIcon, null); 96 88 topIcon = new JLabel(); 97 topIcon.setBounds(new Rectangle(2 20, 0, 130, 185));89 topIcon.setBounds(new Rectangle(250, 0, 150, 185)); 98 90 this.add(topIcon, null); 99 91 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"))); 101 94 this.add(radarIcon, null); 102 95 fogIcon = new JLabel(); 103 fogIcon.setBounds(new Rectangle(2 20, 0, 130, 185));96 fogIcon.setBounds(new Rectangle(250, 0, 150, 185)); 104 97 this.add(fogIcon, null); 105 98 … … 275 268 lightIcon.setIcon(null); 276 269 topIcon.setIcon(null); 277 radarIcon.setIcon(null); 270 // radarIcon.setIcon(null); 271 radarIcon.setIcon(new ImageIcon(getClass().getResource("/images/Radar_Station.png"))); 278 272 fogIcon.setIcon(null); 279 273 } 280 274 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) { 283 276 button.setBounds(new Rectangle(x, y, w, h)); 284 277 button.setBorder(BorderFactory.createLineBorder(Color.magenta, 2)); -
applications/editors/josm/plugins/smed/plugs/oseam/src/oseam/panels/PanelPort.java
r26110 r26173 22 22 private OSeaMAction dlg; 23 23 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"))); 28 27 private ActionListener alRegion = new ActionListener() { 29 28 public void actionPerformed(java.awt.event.ActionEvent e) { 30 29 regionAButton.setBorderPainted(regionAButton.isSelected()); 31 30 regionBButton.setBorderPainted(regionBButton.isSelected()); 31 regionCButton.setBorderPainted(regionCButton.isSelected()); 32 32 dlg.mark.paintSign(); 33 33 } 34 34 }; 35 35 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); 52 45 public EnumMap<Shp, Obj> objects = new EnumMap<Shp, Obj>(Shp.class); 53 46 private ActionListener alShape = new ActionListener() { … … 70 63 dlg = dia; 71 64 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); 95 76 } 96 77 … … 100 81 } 101 82 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) { 104 84 button.setBounds(new Rectangle(x, y, w, h)); 105 85 button.setBorder(BorderFactory.createLineBorder(Color.magenta, 2)); … … 110 90 } 111 91 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) { 114 93 button.setBounds(new Rectangle(x, y, w, h)); 115 94 button.setBorder(BorderFactory.createLineBorder(Color.magenta, 2)); -
applications/editors/josm/plugins/smed/plugs/oseam/src/oseam/panels/PanelSaw.java
r26110 r26173 22 22 private OSeaMAction dlg; 23 23 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); 36 30 public EnumMap<Shp, Obj> objects = new EnumMap<Shp, Obj>(Shp.class); 37 31 private ActionListener alShape = new ActionListener() { … … 54 48 dlg = dia; 55 49 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); 71 55 } 72 56 … … 76 60 } 77 61 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) { 80 63 button.setBounds(new Rectangle(x, y, w, h)); 81 64 button.setBorder(BorderFactory.createLineBorder(Color.magenta, 2)); -
applications/editors/josm/plugins/smed/plugs/oseam/src/oseam/panels/PanelSectors.java
r26128 r26173 14 14 15 15 public class PanelSectors extends JFrame { 16 16 17 17 public JPanel panel; 18 18 public JButton minusButton; … … 23 23 private ActionListener alMinusButton; 24 24 private ActionListener alPlusButton; 25 25 26 26 public PanelSectors(Light lit) { 27 27 super("Sector Table"); … … 36 36 panel.setLayout(null); 37 37 panel.add(tablePane); 38 38 39 39 alMinusButton = new ActionListener() { 40 40 public void actionPerformed(java.awt.event.ActionEvent e) { … … 46 46 minusButton.addActionListener(alMinusButton); 47 47 panel.add(minusButton); 48 48 49 49 alPlusButton = new ActionListener() { 50 50 public void actionPerformed(java.awt.event.ActionEvent e) { … … 57 57 panel.add(plusButton); 58 58 } 59 59 60 60 public int getSectorCount() { 61 61 return light.getRowCount(); 62 62 } 63 63 64 64 public void addSector(int idx) { 65 65 light.addSector(idx); … … 72 72 light.fireTableRowsInserted(idx, idx); 73 73 } 74 74 75 75 public void deleteSector(int idx) { 76 76 light.deleteSector(idx); … … 83 83 light.fireTableRowsDeleted(idx, idx); 84 84 } 85 85 86 86 } -
applications/editors/josm/plugins/smed/plugs/oseam/src/oseam/panels/PanelSpec.java
r26110 r26173 23 23 private OSeaMAction dlg; 24 24 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); 47 36 public EnumMap<Shp, Obj> objects = new EnumMap<Shp, Obj>(Shp.class); 48 37 public PanelCol panelCol = null; … … 70 59 this.setLayout(null); 71 60 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); 102 71 } 103 72 … … 106 75 } 107 76 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) { 110 78 button.setBounds(new Rectangle(x, y, w, h)); 111 79 button.setBorder(BorderFactory.createLineBorder(Color.magenta, 2)); -
applications/editors/josm/plugins/smed/plugs/oseam/src/oseam/panels/PanelStbd.java
r26110 r26173 22 22 private OSeaMAction dlg; 23 23 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"))); 28 27 private ActionListener alRegion = new ActionListener() { 29 28 public void actionPerformed(java.awt.event.ActionEvent e) { 30 29 regionAButton.setBorderPainted(regionAButton.isSelected()); 31 30 regionBButton.setBorderPainted(regionBButton.isSelected()); 31 regionCButton.setBorderPainted(regionCButton.isSelected()); 32 32 dlg.mark.paintSign(); 33 33 } 34 34 }; 35 35 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); 52 45 public EnumMap<Shp, Obj> objects = new EnumMap<Shp, Obj>(Shp.class); 53 46 private ActionListener alShape = new ActionListener() { … … 70 63 dlg = dia; 71 64 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); 95 76 } 96 77 … … 100 81 } 101 82 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) { 104 84 button.setBounds(new Rectangle(x, y, w, h)); 105 85 button.setBorder(BorderFactory.createLineBorder(Color.magenta, 2)); … … 110 90 } 111 91 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) { 114 93 button.setBounds(new Rectangle(x, y, w, h)); 115 94 button.setBorder(BorderFactory.createLineBorder(Color.magenta, 2)); -
applications/editors/josm/plugins/smed/plugs/oseam/src/oseam/panels/PanelTop.java
r26110 r26173 23 23 public PanelCol panelCol = null; 24 24 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); 63 45 private ActionListener alTop = new ActionListener() { 64 46 public void actionPerformed(java.awt.event.ActionEvent e) { … … 93 75 this.add(getTopButton(noTopButton, 40, 5, 27, 27, "NoTop", Top.NONE), null); 94 76 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); 135 92 } 136 93 … … 147 104 } 148 105 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) { 151 107 button.setBounds(new Rectangle(x, y, w, h)); 152 108 button.setBorder(BorderFactory.createLineBorder(Color.magenta, 2)); … … 158 114 } 159 115 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) { 162 117 button.setBounds(new Rectangle(x, y, w, h)); 163 118 button.setBorder(BorderFactory.createLineBorder(Color.magenta, 2)); … … 169 124 } 170 125 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) { 173 127 button.setBounds(new Rectangle(x, y, w, h)); 174 128 button.setBorder(BorderFactory.createLineBorder(Color.magenta, 2));
Note:
See TracChangeset
for help on using the changeset viewer.