Changeset 27219 in osm for applications/editors/josm/plugins
- Timestamp:
- 2011-12-12T14:25:46+01:00 (13 years ago)
- Location:
- applications/editors/josm/plugins/smed/plugs/oseam/src/oseam
- Files:
-
- 18 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/smed/plugs/oseam/src/oseam/panels/PanelChan.java
r27200 r27219 217 217 public PanelChan(OSeaMAction dia) { 218 218 dlg = dia; 219 setLayout(null); 219 220 panelPort = new PanelPort(dlg); 220 221 panelPort.setBounds(new Rectangle(55, 0, 70, 160)); … … 226 227 panelSaw.setBounds(new Rectangle(55, 0, 70, 160)); 227 228 panelSaw.setVisible(false); 228 this.setLayout(null); 229 this.add(panelPort, null); 230 this.add(panelStbd, null); 231 this.add(panelSaw, null); 232 this.add(getCatButton(portButton, 0, 0, 52, 32, "Port"), null); 233 this.add(getCatButton(stbdButton, 0, 32, 52, 32, "Stbd"), null); 234 this.add(getCatButton(prefPortButton, 0, 64, 52, 32, "PrefPort"), null); 235 this.add(getCatButton(prefStbdButton, 0, 96, 52, 32, "PrefStbd"), null); 236 this.add(getCatButton(safeWaterButton, 0, 128, 52, 32, "SafeWater"), null); 229 add(panelPort); 230 add(panelStbd); 231 add(panelSaw); 232 add(getCatButton(portButton, 0, 0, 52, 32, "Port")); 233 add(getCatButton(stbdButton, 0, 32, 52, 32, "Stbd")); 234 add(getCatButton(prefPortButton, 0, 64, 52, 32, "PrefPort")); 235 add(getCatButton(prefStbdButton, 0, 96, 52, 32, "PrefStbd")); 236 add(getCatButton(safeWaterButton, 0, 128, 52, 32, "SafeWater")); 237 237 238 238 topmarkButton.setBounds(new Rectangle(130, 0, 34, 32)); … … 241 241 topmarkButton.addActionListener(alTop); 242 242 topmarkButton.setVisible(false); 243 this.add(topmarkButton);243 add(topmarkButton); 244 244 lightButton.setBounds(new Rectangle(130, 32, 34, 32)); 245 245 lightButton.setToolTipText(Messages.getString("Light")); … … 247 247 lightButton.addActionListener(alLit); 248 248 lightButton.setVisible(false); 249 this.add(lightButton);249 add(lightButton); 250 250 } 251 251 -
applications/editors/josm/plugins/smed/plugs/oseam/src/oseam/panels/PanelChr.java
r27214 r27219 108 108 public PanelChr(OSeaMAction dia) { 109 109 dlg = dia; 110 this.setLayout(null);111 this.add(getChrButton(noneButton, 0, 0, 44, 16, Messages.getString("NoChar"), Chr.UNKNOWN), null);112 this.add(getChrButton(fixedButton, 0, 16, 44, 16, Messages.getString("FChar"), Chr.FIXED), null);113 this.add(getChrButton(flashButton, 0, 32, 44, 16, Messages.getString("FlChar"), Chr.FLASH), null);114 this.add(getChrButton(longFlashButton, 0, 48, 44, 16, Messages.getString("LFlChar"), Chr.LFLASH), null);115 this.add(getChrButton(quickButton, 0, 64, 44, 16, Messages.getString("QChar"), Chr.QUICK), null);116 this.add(getChrButton(veryQuickButton, 0, 80, 44, 16, Messages.getString("VQChar"), Chr.VQUICK), null);117 this.add(getChrButton(ultraQuickButton, 0, 96, 44, 16, Messages.getString("UQChar"), Chr.UQUICK), null);118 this.add(getChrButton(alternatingButton, 44, 0, 44, 16, Messages.getString("AlChar"), Chr.ALTERNATING), null);119 this.add(getChrButton(isophasedButton, 44, 16, 44, 16, Messages.getString("IsoChar"), Chr.ISOPHASED), null);120 this.add(getChrButton(occultingButton, 44, 32, 44, 16, Messages.getString("OcChar"), Chr.OCCULTING), null);121 this.add(getChrButton(morseButton, 44, 48, 44, 16, Messages.getString("MoChar"), Chr.MORSE), null);122 this.add(getChrButton(interruptedQuickButton, 44, 64, 44, 16, Messages.getString("IQChar"), Chr.IQUICK), null);123 this.add(getChrButton(interruptedVeryQuickButton, 44, 80, 44, 16, Messages.getString("IVQChar"), Chr.IVQUICK),null);124 this.add(getChrButton(interruptedUltraQuickButton, 44, 96, 44, 16, Messages.getString("IUQChar"), Chr.IUQUICK), null);110 setLayout(null); 111 add(getChrButton(noneButton, 0, 0, 44, 16, Messages.getString("NoChar"), Chr.UNKNOWN)); 112 add(getChrButton(fixedButton, 0, 16, 44, 16, Messages.getString("FChar"), Chr.FIXED)); 113 add(getChrButton(flashButton, 0, 32, 44, 16, Messages.getString("FlChar"), Chr.FLASH)); 114 add(getChrButton(longFlashButton, 0, 48, 44, 16, Messages.getString("LFlChar"), Chr.LFLASH)); 115 add(getChrButton(quickButton, 0, 64, 44, 16, Messages.getString("QChar"), Chr.QUICK)); 116 add(getChrButton(veryQuickButton, 0, 80, 44, 16, Messages.getString("VQChar"), Chr.VQUICK)); 117 add(getChrButton(ultraQuickButton, 0, 96, 44, 16, Messages.getString("UQChar"), Chr.UQUICK)); 118 add(getChrButton(alternatingButton, 44, 0, 44, 16, Messages.getString("AlChar"), Chr.ALTERNATING)); 119 add(getChrButton(isophasedButton, 44, 16, 44, 16, Messages.getString("IsoChar"), Chr.ISOPHASED)); 120 add(getChrButton(occultingButton, 44, 32, 44, 16, Messages.getString("OcChar"), Chr.OCCULTING)); 121 add(getChrButton(morseButton, 44, 48, 44, 16, Messages.getString("MoChar"), Chr.MORSE)); 122 add(getChrButton(interruptedQuickButton, 44, 64, 44, 16, Messages.getString("IQChar"), Chr.IQUICK)); 123 add(getChrButton(interruptedVeryQuickButton, 44, 80, 44, 16, Messages.getString("IVQChar"), Chr.IVQUICK)); 124 add(getChrButton(interruptedUltraQuickButton, 44, 96, 44, 16, Messages.getString("IUQChar"), Chr.IUQUICK)); 125 125 charLabel.setBounds(new Rectangle(0, 113, 88, 20)); 126 126 charLabel.setHorizontalAlignment(SwingConstants.CENTER); 127 127 charLabel.setText(Messages.getString("Character")); 128 this.add(charLabel, null);128 add(charLabel); 129 129 col1Label.setBounds(new Rectangle(10, 135, 10, 20)); 130 130 col1Label.setOpaque(true); 131 this.add(col1Label, null);131 add(col1Label); 132 132 col2Label.setBounds(new Rectangle(70, 135, 10, 20)); 133 133 col2Label.setOpaque(true); 134 this.add(col2Label, null);134 add(col2Label); 135 135 charBox.setBounds(new Rectangle(20, 135, 50, 20)); 136 136 charBox.setHorizontalAlignment(SwingConstants.CENTER); 137 this.add(charBox, null);137 add(charBox); 138 138 charBox.addActionListener(alCharBox); 139 139 } -
applications/editors/josm/plugins/smed/plugs/oseam/src/oseam/panels/PanelCol.java
r27214 r27219 98 98 dlg = dia; 99 99 ent = entity; 100 this.setLayout(null);101 this.add(getColButton(delButton, 0, 0, 34, 16, Messages.getString("RemColour"), Col.UNKNOWN), null);102 this.add(getColButton(whiteButton, 0, 16, 34, 16, Messages.getString("White"), Col.WHITE), null);103 this.add(getColButton(redButton, 0, 32, 34, 16, Messages.getString("Red"), Col.RED), null);104 this.add(getColButton(orangeButton, 0, 48, 34, 16, Messages.getString("Orange"), Col.ORANGE), null);105 this.add(getColButton(amberButton, 0, 64, 34, 16, Messages.getString("Amber"), Col.AMBER), null);106 this.add(getColButton(yellowButton, 0, 80, 34, 16, Messages.getString("Yellow"), Col.YELLOW), null);107 this.add(getColButton(greenButton, 0, 96, 34, 16, Messages.getString("Green"), Col.GREEN), null);108 this.add(getColButton(blueButton, 0, 112, 34, 16, Messages.getString("Blue"), Col.BLUE), null);109 this.add(getColButton(violetButton, 0, 128, 34, 16, Messages.getString("Violet"), Col.VIOLET), null);100 setLayout(null); 101 add(getColButton(delButton, 0, 0, 34, 16, Messages.getString("RemColour"), Col.UNKNOWN)); 102 add(getColButton(whiteButton, 0, 16, 34, 16, Messages.getString("White"), Col.WHITE)); 103 add(getColButton(redButton, 0, 32, 34, 16, Messages.getString("Red"), Col.RED)); 104 add(getColButton(orangeButton, 0, 48, 34, 16, Messages.getString("Orange"), Col.ORANGE)); 105 add(getColButton(amberButton, 0, 64, 34, 16, Messages.getString("Amber"), Col.AMBER)); 106 add(getColButton(yellowButton, 0, 80, 34, 16, Messages.getString("Yellow"), Col.YELLOW)); 107 add(getColButton(greenButton, 0, 96, 34, 16, Messages.getString("Green"), Col.GREEN)); 108 add(getColButton(blueButton, 0, 112, 34, 16, Messages.getString("Blue"), Col.BLUE)); 109 add(getColButton(violetButton, 0, 128, 34, 16, Messages.getString("Violet"), Col.VIOLET)); 110 110 if (ent != Ent.LIGHT) { 111 this.add(getColButton(addButton, 0, 144, 34, 16, Messages.getString("AddColour"), Col.BLANK), null);112 this.add(getColButton(blackButton, 37, 0, 34, 16, Messages.getString("Black"), Col.BLACK), null);113 this.add(getColButton(greyButton, 37, 16, 34, 16, Messages.getString("Grey"), Col.GREY), null);114 this.add(getColButton(brownButton, 37, 32, 34, 16, Messages.getString("Brown"), Col.BROWN), null);115 this.add(getColButton(magentaButton, 37, 48, 34, 16, Messages.getString("Magenta"), Col.MAGENTA), null);116 this.add(getColButton(pinkButton, 37, 64, 34, 16, Messages.getString("Pink"), Col.PINK), null);111 add(getColButton(addButton, 0, 144, 34, 16, Messages.getString("AddColour"), Col.BLANK)); 112 add(getColButton(blackButton, 37, 0, 34, 16, Messages.getString("Black"), Col.BLACK)); 113 add(getColButton(greyButton, 37, 16, 34, 16, Messages.getString("Grey"), Col.GREY)); 114 add(getColButton(brownButton, 37, 32, 34, 16, Messages.getString("Brown"), Col.BROWN)); 115 add(getColButton(magentaButton, 37, 48, 34, 16, Messages.getString("Magenta"), Col.MAGENTA)); 116 add(getColButton(pinkButton, 37, 64, 34, 16, Messages.getString("Pink"), Col.PINK)); 117 117 118 118 stack = new JPanel(); … … 120 120 stack.setBounds(38, 87, 34, 64); 121 121 stack.setLayout(null); 122 this.add(stack);122 add(stack); 123 123 } 124 124 } -
applications/editors/josm/plugins/smed/plugs/oseam/src/oseam/panels/PanelFog.java
r27200 r27219 68 68 public PanelFog(OSeaMAction dia) { 69 69 dlg = dia; 70 this.setLayout(null);71 this.add(getFogButton(noFogButton, 0, 2, 27, 27, "NoFog", Fog.NONE), null);72 this.add(getFogButton(yesFogButton, 0, 32, 27, 27, "FogSignal", Fog.UNKNOWN), null);73 this.add(getFogButton(hornButton, 0, 62, 27, 27, "Horn", Fog.HORN), null);74 this.add(getFogButton(sirenButton, 0, 92, 27, 27, "Siren", Fog.SIREN), null);75 this.add(getFogButton(gongButton, 0, 122, 27, 27, "Gong", Fog.SIREN), null);76 this.add(getFogButton(diaButton, 30, 2, 27, 27, "Diaphone", Fog.DIA), null);77 this.add(getFogButton(bellButton, 30, 32, 27, 27, "Bell", Fog.BELL), null);78 this.add(getFogButton(whisButton, 30, 62, 27, 27, "Whistle", Fog.WHIS), null);79 this.add(getFogButton(explosButton, 30, 92, 27, 27, "Explosion", Fog.EXPLOS), null);70 setLayout(null); 71 add(getFogButton(noFogButton, 0, 2, 27, 27, "NoFog", Fog.NONE)); 72 add(getFogButton(yesFogButton, 0, 32, 27, 27, "FogSignal", Fog.UNKNOWN)); 73 add(getFogButton(hornButton, 0, 62, 27, 27, "Horn", Fog.HORN)); 74 add(getFogButton(sirenButton, 0, 92, 27, 27, "Siren", Fog.SIREN)); 75 add(getFogButton(gongButton, 0, 122, 27, 27, "Gong", Fog.GONG)); 76 add(getFogButton(diaButton, 30, 2, 27, 27, "Diaphone", Fog.DIA)); 77 add(getFogButton(bellButton, 30, 32, 27, 27, "Bell", Fog.BELL)); 78 add(getFogButton(whisButton, 30, 62, 27, 27, "Whistle", Fog.WHIS)); 79 add(getFogButton(explosButton, 30, 92, 27, 27, "Explosion", Fog.EXPLOS)); 80 80 81 81 groupLabel = new JLabel(Messages.getString("Group"), SwingConstants.CENTER); 82 82 groupLabel.setBounds(new Rectangle(75, 0, 100, 20)); 83 this.add(groupLabel, null);83 add(groupLabel); 84 84 groupBox = new JTextField(); 85 85 groupBox.setBounds(new Rectangle(100, 20, 50, 20)); 86 86 groupBox.setHorizontalAlignment(SwingConstants.CENTER); 87 this.add(groupBox, null);87 add(groupBox); 88 88 groupBox.addActionListener(alGroup); 89 89 90 90 periodLabel = new JLabel(Messages.getString("Period"), SwingConstants.CENTER); 91 91 periodLabel.setBounds(new Rectangle(75, 40, 100, 20)); 92 this.add(periodLabel, null);92 add(periodLabel); 93 93 periodBox = new JTextField(); 94 94 periodBox.setBounds(new Rectangle(100, 60, 50, 20)); 95 95 periodBox.setHorizontalAlignment(SwingConstants.CENTER); 96 this.add(periodBox, null);96 add(periodBox); 97 97 periodBox.addActionListener(alPeriod); 98 98 99 99 seqLabel = new JLabel(Messages.getString("Sequence"), SwingConstants.CENTER); 100 100 seqLabel.setBounds(new Rectangle(75, 80, 100, 20)); 101 this.add(seqLabel, null);101 add(seqLabel); 102 102 seqBox = new JTextField(); 103 103 seqBox.setBounds(new Rectangle(100, 100, 50, 20)); 104 104 seqBox.setHorizontalAlignment(SwingConstants.CENTER); 105 this.add(seqBox, null);105 add(seqBox); 106 106 seqBox.addActionListener(alSeq); 107 107 108 108 rangeLabel = new JLabel(Messages.getString("Range"), SwingConstants.CENTER); 109 109 rangeLabel.setBounds(new Rectangle(75, 120, 100, 20)); 110 this.add(rangeLabel, null);110 add(rangeLabel); 111 111 rangeBox = new JTextField(); 112 112 rangeBox.setBounds(new Rectangle(100, 140, 50, 20)); 113 113 rangeBox.setHorizontalAlignment(SwingConstants.CENTER); 114 this.add(rangeBox, null);114 add(rangeBox); 115 115 rangeBox.addActionListener(alRange); 116 116 -
applications/editors/josm/plugins/smed/plugs/oseam/src/oseam/panels/PanelHaz.java
r27200 r27219 174 174 public PanelHaz(OSeaMAction dia) { 175 175 dlg = dia; 176 this.setLayout(null);177 this.add(getCatButton(northButton, 0, 0, 52, 32, "North"), null);178 this.add(getCatButton(southButton, 0, 32, 52, 32, "South"), null);179 this.add(getCatButton(eastButton, 0, 64, 52, 32, "East"), null);180 this.add(getCatButton(westButton, 0, 96, 52, 32, "West"), null);181 this.add(getCatButton(isolButton, 0, 128, 52, 32, "Isol"), null);182 183 this.add(getShapeButton(pillarButton, 55, 0, 34, 32, "Pillar", Shp.PILLAR, Obj.BOYCAR, Obj.BOYISD), null);184 this.add(getShapeButton(sparButton, 55, 32, 34, 32, "Spar", Shp.SPAR, Obj.BOYCAR, Obj.BOYISD), null);185 this.add(getShapeButton(canButton, 55, 64, 34, 32, "Can", Shp.CAN, Obj.BOYCAR, Obj.BOYISD), null);186 this.add(getShapeButton(coneButton, 55, 96, 34, 32, "Cone", Shp.CONE, Obj.BOYCAR, Obj.BOYISD), null);187 this.add(getShapeButton(sphereButton, 55, 128, 34, 32, "Sphere", Shp.SPHERE, Obj.BOYCAR, Obj.BOYISD), null);188 this.add(getShapeButton(floatButton, 90, 0, 34, 32, "Float", Shp.FLOAT, Obj.LITFLT, Obj.LITFLT), null);189 this.add(getShapeButton(beaconButton, 90, 32, 34, 32, "Beacon", Shp.BEACON, Obj.BCNCAR, Obj.BCNISD), null);190 this.add(getShapeButton(towerButton, 90, 64, 34, 32, "TowerB", Shp.TOWER, Obj.BCNCAR, Obj.BCNISD), null);176 setLayout(null); 177 add(getCatButton(northButton, 0, 0, 52, 32, "North")); 178 add(getCatButton(southButton, 0, 32, 52, 32, "South")); 179 add(getCatButton(eastButton, 0, 64, 52, 32, "East")); 180 add(getCatButton(westButton, 0, 96, 52, 32, "West")); 181 add(getCatButton(isolButton, 0, 128, 52, 32, "Isol")); 182 183 add(getShapeButton(pillarButton, 55, 0, 34, 32, "Pillar", Shp.PILLAR, Obj.BOYCAR, Obj.BOYISD)); 184 add(getShapeButton(sparButton, 55, 32, 34, 32, "Spar", Shp.SPAR, Obj.BOYCAR, Obj.BOYISD)); 185 add(getShapeButton(canButton, 55, 64, 34, 32, "Can", Shp.CAN, Obj.BOYCAR, Obj.BOYISD)); 186 add(getShapeButton(coneButton, 55, 96, 34, 32, "Cone", Shp.CONE, Obj.BOYCAR, Obj.BOYISD)); 187 add(getShapeButton(sphereButton, 55, 128, 34, 32, "Sphere", Shp.SPHERE, Obj.BOYCAR, Obj.BOYISD)); 188 add(getShapeButton(floatButton, 90, 0, 34, 32, "Float", Shp.FLOAT, Obj.LITFLT, Obj.LITFLT)); 189 add(getShapeButton(beaconButton, 90, 32, 34, 32, "Beacon", Shp.BEACON, Obj.BCNCAR, Obj.BCNISD)); 190 add(getShapeButton(towerButton, 90, 64, 34, 32, "TowerB", Shp.TOWER, Obj.BCNCAR, Obj.BCNISD)); 191 191 192 192 topmarkButton.setBounds(new Rectangle(130, 0, 34, 32)); … … 195 195 topmarkButton.addActionListener(alTop); 196 196 topmarkButton.setVisible(false); 197 this.add(topmarkButton);197 add(topmarkButton); 198 198 lightButton.setBounds(new Rectangle(130, 32, 34, 32)); 199 199 lightButton.setToolTipText(Messages.getString("Light")); … … 201 201 lightButton.addActionListener(alLit); 202 202 lightButton.setVisible(false); 203 this.add(lightButton);203 add(lightButton); 204 204 } 205 205 -
applications/editors/josm/plugins/smed/plugs/oseam/src/oseam/panels/PanelLights.java
r27200 r27219 113 113 public PanelLights(OSeaMAction dia) { 114 114 dlg = dia; 115 this.setLayout(null);116 this.add(getObjButton(houseButton, 0, 0, 34, 32, "Lighthouse", Obj.LITHSE), null);117 this.add(getObjButton(majorButton, 35, 0, 34, 32, "MajorLight", Obj.LITMAJ), null);118 this.add(getObjButton(minorButton, 70, 0, 34, 32, "MinorLight", Obj.LITMIN), null);119 this.add(getObjButton(landButton, 105, 0, 34, 32, "Landmark", Obj.LNDMRK), null);120 this.add(getObjButton(vesselButton, 0, 35, 34, 32, "LightVessel", Obj.LITVES), null);121 this.add(getObjButton(floatButton, 35, 35, 34, 32, "LightFloat", Obj.LITFLT), null);122 this.add(getObjButton(trafficButton, 70, 35, 34, 32, "SSTraffic", Obj.SISTAT), null);123 this.add(getObjButton(warningButton, 105, 35, 34, 32, "SSWarning", Obj.SISTAW), null);115 setLayout(null); 116 add(getObjButton(houseButton, 0, 0, 34, 32, "Lighthouse", Obj.LITHSE)); 117 add(getObjButton(majorButton, 35, 0, 34, 32, "MajorLight", Obj.LITMAJ)); 118 add(getObjButton(minorButton, 70, 0, 34, 32, "MinorLight", Obj.LITMIN)); 119 add(getObjButton(landButton, 105, 0, 34, 32, "Landmark", Obj.LNDMRK)); 120 add(getObjButton(vesselButton, 0, 35, 34, 32, "LightVessel", Obj.LITVES)); 121 add(getObjButton(floatButton, 35, 35, 34, 32, "LightFloat", Obj.LITFLT)); 122 add(getObjButton(trafficButton, 70, 35, 34, 32, "SSTraffic", Obj.SISTAT)); 123 add(getObjButton(warningButton, 105, 35, 34, 32, "SSWarning", Obj.SISTAW)); 124 124 125 125 categoryLabel = new JLabel(Messages.getString("Category"), SwingConstants.CENTER); 126 126 categoryLabel.setBounds(new Rectangle(5, 80, 160, 20)); 127 this.add(categoryLabel, null);127 add(categoryLabel); 128 128 categoryLabel.setVisible(false); 129 129 130 130 landCatBox = new JComboBox(); 131 131 landCatBox.setBounds(new Rectangle(5, 100, 160, 20)); 132 this.add(landCatBox, null);132 add(landCatBox); 133 133 landCatBox.addActionListener(alLandCatBox); 134 134 addLCItem("", Cat.NONE); … … 157 157 trafficCatBox = new JComboBox(); 158 158 trafficCatBox.setBounds(new Rectangle(5, 100, 160, 20)); 159 this.add(trafficCatBox, null);159 add(trafficCatBox); 160 160 trafficCatBox.addActionListener(alTrafficCatBox); 161 161 addTCItem("", Cat.NONE); … … 174 174 warningCatBox = new JComboBox(); 175 175 warningCatBox.setBounds(new Rectangle(10, 100, 160, 20)); 176 this.add(warningCatBox, null);176 add(warningCatBox); 177 177 warningCatBox.addActionListener(alWarningCatBox); 178 178 addWCItem("", Cat.NONE); -
applications/editors/josm/plugins/smed/plugs/oseam/src/oseam/panels/PanelLit.java
r27214 r27219 145 145 public PanelLit(OSeaMAction dia) { 146 146 dlg = dia; 147 setLayout(null); 147 148 panelCol = new PanelCol(dlg, Ent.LIGHT); 148 149 panelCol.setBounds(new Rectangle(0, 0, 34, 160)); 149 150 panelChr = new PanelChr(dlg); 150 151 panelChr.setBounds(new Rectangle(34, 0, 88, 160)); 151 this.setLayout(null); 152 this.add(panelChr, null); 153 this.add(panelCol, null); 152 add(panelChr); 153 add(panelCol); 154 154 panelSector = new PanelSectors(dlg); 155 155 panelSector.setVisible(false); … … 157 157 typeButtons = new ButtonGroup(); 158 158 singleButton = new JRadioButton(new ImageIcon(getClass().getResource("/images/SingleButton.png"))); 159 this.add(getTypeButton(singleButton, 280, 125, 34, 30, "Single"), null);159 add(getTypeButton(singleButton, 280, 125, 34, 30, "Single")); 160 160 sectorButton = new JRadioButton(new ImageIcon(getClass().getResource("/images/SectorButton.png"))); 161 this.add(getTypeButton(sectorButton, 315, 125, 34, 30, "Sectored"), null);161 add(getTypeButton(sectorButton, 315, 125, 34, 30, "Sectored")); 162 162 163 163 groupLabel = new JLabel(Messages.getString("Group"), SwingConstants.CENTER); 164 164 groupLabel.setBounds(new Rectangle(123, 0, 65, 20)); 165 this.add(groupLabel, null);165 add(groupLabel); 166 166 groupBox = new JTextField(); 167 167 groupBox.setBounds(new Rectangle(135, 20, 40, 20)); 168 168 groupBox.setHorizontalAlignment(SwingConstants.CENTER); 169 this.add(groupBox, null);169 add(groupBox); 170 170 groupBox.addActionListener(alGroup); 171 171 172 172 periodLabel = new JLabel(Messages.getString("Period"), SwingConstants.CENTER); 173 173 periodLabel.setBounds(new Rectangle(123, 40, 65, 20)); 174 this.add(periodLabel, null);174 add(periodLabel); 175 175 periodBox = new JTextField(); 176 176 periodBox.setBounds(new Rectangle(135, 60, 40, 20)); 177 177 periodBox.setHorizontalAlignment(SwingConstants.CENTER); 178 this.add(periodBox, null);178 add(periodBox); 179 179 periodBox.addActionListener(alPeriod); 180 180 181 181 heightLabel = new JLabel(Messages.getString("Height"), SwingConstants.CENTER); 182 182 heightLabel.setBounds(new Rectangle(123, 80, 65, 20)); 183 this.add(heightLabel, null);183 add(heightLabel); 184 184 heightBox = new JTextField(); 185 185 heightBox.setBounds(new Rectangle(135, 100, 40, 20)); 186 186 heightBox.setHorizontalAlignment(SwingConstants.CENTER); 187 this.add(heightBox, null);187 add(heightBox); 188 188 heightBox.addActionListener(alHeight); 189 189 190 190 rangeLabel = new JLabel(Messages.getString("Range"), SwingConstants.CENTER); 191 191 rangeLabel.setBounds(new Rectangle(123, 120, 65, 20)); 192 this.add(rangeLabel, null);192 add(rangeLabel); 193 193 rangeBox = new JTextField(); 194 194 rangeBox.setBounds(new Rectangle(135, 140, 40, 20)); 195 195 rangeBox.setHorizontalAlignment(SwingConstants.CENTER); 196 this.add(rangeBox, null);196 add(rangeBox); 197 197 rangeBox.addActionListener(alRange); 198 198 199 199 sequenceLabel = new JLabel(Messages.getString("Sequence"), SwingConstants.CENTER); 200 200 sequenceLabel.setBounds(new Rectangle(188, 120, 80, 20)); 201 this.add(sequenceLabel, null);201 add(sequenceLabel); 202 202 sequenceBox = new JTextField(); 203 203 sequenceBox.setBounds(new Rectangle(183, 140, 90, 20)); 204 204 sequenceBox.setHorizontalAlignment(SwingConstants.CENTER); 205 this.add(sequenceBox, null);205 add(sequenceBox); 206 206 sequenceBox.addActionListener(alSequence); 207 207 208 208 categoryLabel = new JLabel(Messages.getString("Category"), SwingConstants.CENTER); 209 209 categoryLabel.setBounds(new Rectangle(185, 0, 165, 20)); 210 this.add(categoryLabel, null);210 add(categoryLabel); 211 211 categoryBox = new JComboBox(); 212 212 categoryBox.setBounds(new Rectangle(185, 20, 165, 20)); 213 this.add(categoryBox, null);213 add(categoryBox); 214 214 addCatItem("", Lit.UNKNOWN); 215 215 addCatItem(Messages.getString("VertDisp"), Lit.VERT); … … 234 234 visibilityLabel = new JLabel(Messages.getString("Visibility"), SwingConstants.CENTER); 235 235 visibilityLabel.setBounds(new Rectangle(185, 40, 165, 20)); 236 this.add(visibilityLabel, null);236 add(visibilityLabel); 237 237 visibilityBox = new JComboBox(); 238 238 visibilityBox.setBounds(new Rectangle(185, 60, 165, 20)); 239 this.add(visibilityBox, null);239 add(visibilityBox); 240 240 addVisibItem("", Vis.UNKNOWN); 241 241 addVisibItem(Messages.getString("Intensified"), Vis.INTEN); … … 246 246 exhibitionLabel = new JLabel(Messages.getString("Exhibition"), SwingConstants.CENTER); 247 247 exhibitionLabel.setBounds(new Rectangle(280, 80, 70, 20)); 248 this.add(exhibitionLabel, null);248 add(exhibitionLabel); 249 249 exhibitionBox = new JComboBox(); 250 250 exhibitionBox.setBounds(new Rectangle(280, 100, 70, 20)); 251 this.add(exhibitionBox, null);251 add(exhibitionBox); 252 252 addExhibItem("", Exh.UNKNOWN); 253 253 addExhibItem(Messages.getString("24h"), Exh.H24); … … 260 260 orientationLabel.setBounds(new Rectangle(188, 80, 80, 20)); 261 261 orientationLabel.setVisible(false); 262 this.add(orientationLabel, null);262 add(orientationLabel); 263 263 orientationBox = new JTextField(); 264 264 orientationBox.setBounds(new Rectangle(208, 100, 40, 20)); 265 265 orientationBox.setHorizontalAlignment(SwingConstants.CENTER); 266 266 orientationBox.setVisible(false); 267 this.add(orientationBox, null);267 add(orientationBox); 268 268 orientationBox.addActionListener(alOrientation); 269 269 … … 271 271 multipleLabel.setBounds(new Rectangle(188, 80, 80, 20)); 272 272 multipleLabel.setVisible(false); 273 this.add(multipleLabel, null);273 add(multipleLabel); 274 274 multipleBox = new JTextField(); 275 275 multipleBox.setBounds(new Rectangle(208, 100, 40, 20)); 276 276 multipleBox.setHorizontalAlignment(SwingConstants.CENTER); 277 277 multipleBox.setVisible(false); 278 this.add(multipleBox, null);278 add(multipleBox); 279 279 multipleBox.addActionListener(alMultiple); 280 280 } -
applications/editors/josm/plugins/smed/plugs/oseam/src/oseam/panels/PanelMain.java
r27200 r27219 74 74 public void actionPerformed(java.awt.event.ActionEvent e) { 75 75 if (chanButton.isSelected()) { 76 mark.clearSign(); 76 77 chanButton.setBorderPainted(true); 77 mark.clearSign();78 panelChan.syncPanel();79 78 panelChan.setVisible(true); 80 79 } else { … … 83 82 } 84 83 if (hazButton.isSelected()) { 84 mark.clearSign(); 85 85 hazButton.setBorderPainted(true); 86 mark.clearSign();87 panelHaz.syncPanel();88 86 panelHaz.setVisible(true); 89 87 } else { … … 92 90 } 93 91 if (specButton.isSelected()) { 92 mark.clearSign(); 94 93 specButton.setBorderPainted(true); 95 mark.clearSign();96 panelSpec.syncPanel();97 94 panelSpec.setVisible(true); 98 95 } else { … … 101 98 } 102 99 if (lightsButton.isSelected()) { 100 mark.clearSign(); 103 101 lightsButton.setBorderPainted(true); 104 mark.clearSign();105 panelLights.syncPanel();106 102 panelLights.setVisible(true); 107 103 } else { … … 160 156 161 157 dlg = dia; 158 setLayout(null); 162 159 mark = new SeaMark(dlg); 163 160 mark.setBounds(new Rectangle(235, 0, 165, 160)); 164 this.add(mark);161 add(mark); 165 162 panelChan = new PanelChan(dlg); 166 163 panelChan.setBounds(new Rectangle(65, 0, 170, 160)); … … 191 188 panelLit.setVisible(false); 192 189 193 this.add(getButton(chanButton, 0, 0, 62, 40, "Chan"), null);194 this.add(getButton(hazButton, 0, 40, 62, 40, "Haz"), null);195 this.add(getButton(specButton, 0, 80, 62, 40, "Spec"), null);196 this.add(getButton(lightsButton, 0, 120, 62, 40, "Lights"), null);197 this.add(panelChan);198 this.add(panelHaz, null);199 this.add(panelSpec, null);200 this.add(panelLights, null);201 this.add(panelMore, null);202 this.add(panelTop, null);203 this.add(panelFog, null);204 this.add(panelRadar, null);205 this.add(panelLit, null);190 add(getButton(chanButton, 0, 0, 62, 40, "Chan"), null); 191 add(getButton(hazButton, 0, 40, 62, 40, "Haz"), null); 192 add(getButton(specButton, 0, 80, 62, 40, "Spec"), null); 193 add(getButton(lightsButton, 0, 120, 62, 40, "Lights"), null); 194 add(panelChan); 195 add(panelHaz); 196 add(panelSpec); 197 add(panelLights); 198 add(panelMore); 199 add(panelTop); 200 add(panelFog); 201 add(panelRadar); 202 add(panelLit); 206 203 typeButtons = new ButtonGroup(); 207 204 typeButtons.add(chanButton); … … 214 211 lightsButton.addActionListener(alType); 215 212 216 this.add(getButton(topButton, 0, 185, 34, 32, "Topmarks"), null);217 this.add(getButton(fogButton, 0, 220, 34, 32, "FogSignals"), null);218 this.add(getButton(radButton, 0, 255, 34, 32, "Radar"), null);219 this.add(getButton(litButton, 0, 290, 34, 32, "Lit"), null);213 add(getButton(topButton, 0, 185, 34, 32, "Topmarks")); 214 add(getButton(fogButton, 0, 220, 34, 32, "FogSignals")); 215 add(getButton(radButton, 0, 255, 34, 32, "Radar")); 216 add(getButton(litButton, 0, 290, 34, 32, "Lit")); 220 217 miscButtons = new ButtonGroup(); 221 218 miscButtons.add(topButton); … … 231 228 nameLabel.setBounds(new Rectangle(5, 329, 60, 20)); 232 229 nameLabel.setText(tr("Name:")); 233 this.add(nameLabel, null);230 add(nameLabel); 234 231 nameBox = new JTextField(); 235 232 nameBox.setBounds(new Rectangle(60, 330, 200, 20)); 236 233 nameBox.setHorizontalAlignment(SwingConstants.CENTER); 237 this.add(nameBox, null);234 add(nameBox); 238 235 nameBox.addActionListener(alName); 239 236 … … 241 238 saveButton.setBounds(new Rectangle(285, 330, 100, 20)); 242 239 saveButton.setText(tr("Save")); 243 this.add(saveButton, null);240 add(saveButton); 244 241 saveButton.addActionListener(alSave); 245 242 … … 248 245 moreButton.setMargin(new Insets(0, 0, 0, 0)); 249 246 moreButton.setText(">>"); 250 this.add(moreButton, null);247 add(moreButton); 251 248 moreButton.addActionListener(alMore); 252 249 -
applications/editors/josm/plugins/smed/plugs/oseam/src/oseam/panels/PanelMore.java
r27200 r27219 187 187 public PanelMore(OSeaMAction dia) { 188 188 dlg = dia; 189 this.setLayout(null);189 setLayout(null); 190 190 panelPat = new PanelPat(dlg, Ent.BODY); 191 191 panelPat.setBounds(new Rectangle(0, 0, 110, 160)); 192 this.add(panelPat, null);193 this.add(getRegionButton(regionAButton, 110, 0, 34, 30, "RegionA"), null);194 this.add(getRegionButton(regionBButton, 110, 32, 34, 30, "RegionB"), null);195 this.add(getRegionButton(regionCButton, 110, 64, 34, 30, "RegionC"), null);192 add(panelPat); 193 add(getRegionButton(regionAButton, 110, 0, 34, 30, "RegionA")); 194 add(getRegionButton(regionBButton, 110, 32, 34, 30, "RegionB")); 195 add(getRegionButton(regionCButton, 110, 64, 34, 30, "RegionC")); 196 196 197 197 elevLabel = new JLabel(Messages.getString("Elevation"), SwingConstants.CENTER); 198 198 elevLabel.setBounds(new Rectangle(140, 0, 90, 20)); 199 this.add(elevLabel, null);199 add(elevLabel); 200 200 elevBox = new JTextField(); 201 201 elevBox.setBounds(new Rectangle(160, 20, 50, 20)); 202 202 elevBox.setHorizontalAlignment(SwingConstants.CENTER); 203 this.add(elevBox, null);203 add(elevBox); 204 204 elevBox.addActionListener(alElev); 205 205 206 206 heightLabel = new JLabel(Messages.getString("Height"), SwingConstants.CENTER); 207 207 heightLabel.setBounds(new Rectangle(140, 40, 90, 20)); 208 this.add(heightLabel, null);208 add(heightLabel); 209 209 heightBox = new JTextField(); 210 210 heightBox.setBounds(new Rectangle(160, 60, 50, 20)); 211 211 heightBox.setHorizontalAlignment(SwingConstants.CENTER); 212 this.add(heightBox, null);212 add(heightBox); 213 213 heightBox.addActionListener(alHeight); 214 214 215 215 sourceLabel = new JLabel(Messages.getString("Source"), SwingConstants.CENTER); 216 216 sourceLabel.setBounds(new Rectangle(110, 80, 130, 20)); 217 this.add(sourceLabel, null);217 add(sourceLabel); 218 218 sourceBox = new JTextField(); 219 219 sourceBox.setBounds(new Rectangle(110, 100, 130, 20)); 220 220 sourceBox.setHorizontalAlignment(SwingConstants.CENTER); 221 this.add(sourceBox, null);221 add(sourceBox); 222 222 sourceBox.addActionListener(alSource); 223 223 224 224 infoLabel = new JLabel(Messages.getString("Information"), SwingConstants.CENTER); 225 225 infoLabel.setBounds(new Rectangle(110, 120, 130, 20)); 226 this.add(infoLabel, null);226 add(infoLabel); 227 227 infoBox = new JTextField(); 228 228 infoBox.setBounds(new Rectangle(110, 140, 130, 20)); 229 229 infoBox.setHorizontalAlignment(SwingConstants.CENTER); 230 this.add(infoBox, null);230 add(infoBox); 231 231 infoBox.addActionListener(alInfo); 232 232 233 233 statusLabel = new JLabel(Messages.getString("Status"), SwingConstants.CENTER); 234 234 statusLabel.setBounds(new Rectangle(250, 0, 100, 20)); 235 this.add(statusLabel, null);235 add(statusLabel); 236 236 statusBox = new JComboBox(); 237 237 statusBox.setBounds(new Rectangle(250, 20, 100, 20)); … … 255 255 addStsItem(Messages.getString("UnWatched"), Sts.UNWAT); 256 256 addStsItem(Messages.getString("Doubtful"), Sts.DOUBT); 257 this.add(statusBox, null);257 add(statusBox); 258 258 statusBox.addActionListener(alStatus); 259 259 260 260 constrLabel = new JLabel(Messages.getString("Construction"), SwingConstants.CENTER); 261 261 constrLabel.setBounds(new Rectangle(250, 40, 100, 20)); 262 this.add(constrLabel, null);262 add(constrLabel); 263 263 constrBox = new JComboBox(); 264 264 constrBox.setBounds(new Rectangle(250, 60, 100, 20)); … … 273 273 addCnsItem(Messages.getString("GRP"), Cns.GRP); 274 274 addCnsItem(Messages.getString("Painted"), Cns.PAINT); 275 this.add(constrBox, null);275 add(constrBox); 276 276 constrBox.addActionListener(alConstr); 277 277 278 278 conLabel = new JLabel(Messages.getString("Conspicuity"), SwingConstants.CENTER); 279 279 conLabel.setBounds(new Rectangle(250, 80, 100, 20)); 280 this.add(conLabel, null);280 add(conLabel); 281 281 conBox = new JComboBox(); 282 282 conBox.setBounds(new Rectangle(250, 100, 100, 20)); … … 284 284 addConItem(Messages.getString("Conspicuous"), Con.CONSP); 285 285 addConItem(Messages.getString("NotConspicuous"), Con.NCONS); 286 this.add(conBox, null);286 add(conBox); 287 287 conBox.addActionListener(alCon); 288 288 289 289 reflLabel = new JLabel(Messages.getString("Reflectivity"), SwingConstants.CENTER); 290 290 reflLabel.setBounds(new Rectangle(250, 120, 100, 20)); 291 this.add(reflLabel, null);291 add(reflLabel); 292 292 reflBox = new JComboBox(); 293 293 reflBox.setBounds(new Rectangle(250, 140, 100, 20)); … … 296 296 addReflItem(Messages.getString("NotConspicuous"), Con.NCONS); 297 297 addReflItem(Messages.getString("Reflector"), Con.REFL); 298 this.add(reflBox, null);298 add(reflBox); 299 299 reflBox.addActionListener(alRefl); 300 300 -
applications/editors/josm/plugins/smed/plugs/oseam/src/oseam/panels/PanelPat.java
r27200 r27219 57 57 dlg = dia; 58 58 ent = entity; 59 this.setLayout(null);59 setLayout(null); 60 60 panelCol = new PanelCol(dlg, ent); 61 61 panelCol.setBounds(new Rectangle(0, 0, 72, 160)); 62 this.add(panelCol, null);63 this.add(getPatButton(noneButton, 76, 0, 27, 27, "NoPat", Pat.NONE), null);64 this.add(getPatButton(horizButton, 76, 26, 27, 27, "HorizPat", Pat.HORIZ), null);65 this.add(getPatButton(vertButton, 76, 52, 27, 27, "VertPat", Pat.VERT), null);66 this.add(getPatButton(diagButton, 76, 78, 27, 27, "DiagPat", Pat.DIAG), null);67 this.add(getPatButton(squareButton, 76, 104, 27, 27, "SquarePat", Pat.SQUARE), null);68 this.add(getPatButton(borderButton, 76, 130, 27, 27, "BorderPat", Pat.BORDER), null);62 add(panelCol); 63 add(getPatButton(noneButton, 76, 0, 27, 27, "NoPat", Pat.NONE)); 64 add(getPatButton(horizButton, 76, 26, 27, 27, "HorizPat", Pat.HORIZ)); 65 add(getPatButton(vertButton, 76, 52, 27, 27, "VertPat", Pat.VERT)); 66 add(getPatButton(diagButton, 76, 78, 27, 27, "DiagPat", Pat.DIAG)); 67 add(getPatButton(squareButton, 76, 104, 27, 27, "SquarePat", Pat.SQUARE)); 68 add(getPatButton(borderButton, 76, 130, 27, 27, "BorderPat", Pat.BORDER)); 69 69 70 70 } -
applications/editors/josm/plugins/smed/plugs/oseam/src/oseam/panels/PanelPort.java
r27200 r27219 89 89 public PanelPort(OSeaMAction dia) { 90 90 dlg = dia; 91 this.setLayout(null);92 this.add(getShapeButton(pillarButton, 0, 0, 34, 32, "Pillar", Shp.PILLAR, Obj.BOYLAT), null);93 this.add(getShapeButton(sparButton, 0, 32, 34, 32, "Spar", Shp.SPAR, Obj.BOYLAT), null);94 this.add(getShapeButton(canButton, 0, 64, 34, 32, "Can", Shp.CAN, Obj.BOYLAT), null);95 this.add(getShapeButton(sphereButton, 0, 96, 34, 32, "Sphere", Shp.SPHERE, Obj.BOYLAT), null);96 this.add(getShapeButton(floatButton, 0, 128, 34, 32, "Float", Shp.FLOAT, Obj.FLTLAT), null);97 this.add(getShapeButton(beaconButton, 35, 0, 34, 32, "Beacon", Shp.BEACON, Obj.BCNLAT), null);98 this.add(getShapeButton(towerButton, 35, 32, 34, 32, "TowerB", Shp.TOWER, Obj.BCNLAT), null);99 this.add(getShapeButton(perchButton, 35, 64, 34, 32, "Perch", Shp.PERCH, Obj.BCNLAT), null);100 this.add(getShapeButton(stakeButton, 35, 96, 34, 32, "Stake", Shp.STAKE, Obj.BCNLAT), null);91 setLayout(null); 92 add(getShapeButton(pillarButton, 0, 0, 34, 32, "Pillar", Shp.PILLAR, Obj.BOYLAT)); 93 add(getShapeButton(sparButton, 0, 32, 34, 32, "Spar", Shp.SPAR, Obj.BOYLAT)); 94 add(getShapeButton(canButton, 0, 64, 34, 32, "Can", Shp.CAN, Obj.BOYLAT)); 95 add(getShapeButton(sphereButton, 0, 96, 34, 32, "Sphere", Shp.SPHERE, Obj.BOYLAT)); 96 add(getShapeButton(floatButton, 0, 128, 34, 32, "Float", Shp.FLOAT, Obj.FLTLAT)); 97 add(getShapeButton(beaconButton, 35, 0, 34, 32, "Beacon", Shp.BEACON, Obj.BCNLAT)); 98 add(getShapeButton(towerButton, 35, 32, 34, 32, "TowerB", Shp.TOWER, Obj.BCNLAT)); 99 add(getShapeButton(perchButton, 35, 64, 34, 32, "Perch", Shp.PERCH, Obj.BCNLAT)); 100 add(getShapeButton(stakeButton, 35, 96, 34, 32, "Stake", Shp.STAKE, Obj.BCNLAT)); 101 101 } 102 102 -
applications/editors/josm/plugins/smed/plugs/oseam/src/oseam/panels/PanelRadar.java
r27200 r27219 79 79 public PanelRadar(OSeaMAction dia) { 80 80 dlg = dia; 81 this.setLayout(null);82 this.add(getRadButton(noRadButton, 0, 3, 27, 27, "NoRadar", Rtb.NONE), null);83 this.add(getRadButton(reflButton, 0, 33, 27, 27, "RadarReflector", Rtb.REFLECTOR), null);84 this.add(getRadButton(ramarkButton, 0, 63, 27, 27, "Ramark", Rtb.RAMARK), null);85 this.add(getRadButton(raconButton, 0, 93, 27, 27, "Racon", Rtb.RACON), null);86 this.add(getRadButton(leadingButton, 0, 123, 27, 27, "LeadingRacon", Rtb.LEADING), null);81 setLayout(null); 82 add(getRadButton(noRadButton, 0, 3, 27, 27, "NoRadar", Rtb.NONE)); 83 add(getRadButton(reflButton, 0, 33, 27, 27, "RadarReflector", Rtb.REFLECTOR)); 84 add(getRadButton(ramarkButton, 0, 63, 27, 27, "Ramark", Rtb.RAMARK)); 85 add(getRadButton(raconButton, 0, 93, 27, 27, "Racon", Rtb.RACON)); 86 add(getRadButton(leadingButton, 0, 123, 27, 27, "LeadingRacon", Rtb.LEADING)); 87 87 88 88 groupLabel = new JLabel(Messages.getString("Group"), SwingConstants.CENTER); 89 89 groupLabel.setBounds(new Rectangle(30, 0, 100, 20)); 90 this.add(groupLabel, null);90 add(groupLabel); 91 91 groupBox = new JTextField(); 92 92 groupBox.setBounds(new Rectangle(55, 20, 50, 20)); 93 93 groupBox.setHorizontalAlignment(SwingConstants.CENTER); 94 this.add(groupBox, null);94 add(groupBox); 95 95 groupBox.addActionListener(alGroup); 96 96 97 97 periodLabel = new JLabel(Messages.getString("Period"), SwingConstants.CENTER); 98 98 periodLabel.setBounds(new Rectangle(130, 0, 100, 20)); 99 this.add(periodLabel, null);99 add(periodLabel); 100 100 periodBox = new JTextField(); 101 101 periodBox.setBounds(new Rectangle(155, 20, 50, 20)); 102 102 periodBox.setHorizontalAlignment(SwingConstants.CENTER); 103 this.add(periodBox, null);103 add(periodBox); 104 104 periodBox.addActionListener(alPeriod); 105 105 106 106 seqLabel = new JLabel(Messages.getString("Sequence"), SwingConstants.CENTER); 107 107 seqLabel.setBounds(new Rectangle(30, 40, 100, 20)); 108 this.add(seqLabel, null);108 add(seqLabel); 109 109 seqBox = new JTextField(); 110 110 seqBox.setBounds(new Rectangle(55, 60, 50, 20)); 111 111 seqBox.setHorizontalAlignment(SwingConstants.CENTER); 112 this.add(seqBox, null);112 add(seqBox); 113 113 seqBox.addActionListener(alSeq); 114 114 115 115 rangeLabel = new JLabel(Messages.getString("Range"), SwingConstants.CENTER); 116 116 rangeLabel.setBounds(new Rectangle(130, 40, 100, 20)); 117 this.add(rangeLabel, null);117 add(rangeLabel); 118 118 rangeBox = new JTextField(); 119 119 rangeBox.setBounds(new Rectangle(155, 60, 50, 20)); … … 123 123 sectorsLabel = new JLabel(Messages.getString("VisibleSector"), SwingConstants.CENTER); 124 124 sectorsLabel.setBounds(new Rectangle(75, 85, 100, 20)); 125 this.add(sectorsLabel, null);125 add(sectorsLabel); 126 126 127 127 sector1Label = new JLabel(Messages.getString("Start"), SwingConstants.CENTER); 128 128 sector1Label.setBounds(new Rectangle(30, 100, 100, 20)); 129 this.add(sector1Label, null);129 add(sector1Label); 130 130 sector1Box = new JTextField(); 131 131 sector1Box.setBounds(new Rectangle(55, 120, 50, 20)); 132 132 sector1Box.setHorizontalAlignment(SwingConstants.CENTER); 133 this.add(sector1Box, null);133 add(sector1Box); 134 134 sector1Box.addActionListener(alSector1); 135 135 136 136 sector2Label = new JLabel(Messages.getString("End"), SwingConstants.CENTER); 137 137 sector2Label.setBounds(new Rectangle(130, 100, 100, 20)); 138 this.add(sector2Label, null);138 add(sector2Label); 139 139 sector2Box = new JTextField(); 140 140 sector2Box.setBounds(new Rectangle(155, 120, 50, 20)); 141 141 sector2Box.setHorizontalAlignment(SwingConstants.CENTER); 142 this.add(sector2Box, null);142 add(sector2Box); 143 143 sector2Box.addActionListener(alSector2); 144 144 } -
applications/editors/josm/plugins/smed/plugs/oseam/src/oseam/panels/PanelSaw.java
r27200 r27219 47 47 public PanelSaw(OSeaMAction dia) { 48 48 dlg = dia; 49 this.setLayout(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(floatButton, 0, 96, 34, 32, "Float", Shp.FLOAT, Obj.FLTSAW), null);54 this.add(getShapeButton(beaconButton, 0, 128, 34, 32, "Beacon", Shp.BEACON, Obj.BCNSAW), null);49 setLayout(null); 50 add(getShapeButton(pillarButton, 0, 0, 34, 32, "Pillar", Shp.PILLAR, Obj.BOYSAW)); 51 add(getShapeButton(sparButton, 0, 32, 34, 32, "Spar", Shp.SPAR, Obj.BOYSAW)); 52 add(getShapeButton(sphereButton, 0, 64, 34, 32, "Sphere", Shp.SPHERE, Obj.BOYSAW)); 53 add(getShapeButton(floatButton, 0, 96, 34, 32, "Float", Shp.FLOAT, Obj.FLTSAW)); 54 add(getShapeButton(beaconButton, 0, 128, 34, 32, "Beacon", Shp.BEACON, Obj.BCNSAW)); 55 55 } 56 56 -
applications/editors/josm/plugins/smed/plugs/oseam/src/oseam/panels/PanelSectors.java
r27216 r27219 46 46 super(Messages.getString("SectorTable")); 47 47 dlg = dia; 48 this.setSize(900, 100);49 this.setVisible(true);50 this.setAlwaysOnTop(true);51 this.setLocation(450, 0);52 this.setDefaultCloseOperation(JFrame.HIDE_ON_CLOSE);53 this.setLayout(null);48 setLayout(null); 49 setSize(900, 100); 50 setVisible(true); 51 setAlwaysOnTop(true); 52 setLocation(450, 0); 53 setDefaultCloseOperation(JFrame.HIDE_ON_CLOSE); 54 54 minusButton = new JButton(new ImageIcon(getClass().getResource("/images/MinusButton.png"))); 55 55 minusButton.setBounds(0, 0, 32, 34); 56 56 minusButton.addActionListener(alMinusButton); 57 this.add(minusButton);57 add(minusButton); 58 58 plusButton = new JButton(new ImageIcon(getClass().getResource("/images/PlusButton.png"))); 59 59 plusButton.setBounds(0, 34, 32, 34); 60 60 plusButton.addActionListener(alPlusButton); 61 this.add(plusButton);61 add(plusButton); 62 62 panel = new JPanel(new BorderLayout()); 63 63 panel.setBounds(40, 0, 860, 512); … … 67 67 table.setAutoResizeMode(JTable.AUTO_RESIZE_ALL_COLUMNS); 68 68 panel.add(new JScrollPane(table)); 69 this.getContentPane().add(panel);69 getContentPane().add(panel); 70 70 71 71 table.setSize(860, ((table.getRowCount() * 16) + 20)); … … 253 253 public ColourCellRenderer() { 254 254 super(); 255 setLayout(new BorderLayout(0, 0));256 col1Label = new JLabel( " ");255 setLayout(new GridLayout(1, 2, 0, 0)); 256 col1Label = new JLabel(); 257 257 col1Label.setOpaque(true); 258 add(col1Label , BorderLayout.WEST);259 col2Label = new JLabel( " ");258 add(col1Label); 259 col2Label = new JLabel(); 260 260 col2Label.setOpaque(true); 261 add(col2Label , BorderLayout.EAST);261 add(col2Label); 262 262 } 263 263 public Component getTableCellRendererComponent(JTable table, Object value, boolean isSelected, boolean hasFocus, int rowIndex, int vColIndex) { … … 292 292 public void syncPanel() { 293 293 if (table.getRowCount() > 3) { 294 this.setSize(900, ((table.getRowCount() * 16) + 40));294 setSize(900, ((table.getRowCount() * 16) + 40)); 295 295 } else { 296 this.setSize(900, 100);296 setSize(900, 100); 297 297 } 298 298 } -
applications/editors/josm/plugins/smed/plugs/oseam/src/oseam/panels/PanelSpec.java
r27200 r27219 85 85 public PanelSpec(OSeaMAction dia) { 86 86 dlg = dia; 87 88 this.setLayout(null); 89 this.add(getShapeButton(pillarButton, 0, 0, 34, 32, "Pillar", Shp.PILLAR, Obj.BOYSPP), null); 90 this.add(getShapeButton(sparButton, 34, 0, 34, 32, "Spar", Shp.SPAR, Obj.BOYSPP), null); 91 this.add(getShapeButton(canButton, 68, 0, 34, 32, "Can", Shp.CAN, Obj.BOYSPP), null); 92 this.add(getShapeButton(coneButton, 102, 0, 34, 32, "Cone", Shp.CONE, Obj.BOYSPP), null); 93 this.add(getShapeButton(sphereButton, 0, 32, 34, 32, "Sphere", Shp.SPHERE, Obj.BOYSPP), null); 94 this.add(getShapeButton(barrelButton, 34, 32, 34, 32, "Barrel", Shp.BARREL, Obj.BOYSPP), null); 95 this.add(getShapeButton(superButton, 68, 32, 34, 32, "Super", Shp.SUPER, Obj.BOYSPP), null); 96 this.add(getShapeButton(floatButton, 102, 32, 34, 32, "Float", Shp.FLOAT, Obj.LITFLT), null); 97 this.add(getShapeButton(beaconButton, 0, 64, 34, 32, "Beacon", Shp.BEACON, Obj.BCNSPP), null); 98 this.add(getShapeButton(towerButton, 34, 64, 34, 32, "TowerB", Shp.TOWER, Obj.BCNSPP), null); 99 this.add(getShapeButton(stakeButton, 68, 64, 34, 32, "Stake", Shp.STAKE, Obj.BCNSPP), null); 100 this.add(getShapeButton(cairnButton, 102, 64, 34, 32, "CairnB", Shp.CAIRN, Obj.BCNSPP), null); 87 setLayout(null); 88 add(getShapeButton(pillarButton, 0, 0, 34, 32, "Pillar", Shp.PILLAR, Obj.BOYSPP)); 89 add(getShapeButton(sparButton, 34, 0, 34, 32, "Spar", Shp.SPAR, Obj.BOYSPP)); 90 add(getShapeButton(canButton, 68, 0, 34, 32, "Can", Shp.CAN, Obj.BOYSPP)); 91 add(getShapeButton(coneButton, 102, 0, 34, 32, "Cone", Shp.CONE, Obj.BOYSPP)); 92 add(getShapeButton(sphereButton, 0, 32, 34, 32, "Sphere", Shp.SPHERE, Obj.BOYSPP)); 93 add(getShapeButton(barrelButton, 34, 32, 34, 32, "Barrel", Shp.BARREL, Obj.BOYSPP)); 94 add(getShapeButton(superButton, 68, 32, 34, 32, "Super", Shp.SUPER, Obj.BOYSPP)); 95 add(getShapeButton(floatButton, 102, 32, 34, 32, "Float", Shp.FLOAT, Obj.LITFLT)); 96 add(getShapeButton(beaconButton, 0, 64, 34, 32, "Beacon", Shp.BEACON, Obj.BCNSPP)); 97 add(getShapeButton(towerButton, 34, 64, 34, 32, "TowerB", Shp.TOWER, Obj.BCNSPP)); 98 add(getShapeButton(stakeButton, 68, 64, 34, 32, "Stake", Shp.STAKE, Obj.BCNSPP)); 99 add(getShapeButton(cairnButton, 102, 64, 34, 32, "CairnB", Shp.CAIRN, Obj.BCNSPP)); 101 100 102 101 categoryLabel = new JLabel(Messages.getString("Category"), SwingConstants.CENTER); 103 102 categoryLabel.setBounds(new Rectangle(5, 100, 160, 20)); 104 this.add(categoryLabel, null);103 add(categoryLabel); 105 104 categoryBox = new JComboBox(); 106 105 categoryBox.setBounds(new Rectangle(5, 120, 160, 20)); 107 this.add(categoryBox, null);106 add(categoryBox); 108 107 categoryBox.addActionListener(alCategoryBox); 109 108 addCatItem("", Cat.NONE); … … 129 128 topmarkButton.setBorder(BorderFactory.createLoweredBevelBorder()); 130 129 topmarkButton.addActionListener(alTop); 131 this.add(topmarkButton);130 add(topmarkButton); 132 131 } 133 132 -
applications/editors/josm/plugins/smed/plugs/oseam/src/oseam/panels/PanelStbd.java
r27200 r27219 89 89 public PanelStbd(OSeaMAction dia) { 90 90 dlg = dia; 91 this.setLayout(null);92 this.add(getShapeButton(pillarButton, 0, 0, 34, 32, "Pillar", Shp.PILLAR, Obj.BOYLAT), null);93 this.add(getShapeButton(sparButton, 0, 32, 34, 32, "Spar", Shp.SPAR, Obj.BOYLAT), null);94 this.add(getShapeButton(coneButton, 0, 64, 34, 32, "Cone", Shp.CONE, Obj.BOYLAT), null);95 this.add(getShapeButton(sphereButton, 0, 96, 34, 32, "Sphere", Shp.SPHERE, Obj.BOYLAT), null);96 this.add(getShapeButton(floatButton, 0, 128, 34, 32, "Float", Shp.FLOAT, Obj.FLTLAT), null);97 this.add(getShapeButton(beaconButton, 35, 0, 34, 32, "Beacon", Shp.BEACON, Obj.BCNLAT), null);98 this.add(getShapeButton(towerButton, 35, 32, 34, 32, "TowerB", Shp.TOWER, Obj.BCNLAT), null);99 this.add(getShapeButton(perchButton, 35, 64, 34, 32, "Perch", Shp.PERCH, Obj.BCNLAT), null);100 this.add(getShapeButton(stakeButton, 35, 96, 34, 32, "Stake", Shp.STAKE, Obj.BCNLAT), null);91 setLayout(null); 92 add(getShapeButton(pillarButton, 0, 0, 34, 32, "Pillar", Shp.PILLAR, Obj.BOYLAT)); 93 add(getShapeButton(sparButton, 0, 32, 34, 32, "Spar", Shp.SPAR, Obj.BOYLAT)); 94 add(getShapeButton(coneButton, 0, 64, 34, 32, "Cone", Shp.CONE, Obj.BOYLAT)); 95 add(getShapeButton(sphereButton, 0, 96, 34, 32, "Sphere", Shp.SPHERE, Obj.BOYLAT)); 96 add(getShapeButton(floatButton, 0, 128, 34, 32, "Float", Shp.FLOAT, Obj.FLTLAT)); 97 add(getShapeButton(beaconButton, 35, 0, 34, 32, "Beacon", Shp.BEACON, Obj.BCNLAT)); 98 add(getShapeButton(towerButton, 35, 32, 34, 32, "TowerB", Shp.TOWER, Obj.BCNLAT)); 99 add(getShapeButton(perchButton, 35, 64, 34, 32, "Perch", Shp.PERCH, Obj.BCNLAT)); 100 add(getShapeButton(stakeButton, 35, 96, 34, 32, "Stake", Shp.STAKE, Obj.BCNLAT)); 101 101 } 102 102 -
applications/editors/josm/plugins/smed/plugs/oseam/src/oseam/panels/PanelTop.java
r27200 r27219 50 50 public PanelTop(OSeaMAction dia) { 51 51 dlg = dia; 52 this.setLayout(null);52 setLayout(null); 53 53 panelPat = new PanelPat(dlg, Ent.TOPMARK); 54 54 panelPat.setBounds(new Rectangle(160, 0, 110, 160)); 55 this.add(panelPat, null);56 this.add(getTopButton(noTopButton, 0, 5, 27, 27, "NoTop", Top.NONE), null);57 this.add(getTopButton(canTopButton, 30, 5, 27, 27, "CanTop", Top.CAN), null);58 this.add(getTopButton(coneTopButton, 60, 5, 27, 27, "ConeTop", Top.CONE), null);59 this.add(getTopButton(sphereTopButton, 90, 5, 27, 27, "SphereTop", Top.SPHERE), null);60 this.add(getTopButton(XTopButton, 120, 5, 27, 27, "XTop", Top.X_SHAPE), null);61 this.add(getTopButton(northTopButton, 0, 35, 27, 27, "NorthTop", Top.NORTH), null);62 this.add(getTopButton(southTopButton, 30, 35, 27, 27, "SouthTop", Top.SOUTH), null);63 this.add(getTopButton(eastTopButton, 60, 35, 27, 27, "EastTop", Top.EAST), null);64 this.add(getTopButton(westTopButton, 90, 35, 27, 27, "WestTop", Top.WEST), null);65 this.add(getTopButton(spheres2TopButton, 120, 35, 27, 27, "Spheres2Top", Top.SPHERES2), null);66 this.add(getTopButton(boardDayButton, 0, 65, 27, 27, "BoardDay", Top.BOARD), null);67 this.add(getTopButton(diamondDayButton, 30, 65, 27, 27, "DiamondDay", Top.DIAMOND), null);68 this.add(getTopButton(triangleDayButton, 60, 65, 27, 27, "TriangleDay", Top.TRIANGLE), null);69 this.add(getTopButton(triangleInvDayButton, 90, 65, 27, 27, "TriangleInvDay", Top.TRIANGLE_INV), null);70 this.add(getTopButton(squareDayButton, 120, 65, 27, 27, "SquareDay", Top.SQUARE), null);71 this.add(getTopButton(circleDayButton, 120, 95, 27, 27, "CircleDay", Top.CIRCLE), null);72 this.add(getMoorButton(mooringTopButton, 0, 95, 27, 27, "MooringTop"), null);55 add(panelPat); 56 add(getTopButton(noTopButton, 0, 5, 27, 27, "NoTop", Top.NONE)); 57 add(getTopButton(canTopButton, 30, 5, 27, 27, "CanTop", Top.CAN)); 58 add(getTopButton(coneTopButton, 60, 5, 27, 27, "ConeTop", Top.CONE)); 59 add(getTopButton(sphereTopButton, 90, 5, 27, 27, "SphereTop", Top.SPHERE)); 60 add(getTopButton(XTopButton, 120, 5, 27, 27, "XTop", Top.X_SHAPE)); 61 add(getTopButton(northTopButton, 0, 35, 27, 27, "NorthTop", Top.NORTH)); 62 add(getTopButton(southTopButton, 30, 35, 27, 27, "SouthTop", Top.SOUTH)); 63 add(getTopButton(eastTopButton, 60, 35, 27, 27, "EastTop", Top.EAST)); 64 add(getTopButton(westTopButton, 90, 35, 27, 27, "WestTop", Top.WEST)); 65 add(getTopButton(spheres2TopButton, 120, 35, 27, 27, "Spheres2Top", Top.SPHERES2)); 66 add(getTopButton(boardDayButton, 0, 65, 27, 27, "BoardDay", Top.BOARD)); 67 add(getTopButton(diamondDayButton, 30, 65, 27, 27, "DiamondDay", Top.DIAMOND)); 68 add(getTopButton(triangleDayButton, 60, 65, 27, 27, "TriangleDay", Top.TRIANGLE)); 69 add(getTopButton(triangleInvDayButton, 90, 65, 27, 27, "TriangleInvDay", Top.TRIANGLE_INV)); 70 add(getTopButton(squareDayButton, 120, 65, 27, 27, "SquareDay", Top.SQUARE)); 71 add(getTopButton(circleDayButton, 120, 95, 27, 27, "CircleDay", Top.CIRCLE)); 72 add(getMoorButton(mooringTopButton, 0, 95, 27, 27, "MooringTop")); 73 73 } 74 74 -
applications/editors/josm/plugins/smed/plugs/oseam/src/oseam/seamarks/SeaMark.java
r27214 r27219 1970 1970 for (int i = 1; i < sectors.size(); i++) { 1971 1971 g2.setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON); 1972 g2.setPaint(ColMAP.get(getLightAtt(Att.COL, i)));1973 1972 g2.setStroke(new BasicStroke(6.0f)); 1974 1973 if (!((String)getLightAtt(Att.BEG, i)).isEmpty() && !((String)getLightAtt(Att.END, i)).isEmpty()) { 1975 Double a0 = 270 - Double.parseDouble((String)getLightAtt(Att.BEG, i)); 1976 Double da = 270 - Double.parseDouble((String)getLightAtt(Att.END, i)) - a0; 1977 da -= da > 0 ? 360 : 0; 1978 g2.draw(new Arc2D.Double(12, 15, 140, 140, a0, da, Arc2D.OPEN)); 1974 if (getLightAtt(Att.COL, i) != Col.UNKNOWN) { 1975 g2.setPaint(ColMAP.get(getLightAtt(Att.COL, i))); 1976 Double a0 = 270 - Double.parseDouble((String) getLightAtt(Att.BEG, i)); 1977 Double da = 270 - Double.parseDouble((String) getLightAtt(Att.END, i)) - a0; 1978 da -= da > 0 ? 360 : 0; 1979 g2.draw(new Arc2D.Double(12, 15, 140, 140, a0, da, Arc2D.OPEN)); 1980 } 1981 if (getLightAtt(Att.ALT, i) != Col.UNKNOWN) { 1982 g2.setPaint(ColMAP.get(getLightAtt(Att.ALT, i))); 1983 Double a0 = 270 - Double.parseDouble((String) getLightAtt(Att.BEG, i)); 1984 Double da = 270 - Double.parseDouble((String) getLightAtt(Att.END, i)) - a0; 1985 da -= da > 0 ? 360 : 0; 1986 g2.draw(new Arc2D.Double(17, 20, 130, 130, a0, da, Arc2D.OPEN)); 1987 } 1979 1988 } 1980 1989 }
Note:
See TracChangeset
for help on using the changeset viewer.