Changeset 239 in tmcsimulator for trunk/src/atmsdriver/trafficeventseditor
- Timestamp:
- 12/20/2017 02:15:21 AM (8 years ago)
- Location:
- trunk/src/atmsdriver/trafficeventseditor
- Files:
-
- 3 edited
-
TimeFrames.java (modified) (1 diff)
-
TrafficEventsEditor.form (modified) (6 diffs)
-
TrafficEventsEditor.java (modified) (13 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/atmsdriver/trafficeventseditor/TimeFrames.java
r238 r239 236 236 writeToFEP(); 237 237 } 238 239 /*String getBatchScript()240 {241 StringBuilder build = new StringBuilder();242 */243 238 } -
trunk/src/atmsdriver/trafficeventseditor/TrafficEventsEditor.form
r238 r239 286 286 <Component id="jLabel3" alignment="0" min="-2" max="-2" attributes="0"/> 287 287 <Component id="jLabel6" alignment="0" min="-2" max="-2" attributes="0"/> 288 <Group type="102" a lignment="0" attributes="0">288 <Group type="102" attributes="0"> 289 289 <EmptySpace min="6" pref="6" max="-2" attributes="0"/> 290 290 <Group type="103" groupAlignment="0" attributes="0"> 291 <Component id="jLabel9" min="-2" max="-2" attributes="0"/> 291 292 <Component id="jLabel5" min="-2" max="-2" attributes="0"/> 292 293 <Component id="jLabel4" min="-2" max="-2" attributes="0"/> 293 <Component id="jLabel7" min="-2" max="-2" attributes="0"/>294 <Component id="jLabel7" alignment="0" min="-2" max="-2" attributes="0"/> 294 295 <Component id="jLabel8" alignment="0" min="-2" max="-2" attributes="0"/> 295 296 </Group> … … 298 299 <EmptySpace type="separate" max="-2" attributes="0"/> 299 300 <Group type="103" groupAlignment="0" attributes="0"> 300 <Component id="CurrentLoopDetector DescLabel" alignment="0" min="-2" max="-2" attributes="0"/>301 <Component id="CurrentLoopDetector TypeLabel" alignment="0" min="-2" max="-2" attributes="0"/>302 <Component id="Current LoopDetectorLabel" alignment="0" min="-2" max="-2" attributes="0"/>303 <Component id="CurrentStation PostmileLabel" alignment="0" min="-2" max="-2" attributes="0"/>301 <Component id="CurrentLoopDetectorTypeLabel" min="-2" max="-2" attributes="0"/> 302 <Component id="CurrentLoopDetectorLabel" min="-2" max="-2" attributes="0"/> 303 <Component id="CurrentStationLocationLabel" min="-2" max="-2" attributes="0"/> 304 <Component id="CurrentStationDirectionLabel" min="-2" max="-2" attributes="0"/> 304 305 <Component id="CurrentStationLabel" alignment="0" min="-2" max="-2" attributes="0"/> 305 306 <Component id="CurrentHighwayLabel" alignment="0" min="-2" max="-2" attributes="0"/> 306 307 <Component id="CurrentTimeFrameLabel" alignment="0" min="-2" max="-2" attributes="0"/> 307 <Component id="CurrentStationLocationLabel" alignment="0" min="-2" max="-2" attributes="0"/> 308 <Component id="CurrentStationPostmileLabel" alignment="0" min="-2" max="-2" attributes="0"/> 309 <Component id="CurrentLoopDetectorDescLabel" min="-2" max="-2" attributes="0"/> 308 310 </Group> 309 311 <EmptySpace pref="239" max="32767" attributes="0"/> … … 331 333 <EmptySpace max="-2" attributes="0"/> 332 334 <Group type="103" groupAlignment="3" attributes="0"> 335 <Component id="jLabel9" alignment="3" min="-2" max="-2" attributes="0"/> 336 <Component id="CurrentStationDirectionLabel" alignment="3" min="-2" max="-2" attributes="0"/> 337 </Group> 338 <EmptySpace max="-2" attributes="0"/> 339 <Group type="103" groupAlignment="3" attributes="0"> 333 340 <Component id="jLabel4" alignment="3" min="-2" max="-2" attributes="0"/> 334 341 <Component id="CurrentStationPostmileLabel" alignment="3" min="-2" max="-2" attributes="0"/> … … 354 361 <Component id="CurrentLoopDetectorDescLabel" alignment="3" min="-2" max="-2" attributes="0"/> 355 362 </Group> 356 <EmptySpace pref=" 31" max="32767" attributes="0"/>363 <EmptySpace pref="12" max="32767" attributes="0"/> 357 364 </Group> 358 365 </Group> … … 438 445 <Properties> 439 446 <Property name="text" type="java.lang.String" value="Desc:"/> 447 </Properties> 448 </Component> 449 <Component class="javax.swing.JLabel" name="jLabel9"> 450 <Properties> 451 <Property name="text" type="java.lang.String" value="Direction:"/> 452 </Properties> 453 </Component> 454 <Component class="javax.swing.JLabel" name="CurrentStationDirectionLabel"> 455 <Properties> 456 <Property name="text" type="java.lang.String" value="null"/> 440 457 </Properties> 441 458 </Component> … … 485 502 <EmptySpace max="-2" attributes="0"/> 486 503 <Component id="DeleteEventButton" min="-2" max="-2" attributes="0"/> 487 <EmptySpace pref="2 2" max="32767" attributes="0"/>504 <EmptySpace pref="25" max="32767" attributes="0"/> 488 505 </Group> 489 506 </Group> -
trunk/src/atmsdriver/trafficeventseditor/TrafficEventsEditor.java
r238 r239 270 270 private class StationTableModel extends AbstractTableModel 271 271 { 272 String[] columnNames = {"lds_id", " postmile", "location"};272 String[] columnNames = {"lds_id", "direction", "postmile", "location"}; 273 273 String[][] data; 274 274 Highway hwy; … … 279 279 { 280 280 hwy = TrafficEventsEditor.this.timeFrames.currentHighway; 281 cols = 3;281 cols = columnNames.length; 282 282 rows = hwy != null ? hwy.stations.size() : 0; 283 283 data = new String[rows][cols]; … … 285 285 { 286 286 data[i][0] = Integer.toString(hwy.stations.get(i).ldsID); 287 data[i][1] = Double.toString(hwy.stations.get(i).postmile); 288 data[i][2] = hwy.stations.get(i).location; 287 data[i][1] = hwy.stations.get(i).direction.getLetter(); 288 data[i][2] = Double.toString(hwy.stations.get(i).postmile); 289 data[i][3] = hwy.stations.get(i).location; 289 290 } 290 291 } … … 370 371 CurrentLoopDetectorDescLabel = new javax.swing.JLabel(); 371 372 jLabel8 = new javax.swing.JLabel(); 373 jLabel9 = new javax.swing.JLabel(); 374 CurrentStationDirectionLabel = new javax.swing.JLabel(); 372 375 jPanel7 = new javax.swing.JPanel(); 373 376 GreenButton = new javax.swing.JRadioButton(); … … 536 539 jLabel8.setText("Desc:"); 537 540 541 jLabel9.setText("Direction:"); 542 543 CurrentStationDirectionLabel.setText("null"); 544 538 545 javax.swing.GroupLayout jPanel9Layout = new javax.swing.GroupLayout(jPanel9); 539 546 jPanel9.setLayout(jPanel9Layout); … … 550 557 .addGap(6, 6, 6) 551 558 .addGroup(jPanel9Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) 559 .addComponent(jLabel9) 552 560 .addComponent(jLabel5) 553 561 .addComponent(jLabel4) … … 556 564 .addGap(18, 18, 18) 557 565 .addGroup(jPanel9Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) 558 .addComponent(CurrentLoopDetectorDescLabel)559 566 .addComponent(CurrentLoopDetectorTypeLabel) 560 567 .addComponent(CurrentLoopDetectorLabel) 561 .addComponent(CurrentStationPostmileLabel) 568 .addComponent(CurrentStationLocationLabel) 569 .addComponent(CurrentStationDirectionLabel) 562 570 .addComponent(CurrentStationLabel) 563 571 .addComponent(CurrentHighwayLabel) 564 572 .addComponent(CurrentTimeFrameLabel) 565 .addComponent(CurrentStationLocationLabel)) 573 .addComponent(CurrentStationPostmileLabel) 574 .addComponent(CurrentLoopDetectorDescLabel)) 566 575 .addContainerGap(239, Short.MAX_VALUE)) 567 576 ); … … 583 592 .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) 584 593 .addGroup(jPanel9Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) 594 .addComponent(jLabel9) 595 .addComponent(CurrentStationDirectionLabel)) 596 .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) 597 .addGroup(jPanel9Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) 585 598 .addComponent(jLabel4) 586 599 .addComponent(CurrentStationPostmileLabel)) … … 601 614 .addComponent(jLabel8) 602 615 .addComponent(CurrentLoopDetectorDescLabel)) 603 .addContainerGap( 31, Short.MAX_VALUE))616 .addContainerGap(12, Short.MAX_VALUE)) 604 617 ); 605 618 … … 665 678 .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) 666 679 .addComponent(DeleteEventButton) 667 .addContainerGap(2 2, Short.MAX_VALUE))680 .addContainerGap(25, Short.MAX_VALUE)) 668 681 ); 669 682 … … 1106 1119 private javax.swing.JLabel CurrentLoopDetectorLabel; 1107 1120 private javax.swing.JLabel CurrentLoopDetectorTypeLabel; 1121 private javax.swing.JLabel CurrentStationDirectionLabel; 1108 1122 private javax.swing.JLabel CurrentStationLabel; 1109 1123 private javax.swing.JLabel CurrentStationLocationLabel; … … 1138 1152 private javax.swing.JLabel jLabel7; 1139 1153 private javax.swing.JLabel jLabel8; 1154 private javax.swing.JLabel jLabel9; 1140 1155 private javax.swing.JPanel jPanel1; 1141 1156 private javax.swing.JPanel jPanel10; … … 1172 1187 ? Double.toString(timeFrames.currentStation.postmile) 1173 1188 : ""); 1189 CurrentStationDirectionLabel.setText(timeFrames.currentStation != null 1190 ? timeFrames.currentStation.direction.getLetter() 1191 : ""); 1174 1192 CurrentStationLocationLabel.setText(timeFrames.currentStation != null 1175 1193 ? timeFrames.currentStation.location
Note: See TracChangeset
for help on using the changeset viewer.
