Changeset 24426 in osm
- Timestamp:
- 2010-11-27T11:25:47+01:00 (14 years ago)
- Location:
- applications/editors/josm/plugins/smed/plugs/harbour/src/harbour
- Files:
-
- 1 deleted
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/smed/plugs/harbour/src/harbour/panels/PanelLimits.java
r24417 r24426 2 2 3 3 import harbour.widgets.LightTile; 4 import harbour.widgets.TextFieldEx; 5 import harbour.widgets.TristateCheckBox; 4 6 5 7 import javax.swing.BorderFactory; … … 30 32 private JLabel mLabel = null; 31 33 private JComboBox allComboBox = null; 32 private JLabel olLabel = null;33 private JComboBox olComboBox = null;34 34 private JLabel grLabel = null; 35 private JComboBox turnComboBox = null;36 private JLabel turnLabel = null;37 35 private JButton grButton = null; 38 private JComboBox impComboBox = null; 39 private JLabel impLabel = null; 40 private JComboBox usComboBox = null; 41 private JLabel usLabel = null; 42 private JComboBox etaComboBox = null; 43 private JLabel etaLabel = null; 44 private JTextField sizeTextField = null; 45 private JLabel sizeLabel = null; 46 private JRadioButton sizRadioButton = null; 47 private JTextField chTextField = null; 48 private JLabel chLabel = null; 49 private JRadioButton chRadioButton = null; 50 private JTextField tieTextField = null; 51 private JLabel tieLabel = null; 52 private JRadioButton tieRadioButton = null; 53 private JTextField cargoTextField = null; 54 private JLabel cargoLabel = null; 55 private JRadioButton cargoRadioButton = null; 56 private JTextField oilTextField = null; 57 private JLabel oilLabel = null; 58 private JRadioButton oilRadioButton = null; 36 private JCheckBox olCheckBox = null; 37 private JCheckBox turnCheckBox = null; 38 private JCheckBox impCheckBox = null; 39 private JCheckBox usCheckBox = null; 40 private JCheckBox etaCheckBox = null; 41 private JPanel jPanel = null; 59 42 public PanelLimits() { 60 43 super(); … … 67 50 */ 68 51 private void initialize() { 69 oilLabel = new JLabel();70 oilLabel.setBounds(new Rectangle(215, 189, 65, 16));71 oilLabel.setFont(new Font("Dialog", Font.PLAIN, 12));72 oilLabel.setText("Oelterminal");73 cargoLabel = new JLabel();74 cargoLabel.setBounds(new Rectangle(215, 165, 80, 16));75 cargoLabel.setFont(new Font("Dialog", Font.PLAIN, 12));76 cargoLabel.setText("Frachtanleger");77 tieLabel = new JLabel();78 tieLabel.setBounds(new Rectangle(215, 142, 63, 16));79 tieLabel.setFont(new Font("Dialog", Font.PLAIN, 12));80 tieLabel.setText("Ankerplatz");81 chLabel = new JLabel();82 chLabel.setBounds(new Rectangle(215, 119, 50, 16));83 chLabel.setFont(new Font("Dialog", Font.PLAIN, 12));84 chLabel.setText("Channel");85 sizeLabel = new JLabel();86 sizeLabel.setBounds(new Rectangle(215, 96, 85, 16));87 sizeLabel.setFont(new Font("Dialog", Font.PLAIN, 12));88 sizeLabel.setText("Schiffsgroesse");89 etaLabel = new JLabel();90 etaLabel.setBounds(new Rectangle(55, 189, 80, 16));91 etaLabel.setFont(new Font("Dialog", Font.PLAIN, 12));92 etaLabel.setText("ETA Nachricht");93 usLabel = new JLabel();94 usLabel.setBounds(new Rectangle(55, 167, 80, 13));95 usLabel.setFont(new Font("Dialog", Font.PLAIN, 12));96 usLabel.setText("US.Vertretung");97 impLabel = new JLabel();98 impLabel.setBounds(new Rectangle(55, 143, 55, 16));99 impLabel.setFont(new Font("Dialog", Font.PLAIN, 12));100 impLabel.setText("Zollhafen");101 turnLabel = new JLabel();102 turnLabel.setBounds(new Rectangle(55, 121, 64, 16));103 turnLabel.setFont(new Font("Dialog", Font.PLAIN, 12));104 turnLabel.setText("Wendeplatz");105 52 grLabel = new JLabel(); 106 grLabel.setBounds(new Rectangle(215, 222, 70, 16));53 grLabel.setBounds(new Rectangle(215, 222, 80, 16)); 107 54 grLabel.setFont(new Font("Dialog", Font.PLAIN, 12)); 108 55 grLabel.setText("Ankergrund"); 109 olLabel = new JLabel();110 olLabel.setBounds(new Rectangle(55, 96, 90, 16));111 olLabel.setFont(new Font("Dialog", Font.PLAIN, 12));112 olLabel.setText("Overhead Limits");113 56 mLabel = new JLabel(); 114 57 mLabel.setBounds(new Rectangle(30, 49, 20, 20)); … … 116 59 mLabel.setText("m"); 117 60 limLabel = new JLabel(); 118 limLabel.setBounds(new Rectangle(80, 2, 1 60, 20));61 limLabel.setBounds(new Rectangle(80, 2, 195, 20)); 119 62 limLabel.setText("Einfahrtsbeschraenkungen"); 120 63 this.setSize(new Dimension(330, 270)); … … 130 73 this.add(mLabel, null); 131 74 this.add(getAllComboBox(), null); 132 this.add(olLabel, null);133 this.add(getOlComboBox(), null);134 75 this.add(grLabel, null); 135 this.add(getTurnComboBox(), null);136 this.add(turnLabel, null);137 76 this.add(getGrButton(), null); 138 this.add(getImpComboBox(), null); 139 this.add(impLabel, null); 140 this.add(getUsComboBox(), null); 141 this.add(usLabel, null); 142 this.add(getEtaComboBox(), null); 143 this.add(etaLabel, null); 144 this.add(getSizeTextField(), null); 145 this.add(sizeLabel, null); 146 this.add(getSizRadioButton(), null); 147 this.add(getChTextField(), null); 148 this.add(chLabel, null); 149 this.add(getChRadioButton(), null); 150 this.add(getTieTextField(), null); 151 this.add(tieLabel, null); 152 this.add(getTieRadioButton(), null); 153 this.add(getCargoTextField(), null); 154 this.add(cargoLabel, null); 155 this.add(getCargoRadioButton(), null); 156 this.add(getOilTextField(), null); 157 this.add(oilLabel, null); 158 this.add(getOilRadioButton(), null); 77 this.add(getOlCheckBox(), null); 78 this.add(getTurnCheckBox(), null); 79 this.add(getImpCheckBox(), null); 80 this.add(getUsCheckBox(), null); 81 this.add(getEtaCheckBox(), null); 82 this.add(getJPanel(), null); 159 83 } 160 84 … … 182 106 if (swellCheckBox1 == null) { 183 107 swellCheckBox1 = new JCheckBox(); 184 swellCheckBox1.setBounds(new Rectangle(86, 23, 76, 20));108 swellCheckBox1.setBounds(new Rectangle(86, 23, 85, 20)); 185 109 swellCheckBox1.setFont(new Font("Dialog", Font.PLAIN, 12)); 186 110 swellCheckBox1.setText("Seegang"); … … 240 164 if (allComboBox == null) { 241 165 allComboBox = new JComboBox(); 242 allComboBox.setBounds(new Rectangle(1 25, 70, 200, 20));166 allComboBox.setBounds(new Rectangle(135, 70, 190, 20)); 243 167 } 244 168 return allComboBox; 245 }246 247 /**248 * This method initializes olComboBox249 *250 * @return javax.swing.JComboBox251 */252 private JComboBox getOlComboBox() {253 if (olComboBox == null) {254 olComboBox = new JComboBox();255 olComboBox.setBounds(new Rectangle(2, 95, 50, 20));256 }257 return olComboBox;258 }259 260 /**261 * This method initializes turnComboBox262 *263 * @return javax.swing.JComboBox264 */265 private JComboBox getTurnComboBox() {266 if (turnComboBox == null) {267 turnComboBox = new JComboBox();268 turnComboBox.setBounds(new Rectangle(2, 118, 50, 20));269 }270 return turnComboBox;271 169 } 272 170 … … 286 184 287 185 /** 288 * This method initializes impComboBox 289 * 290 * @return javax.swing.JComboBox 291 */ 292 private JComboBox getImpComboBox() { 293 if (impComboBox == null) { 294 impComboBox = new JComboBox(); 295 impComboBox.setBounds(new Rectangle(2, 141, 50, 20)); 296 } 297 return impComboBox; 298 } 299 300 /** 301 * This method initializes usComboBox 302 * 303 * @return javax.swing.JComboBox 304 */ 305 private JComboBox getUsComboBox() { 306 if (usComboBox == null) { 307 usComboBox = new JComboBox(); 308 usComboBox.setBounds(new Rectangle(2, 164, 50, 20)); 309 } 310 return usComboBox; 311 } 312 313 /** 314 * This method initializes etaComboBox 315 * 316 * @return javax.swing.JComboBox 317 */ 318 private JComboBox getEtaComboBox() { 319 if (etaComboBox == null) { 320 etaComboBox = new JComboBox(); 321 etaComboBox.setBounds(new Rectangle(2, 187, 50, 20)); 322 } 323 return etaComboBox; 324 } 325 326 /** 327 * This method initializes sizeTextField 328 * 329 * @return javax.swing.JTextField 330 */ 331 private JTextField getSizeTextField() { 332 if (sizeTextField == null) { 333 sizeTextField = new JTextField(); 334 sizeTextField.setBounds(new Rectangle(150, 95, 65, 20)); 335 } 336 return sizeTextField; 337 } 338 339 /** 340 * This method initializes sizRadioButton 341 * 342 * @return javax.swing.JRadioButton 343 */ 344 private JRadioButton getSizRadioButton() { 345 if (sizRadioButton == null) { 346 sizRadioButton = new JRadioButton(); 347 sizRadioButton.setBounds(new Rectangle(305, 95, 20, 20)); 348 } 349 return sizRadioButton; 350 } 351 352 /** 353 * This method initializes chTextField 354 * 355 * @return javax.swing.JTextField 356 */ 357 private JTextField getChTextField() { 358 if (chTextField == null) { 359 chTextField = new JTextField(); 360 chTextField.setBounds(new Rectangle(150, 118, 65, 20)); 361 } 362 return chTextField; 363 } 364 365 /** 366 * This method initializes chRadioButton 367 * 368 * @return javax.swing.JRadioButton 369 */ 370 private JRadioButton getChRadioButton() { 371 if (chRadioButton == null) { 372 chRadioButton = new JRadioButton(); 373 chRadioButton.setBounds(new Rectangle(305, 118, 20, 20)); 374 } 375 return chRadioButton; 376 } 377 378 /** 379 * This method initializes tieTextField 380 * 381 * @return javax.swing.JTextField 382 */ 383 private JTextField getTieTextField() { 384 if (tieTextField == null) { 385 tieTextField = new JTextField(); 386 tieTextField.setBounds(new Rectangle(150, 141, 65, 20)); 387 } 388 return tieTextField; 389 } 390 391 /** 392 * This method initializes tieRadioButton 393 * 394 * @return javax.swing.JRadioButton 395 */ 396 private JRadioButton getTieRadioButton() { 397 if (tieRadioButton == null) { 398 tieRadioButton = new JRadioButton(); 399 tieRadioButton.setBounds(new Rectangle(305, 141, 20, 20)); 400 } 401 return tieRadioButton; 402 } 403 404 /** 405 * This method initializes cargoTextField 406 * 407 * @return javax.swing.JTextField 408 */ 409 private JTextField getCargoTextField() { 410 if (cargoTextField == null) { 411 cargoTextField = new JTextField(); 412 cargoTextField.setBounds(new Rectangle(150, 164, 65, 20)); 413 } 414 return cargoTextField; 415 } 416 417 /** 418 * This method initializes cargoRadioButton 419 * 420 * @return javax.swing.JRadioButton 421 */ 422 private JRadioButton getCargoRadioButton() { 423 if (cargoRadioButton == null) { 424 cargoRadioButton = new JRadioButton(); 425 cargoRadioButton.setBounds(new Rectangle(305, 164, 20, 20)); 426 } 427 return cargoRadioButton; 428 } 429 430 /** 431 * This method initializes oilTextField 432 * 433 * @return javax.swing.JTextField 434 */ 435 private JTextField getOilTextField() { 436 if (oilTextField == null) { 437 oilTextField = new JTextField(); 438 oilTextField.setBounds(new Rectangle(150, 187, 65, 20)); 439 } 440 return oilTextField; 441 } 442 443 /** 444 * This method initializes oilRadioButton 445 * 446 * @return javax.swing.JRadioButton 447 */ 448 private JRadioButton getOilRadioButton() { 449 if (oilRadioButton == null) { 450 oilRadioButton = new JRadioButton(); 451 oilRadioButton.setBounds(new Rectangle(305, 188, 20, 20)); 452 } 453 return oilRadioButton; 186 * This method initializes olCheckBox 187 * 188 * @return javax.swing.JCheckBox 189 */ 190 private JCheckBox getOlCheckBox() { 191 if (olCheckBox == null) { 192 olCheckBox = new TristateCheckBox(); 193 olCheckBox.setBounds(new Rectangle(2, 95, 133, 20)); 194 olCheckBox.setFont(new Font("Dialog", Font.PLAIN, 12)); 195 olCheckBox.setText("Overhead Limits"); 196 } 197 return olCheckBox; 198 } 199 200 /** 201 * This method initializes turnCheckBox 202 * 203 * @return javax.swing.JCheckBox 204 */ 205 private JCheckBox getTurnCheckBox() { 206 if (turnCheckBox == null) { 207 turnCheckBox = new TristateCheckBox(); 208 turnCheckBox.setBounds(new Rectangle(2, 118, 105, 20)); 209 turnCheckBox.setFont(new Font("Dialog", Font.PLAIN, 12)); 210 turnCheckBox.setText("Wendeplatz"); 211 } 212 return turnCheckBox; 213 } 214 215 /** 216 * This method initializes impCheckBox 217 * 218 * @return javax.swing.JCheckBox 219 */ 220 private JCheckBox getImpCheckBox() { 221 if (impCheckBox == null) { 222 impCheckBox = new TristateCheckBox(); 223 impCheckBox.setBounds(new Rectangle(2, 141, 95, 20)); 224 impCheckBox.setFont(new Font("Dialog", Font.PLAIN, 12)); 225 impCheckBox.setText("Zollhafen"); 226 } 227 return impCheckBox; 228 } 229 230 /** 231 * This method initializes usCheckBox 232 * 233 * @return javax.swing.JCheckBox 234 */ 235 private JCheckBox getUsCheckBox() { 236 if (usCheckBox == null) { 237 usCheckBox = new TristateCheckBox(); 238 usCheckBox.setBounds(new Rectangle(2, 164, 125, 20)); 239 usCheckBox.setFont(new Font("Dialog", Font.PLAIN, 12)); 240 usCheckBox.setText("US. Vertretung"); 241 } 242 return usCheckBox; 243 } 244 245 /** 246 * This method initializes etaCheckBox 247 * 248 * @return javax.swing.JCheckBox 249 */ 250 private JCheckBox getEtaCheckBox() { 251 if (etaCheckBox == null) { 252 etaCheckBox = new TristateCheckBox(); 253 etaCheckBox.setBounds(new Rectangle(2, 187, 120, 20)); 254 etaCheckBox.setText("ETA Nachricht"); 255 etaCheckBox.setFont(new Font("Dialog", Font.PLAIN, 12)); 256 } 257 return etaCheckBox; 258 } 259 260 /** 261 * This method initializes jPanel 262 * 263 * @return javax.swing.JPanel 264 */ 265 private JPanel getJPanel() { 266 if (jPanel == null) { 267 jPanel = new TextFieldEx(); 268 jPanel.setLayout(null); 269 jPanel.setBounds(new Rectangle(135, 95, 190, 112)); 270 } 271 return jPanel; 454 272 } 455 273 }
Note:
See TracChangeset
for help on using the changeset viewer.