Changeset 238 in tmcsimulator for trunk/src/atmsdriver/trafficeventseditor
- Timestamp:
- 12/20/2017 02:00:12 AM (8 years ago)
- Location:
- trunk/src/atmsdriver/trafficeventseditor
- Files:
-
- 1 added
- 5 copied
-
. (added)
-
TimeFrame.java (copied) (copied from trunk/src/atmsdriver/batchbuilder/TimeFrame.java) (1 diff)
-
TimeFrames.java (copied) (copied from trunk/src/atmsdriver/batchbuilder/TimeFrames.java) (4 diffs)
-
TrafficEventsEditor.form (copied) (copied from trunk/src/atmsdriver/batchbuilder/BatchBuilderGUI.form) (25 diffs)
-
TrafficEventsEditor.java (copied) (copied from trunk/src/atmsdriver/batchbuilder/BatchBuilderGUI.java) (30 diffs)
-
TrafficLaneEvent.java (copied) (copied from trunk/src/atmsdriver/batchbuilder/TrafficLaneEvent.java) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/atmsdriver/trafficeventseditor/TimeFrame.java
r237 r238 1 package atmsdriver. batchbuilder;1 package atmsdriver.trafficeventseditor; 2 2 3 3 import java.util.ArrayList; -
trunk/src/atmsdriver/trafficeventseditor/TimeFrames.java
r237 r238 4 4 * and open the template in the editor. 5 5 */ 6 package atmsdriver. batchbuilder;6 package atmsdriver.trafficeventseditor; 7 7 8 8 import atmsdriver.model.Highway; … … 36 36 frames = new ArrayList<>(); 37 37 highways = new Highways("./config/vds_data/highways_fullmap.txt", 38 " localhost", 8080);38 "192.168.251.46", 8080); 39 39 } 40 40 … … 170 170 { 171 171 highways.reset(); 172 List<TrafficLaneEvent> events = currentTimeFrame.events; 173 for(TrafficLaneEvent event : events) 172 for(TrafficLaneEvent event : currentTimeFrame.events) 174 173 { 175 174 if(event.station.equals(currentStation)) … … 202 201 } 203 202 } 203 204 void cumulativePreviewStation() 205 { 206 highways.reset(); 207 for(TimeFrame tf : frames) 208 { 209 for(TrafficLaneEvent e : tf.events) 210 { 211 if(e.station.equals(currentStation)) 212 { 213 highways.applyTrafficLaneEvent(e); 214 } 215 } 216 217 if(tf.equals(currentTimeFrame)) 218 break; 219 } 220 writeToFEP(); 221 } 222 223 void cumulativePreviewHighways() 224 { 225 highways.reset(); 226 for(TimeFrame tf : frames) 227 { 228 for(TrafficLaneEvent e : tf.events) 229 { 230 highways.applyTrafficLaneEvent(e); 231 } 232 233 if(tf.equals(currentTimeFrame)) 234 break; 235 } 236 writeToFEP(); 237 } 238 239 /*String getBatchScript() 240 { 241 StringBuilder build = new StringBuilder(); 242 */ 204 243 } -
trunk/src/atmsdriver/trafficeventseditor/TrafficEventsEditor.form
r237 r238 8 8 <Properties> 9 9 <Property name="defaultCloseOperation" type="int" value="3"/> 10 <Property name="title" type="java.lang.String" value="Traffic Events Editor"/> 10 11 </Properties> 11 12 <SyntheticProperties> … … 29 30 <Group type="103" groupAlignment="0" attributes="0"> 30 31 <Group type="102" attributes="0"> 31 <EmptySpace min="-2" pref="12" max="-2" attributes="0"/> 32 <Group type="103" groupAlignment="0" attributes="0"> 33 <Component id="jPanel8" max="32767" attributes="0"/> 34 <Group type="102" attributes="0"> 35 <Component id="jPanel1" min="-2" max="-2" attributes="0"/> 36 <EmptySpace type="unrelated" max="-2" attributes="0"/> 37 <Component id="jPanel11" max="32767" attributes="0"/> 32 <Group type="103" groupAlignment="0" attributes="0"> 33 <Group type="102" alignment="0" attributes="0"> 34 <EmptySpace min="-2" pref="12" max="-2" attributes="0"/> 35 <Group type="103" groupAlignment="0" attributes="0"> 36 <Component id="jPanel15" max="32767" attributes="0"/> 37 <Group type="102" attributes="0"> 38 <Component id="jPanel1" min="-2" pref="730" max="-2" attributes="0"/> 39 <EmptySpace type="separate" max="-2" attributes="0"/> 40 <Component id="jPanel11" min="-2" pref="261" max="-2" attributes="0"/> 41 <EmptySpace type="separate" max="-2" attributes="0"/> 42 <Component id="jPanel14" max="32767" attributes="0"/> 43 </Group> 44 </Group> 45 </Group> 46 <Group type="102" alignment="0" attributes="0"> 47 <EmptySpace max="-2" attributes="0"/> 48 <Component id="jPanel6" max="32767" attributes="0"/> 38 49 </Group> 39 50 </Group> 40 51 <EmptySpace max="-2" attributes="0"/> 41 52 </Group> 42 <Component id="jPanel6" alignment="0" max="32767" attributes="0"/>43 53 </Group> 44 54 </DimensionLayout> … … 46 56 <Group type="103" groupAlignment="0" attributes="0"> 47 57 <Group type="102" alignment="0" attributes="0"> 48 <EmptySpace max=" -2" attributes="0"/>58 <EmptySpace max="32767" attributes="0"/> 49 59 <Component id="jPanel6" min="-2" max="-2" attributes="0"/> 50 60 <EmptySpace max="-2" attributes="0"/> 51 <Group type="103" groupAlignment="0" max="-2" attributes="0"> 52 <Component id="jPanel1" max="32767" attributes="0"/> 53 <Component id="jPanel11" max="32767" attributes="0"/> 61 <Group type="103" groupAlignment="0" attributes="0"> 62 <Group type="103" groupAlignment="0" max="-2" attributes="0"> 63 <Component id="jPanel1" max="32767" attributes="0"/> 64 <Component id="jPanel11" max="32767" attributes="0"/> 65 </Group> 66 <Component id="jPanel14" max="32767" attributes="0"/> 54 67 </Group> 55 68 <EmptySpace max="-2" attributes="0"/> 56 <Component id="jPanel8" min="-2" max="-2" attributes="0"/> 57 <EmptySpace max="32767" attributes="0"/> 69 <Component id="jPanel15" min="-2" max="-2" attributes="0"/> 58 70 </Group> 59 71 </Group> … … 62 74 <SubComponents> 63 75 <Container class="javax.swing.JPanel" name="jPanel6"> 76 <Properties> 77 <Property name="border" type="javax.swing.border.Border" editor="org.netbeans.modules.form.editors2.BorderEditor"> 78 <Border info="org.netbeans.modules.form.compat2.border.TitledBorderInfo"> 79 <TitledBorder title="Lane Selection Panel"> 80 <Border PropertyName="innerBorder" info="org.netbeans.modules.form.compat2.border.LineBorderInfo"> 81 <LineBorder/> 82 </Border> 83 </TitledBorder> 84 </Border> 85 </Property> 86 </Properties> 64 87 65 88 <Layout> 66 89 <DimensionLayout dim="0"> 67 90 <Group type="103" groupAlignment="0" attributes="0"> 68 <Group type="102" attributes="0"> 69 <EmptySpace max="-2" attributes="0"/> 70 <Component id="jPanel3" min="-2" max="-2" attributes="0"/> 71 <EmptySpace max="-2" attributes="0"/> 72 <Component id="jPanel2" min="-2" max="-2" attributes="0"/> 91 <Group type="102" alignment="0" attributes="0"> 92 <Component id="jPanel2" max="32767" attributes="0"/> 73 93 <EmptySpace max="-2" attributes="0"/> 74 94 <Component id="jPanel4" min="-2" max="-2" attributes="0"/> 75 95 <EmptySpace max="-2" attributes="0"/> 76 <Component id="jPanel5" max="32767" attributes="0"/> 77 <EmptySpace max="-2" attributes="0"/> 96 <Component id="jPanel5" min="-2" max="-2" attributes="0"/> 78 97 </Group> 79 98 </Group> … … 82 101 <Group type="103" groupAlignment="0" attributes="0"> 83 102 <Group type="102" attributes="0"> 84 <EmptySpace m ax="-2" attributes="0"/>103 <EmptySpace min="6" pref="6" max="-2" attributes="0"/> 85 104 <Group type="103" groupAlignment="0" attributes="0"> 86 <Component id="jPanel2" max="32767" attributes="0"/> 87 <Component id="jPanel4" alignment="0" max="32767" attributes="0"/> 88 <Group type="102" alignment="0" attributes="0"> 89 <Component id="jPanel3" min="-2" max="-2" attributes="0"/> 90 <EmptySpace min="0" pref="0" max="32767" attributes="0"/> 91 </Group> 92 <Component id="jPanel5" alignment="0" max="32767" attributes="0"/> 105 <Component id="jPanel4" max="32767" attributes="0"/> 106 <Component id="jPanel5" max="32767" attributes="0"/> 107 <Component id="jPanel2" alignment="1" max="32767" attributes="0"/> 93 108 </Group> 94 109 </Group> … … 97 112 </Layout> 98 113 <SubComponents> 99 <Container class="javax.swing.JPanel" name="jPanel3">100 <Properties>101 <Property name="border" type="javax.swing.border.Border" editor="org.netbeans.modules.form.editors2.BorderEditor">102 <Border info="org.netbeans.modules.form.compat2.border.TitledBorderInfo">103 <TitledBorder title="Time Frame">104 <Border PropertyName="innerBorder" info="org.netbeans.modules.form.compat2.border.EmptyBorderInfo">105 <EmptyBorder/>106 </Border>107 </TitledBorder>108 </Border>109 </Property>110 </Properties>111 112 <Layout>113 <DimensionLayout dim="0">114 <Group type="103" groupAlignment="0" attributes="0">115 <Component id="TimeFrameScrollPane" alignment="0" min="-2" pref="215" max="-2" attributes="0"/>116 <Component id="jPanel10" alignment="1" max="32767" attributes="0"/>117 </Group>118 </DimensionLayout>119 <DimensionLayout dim="1">120 <Group type="103" groupAlignment="0" attributes="0">121 <Group type="102" attributes="0">122 <Component id="TimeFrameScrollPane" min="-2" pref="238" max="-2" attributes="0"/>123 <EmptySpace max="-2" attributes="0"/>124 <Component id="jPanel10" max="32767" attributes="0"/>125 </Group>126 </Group>127 </DimensionLayout>128 </Layout>129 <SubComponents>130 <Container class="javax.swing.JScrollPane" name="TimeFrameScrollPane">131 132 <Layout class="org.netbeans.modules.form.compat2.layouts.support.JScrollPaneSupportLayout"/>133 <SubComponents>134 <Component class="javax.swing.JList" name="TimeFrameList">135 <Properties>136 <Property name="model" type="javax.swing.ListModel" editor="org.netbeans.modules.form.editors2.ListModelEditor">137 <StringArray count="5">138 <StringItem index="0" value="Item 1"/>139 <StringItem index="1" value="Item 2"/>140 <StringItem index="2" value="Item 3"/>141 <StringItem index="3" value="Item 4"/>142 <StringItem index="4" value="Item 5"/>143 </StringArray>144 </Property>145 </Properties>146 </Component>147 </SubComponents>148 </Container>149 <Container class="javax.swing.JPanel" name="jPanel10">150 <Properties>151 <Property name="border" type="javax.swing.border.Border" editor="org.netbeans.modules.form.editors2.BorderEditor">152 <Border info="org.netbeans.modules.form.compat2.border.EtchedBorderInfo">153 <EtchetBorder/>154 </Border>155 </Property>156 </Properties>157 158 <Layout>159 <DimensionLayout dim="0">160 <Group type="103" groupAlignment="0" attributes="0">161 <Group type="102" alignment="0" attributes="0">162 <EmptySpace max="-2" attributes="0"/>163 <Component id="AddNewTimeFrameButton" min="-2" pref="81" max="-2" attributes="0"/>164 <EmptySpace max="32767" attributes="0"/>165 <Component id="DeleteTimeFrameButton" min="-2" pref="84" max="-2" attributes="0"/>166 <EmptySpace max="-2" attributes="0"/>167 </Group>168 </Group>169 </DimensionLayout>170 <DimensionLayout dim="1">171 <Group type="103" groupAlignment="0" attributes="0">172 <Group type="102" attributes="0">173 <EmptySpace max="32767" attributes="0"/>174 <Group type="103" groupAlignment="3" attributes="0">175 <Component id="AddNewTimeFrameButton" alignment="3" min="-2" max="-2" attributes="0"/>176 <Component id="DeleteTimeFrameButton" alignment="3" min="-2" max="-2" attributes="0"/>177 </Group>178 <EmptySpace max="-2" attributes="0"/>179 </Group>180 </Group>181 </DimensionLayout>182 </Layout>183 <SubComponents>184 <Component class="javax.swing.JButton" name="AddNewTimeFrameButton">185 <Properties>186 <Property name="text" type="java.lang.String" value="Add"/>187 <Property name="actionCommand" type="java.lang.String" value="addTimeFrame"/>188 </Properties>189 <Events>190 <EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="addNewTimeFrameButtonClicked"/>191 </Events>192 </Component>193 <Component class="javax.swing.JButton" name="DeleteTimeFrameButton">194 <Properties>195 <Property name="text" type="java.lang.String" value="Delete"/>196 </Properties>197 <Events>198 <EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="DeleteTimeFrameButtonActionPerformed"/>199 </Events>200 </Component>201 </SubComponents>202 </Container>203 </SubComponents>204 </Container>205 114 <Container class="javax.swing.JPanel" name="jPanel2"> 206 115 <Properties> … … 219 128 <DimensionLayout dim="0"> 220 129 <Group type="103" groupAlignment="0" attributes="0"> 221 <Component id="HighwayScrollPane" alignment=" 0" pref="100" max="32767" attributes="0"/>130 <Component id="HighwayScrollPane" alignment="1" max="32767" attributes="0"/> 222 131 </Group> 223 132 </DimensionLayout> … … 266 175 <DimensionLayout dim="0"> 267 176 <Group type="103" groupAlignment="0" attributes="0"> 268 <Component id="StationScrollPane" alignment="0" pref=" 480" max="32767" attributes="0"/>177 <Component id="StationScrollPane" alignment="0" pref="546" max="32767" attributes="0"/> 269 178 </Group> 270 179 </DimensionLayout> 271 180 <DimensionLayout dim="1"> 272 181 <Group type="103" groupAlignment="0" attributes="0"> 273 <Component id="StationScrollPane" alignment="0" pref=" 0" max="32767" attributes="0"/>182 <Component id="StationScrollPane" alignment="0" pref="221" max="32767" attributes="0"/> 274 183 </Group> 275 184 </DimensionLayout> … … 312 221 <DimensionLayout dim="0"> 313 222 <Group type="103" groupAlignment="0" attributes="0"> 314 <Component id="LoopDetectorScrollPane" alignment="0" pref=" 329" max="32767" attributes="0"/>223 <Component id="LoopDetectorScrollPane" alignment="0" pref="479" max="32767" attributes="0"/> 315 224 </Group> 316 225 </DimensionLayout> … … 347 256 </SubComponents> 348 257 </Container> 349 <Container class="javax.swing.JPanel" name="jPanel8">350 <Properties>351 <Property name="border" type="javax.swing.border.Border" editor="org.netbeans.modules.form.editors2.BorderEditor">352 <Border info="org.netbeans.modules.form.compat2.border.TitledBorderInfo">353 <TitledBorder title="Traffic Lane Events">354 <Border PropertyName="innerBorder" info="org.netbeans.modules.form.compat2.border.LineBorderInfo">355 <LineBorder/>356 </Border>357 </TitledBorder>358 </Border>359 </Property>360 </Properties>361 362 <Layout>363 <DimensionLayout dim="0">364 <Group type="103" groupAlignment="0" attributes="0">365 <Component id="jScrollPane1" alignment="0" max="32767" attributes="0"/>366 </Group>367 </DimensionLayout>368 <DimensionLayout dim="1">369 <Group type="103" groupAlignment="0" attributes="0">370 <Group type="102" alignment="0" attributes="0">371 <EmptySpace max="-2" attributes="0"/>372 <Component id="jScrollPane1" pref="201" max="32767" attributes="0"/>373 <EmptySpace max="-2" attributes="0"/>374 </Group>375 </Group>376 </DimensionLayout>377 </Layout>378 <SubComponents>379 <Container class="javax.swing.JScrollPane" name="jScrollPane1">380 381 <Layout class="org.netbeans.modules.form.compat2.layouts.support.JScrollPaneSupportLayout"/>382 <SubComponents>383 <Component class="javax.swing.JTable" name="TrafficLaneEventsTable">384 <Properties>385 <Property name="model" type="javax.swing.table.TableModel" editor="org.netbeans.modules.form.editors2.TableModelEditor">386 <Table columnCount="4" rowCount="4">387 <Column editable="true" title="Title 1" type="java.lang.Object"/>388 <Column editable="true" title="Title 2" type="java.lang.Object"/>389 <Column editable="true" title="Title 3" type="java.lang.Object"/>390 <Column editable="true" title="Title 4" type="java.lang.Object"/>391 </Table>392 </Property>393 </Properties>394 </Component>395 </SubComponents>396 </Container>397 </SubComponents>398 </Container>399 258 <Container class="javax.swing.JPanel" name="jPanel1"> 400 259 <Properties> … … 433 292 <Component id="jLabel4" min="-2" max="-2" attributes="0"/> 434 293 <Component id="jLabel7" min="-2" max="-2" attributes="0"/> 294 <Component id="jLabel8" alignment="0" min="-2" max="-2" attributes="0"/> 435 295 </Group> 436 296 </Group> 437 <Group type="102" alignment="1" attributes="0"> 438 <Component id="jLabel8" min="-2" max="-2" attributes="0"/> 439 <EmptySpace min="-2" pref="33" max="-2" attributes="0"/> 440 </Group> 441 </Group> 297 </Group> 298 <EmptySpace type="separate" max="-2" attributes="0"/> 442 299 <Group type="103" groupAlignment="0" attributes="0"> 443 300 <Component id="CurrentLoopDetectorDescLabel" alignment="0" min="-2" max="-2" attributes="0"/> … … 450 307 <Component id="CurrentStationLocationLabel" alignment="0" min="-2" max="-2" attributes="0"/> 451 308 </Group> 452 <EmptySpace max="32767" attributes="0"/>309 <EmptySpace pref="239" max="32767" attributes="0"/> 453 310 </Group> 454 311 </Group> … … 600 457 <EmptySpace max="-2" attributes="0"/> 601 458 <Group type="103" groupAlignment="0" attributes="0"> 602 <Component id="DeleteEventButton" alignment="0" pref=" 237" max="32767" attributes="0"/>459 <Component id="DeleteEventButton" alignment="0" pref="344" max="32767" attributes="0"/> 603 460 <Group type="102" attributes="0"> 604 461 <Group type="103" groupAlignment="0" attributes="0"> … … 660 517 <Component class="javax.swing.JButton" name="AddNewEventButton"> 661 518 <Properties> 662 <Property name="text" type="java.lang.String" value="Add Event"/>519 <Property name="text" type="java.lang.String" value="Add New Event"/> 663 520 </Properties> 664 521 <Events> … … 668 525 <Component class="javax.swing.JButton" name="DeleteEventButton"> 669 526 <Properties> 670 <Property name="text" type="java.lang.String" value="Delete Event"/>527 <Property name="text" type="java.lang.String" value="Delete Selected Event"/> 671 528 </Properties> 672 529 <Events> … … 682 539 <Property name="border" type="javax.swing.border.Border" editor="org.netbeans.modules.form.editors2.BorderEditor"> 683 540 <Border info="org.netbeans.modules.form.compat2.border.TitledBorderInfo"> 684 <TitledBorder title="Preview and Import/Export Panel">541 <TitledBorder title="Preview Lane Events on ATMS"> 685 542 <Border PropertyName="innerBorder" info="org.netbeans.modules.form.compat2.border.LineBorderInfo"> 686 543 <LineBorder/> … … 691 548 </Properties> 692 549 693 <Layout> 694 <DimensionLayout dim="0"> 695 <Group type="103" groupAlignment="0" attributes="0"> 696 <Group type="102" alignment="0" attributes="0"> 697 <EmptySpace max="-2" attributes="0"/> 698 <Component id="jPanel12" min="-2" max="-2" attributes="0"/> 699 <EmptySpace type="separate" max="-2" attributes="0"/> 700 <Component id="jPanel13" min="-2" max="-2" attributes="0"/> 701 <EmptySpace type="separate" max="-2" attributes="0"/> 702 <Component id="jPanel14" max="32767" attributes="0"/> 703 <EmptySpace max="-2" attributes="0"/> 704 </Group> 705 </Group> 706 </DimensionLayout> 707 <DimensionLayout dim="1"> 708 <Group type="103" groupAlignment="0" attributes="0"> 709 <Group type="102" alignment="0" attributes="0"> 710 <EmptySpace max="-2" attributes="0"/> 711 <Group type="103" groupAlignment="0" attributes="0"> 712 <Component id="jPanel13" alignment="1" max="32767" attributes="0"/> 713 <Component id="jPanel12" alignment="1" max="32767" attributes="0"/> 714 <Component id="jPanel14" alignment="0" max="32767" attributes="0"/> 715 </Group> 716 <EmptySpace max="-2" attributes="0"/> 717 </Group> 718 </Group> 719 </DimensionLayout> 720 </Layout> 550 <Layout class="org.netbeans.modules.form.compat2.layouts.DesignBorderLayout"/> 721 551 <SubComponents> 722 552 <Container class="javax.swing.JPanel" name="jPanel12"> … … 724 554 <Property name="border" type="javax.swing.border.Border" editor="org.netbeans.modules.form.editors2.BorderEditor"> 725 555 <Border info="org.netbeans.modules.form.compat2.border.TitledBorderInfo"> 726 <TitledBorder title=" Frame Preview">556 <TitledBorder title="Selected Time Frame Preview"> 727 557 <Border PropertyName="innerBorder" info="org.netbeans.modules.form.compat2.border.BevelBorderInfo"> 728 558 <BevelBorder/> … … 732 562 </Property> 733 563 </Properties> 564 <Constraints> 565 <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignBorderLayout" value="org.netbeans.modules.form.compat2.layouts.DesignBorderLayout$BorderConstraintsDescription"> 566 <BorderConstraints direction="Center"/> 567 </Constraint> 568 </Constraints> 734 569 735 570 <Layout> … … 742 577 <Component id="SinglePreviewStationButton" max="32767" attributes="0"/> 743 578 </Group> 744 <EmptySpace pref="1 5" max="32767" attributes="0"/>579 <EmptySpace pref="10" max="32767" attributes="0"/> 745 580 </Group> 746 581 </Group> … … 761 596 <Component class="javax.swing.JButton" name="SinglePreviewStationButton"> 762 597 <Properties> 763 <Property name="text" type="java.lang.String" value=" Preview Station"/>598 <Property name="text" type="java.lang.String" value="Send Selected Station Events"/> 764 599 </Properties> 765 600 <Events> … … 769 604 <Component class="javax.swing.JButton" name="SinglePreviewHighwaysButton"> 770 605 <Properties> 771 <Property name="text" type="java.lang.String" value=" Preview Highways"/>606 <Property name="text" type="java.lang.String" value="Send All Events"/> 772 607 </Properties> 773 608 <Events> … … 789 624 </Property> 790 625 </Properties> 626 <Constraints> 627 <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignBorderLayout" value="org.netbeans.modules.form.compat2.layouts.DesignBorderLayout$BorderConstraintsDescription"> 628 <BorderConstraints direction="First"/> 629 </Constraint> 630 </Constraints> 791 631 792 632 <Layout> … … 818 658 <Component class="javax.swing.JButton" name="CumulativePreviewStationButton"> 819 659 <Properties> 820 <Property name="text" type="java.lang.String" value="Preview Station"/> 821 </Properties> 660 <Property name="text" type="java.lang.String" value="Send Selected Station Events"/> 661 </Properties> 662 <Events> 663 <EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="CumulativeStationPreviewButtonActionPerformed"/> 664 </Events> 822 665 </Component> 823 666 <Component class="javax.swing.JButton" name="CumulativePreviewHighwaysButton"> 824 667 <Properties> 825 <Property name="text" type="java.lang.String" value="Preview Highways"/> 826 </Properties> 827 </Component> 828 </SubComponents> 829 </Container> 830 <Container class="javax.swing.JPanel" name="jPanel14"> 831 <Properties> 832 <Property name="border" type="javax.swing.border.Border" editor="org.netbeans.modules.form.editors2.BorderEditor"> 833 <Border info="org.netbeans.modules.form.compat2.border.TitledBorderInfo"> 834 <TitledBorder title="Export/Import Scripts"> 835 <Border PropertyName="innerBorder" info="org.netbeans.modules.form.compat2.border.BevelBorderInfo"> 836 <BevelBorder/> 837 </Border> 838 </TitledBorder> 839 </Border> 840 </Property> 841 </Properties> 842 843 <Layout> 844 <DimensionLayout dim="0"> 845 <Group type="103" groupAlignment="0" attributes="0"> 846 <Group type="102" attributes="0"> 847 <EmptySpace max="-2" attributes="0"/> 848 <Group type="103" groupAlignment="0" max="-2" attributes="0"> 849 <Component id="jButton3" alignment="0" max="32767" attributes="0"/> 850 <Component id="jButton2" alignment="0" max="32767" attributes="0"/> 851 <Component id="jButton1" alignment="0" max="32767" attributes="0"/> 852 </Group> 853 <EmptySpace max="32767" attributes="0"/> 854 </Group> 855 </Group> 856 </DimensionLayout> 857 <DimensionLayout dim="1"> 858 <Group type="103" groupAlignment="0" attributes="0"> 859 <Group type="102" alignment="0" attributes="0"> 860 <EmptySpace max="-2" attributes="0"/> 861 <Component id="jButton1" min="-2" max="-2" attributes="0"/> 862 <EmptySpace max="-2" attributes="0"/> 863 <Component id="jButton2" min="-2" max="-2" attributes="0"/> 864 <EmptySpace max="-2" attributes="0"/> 865 <Component id="jButton3" min="-2" max="-2" attributes="0"/> 866 <EmptySpace max="32767" attributes="0"/> 867 </Group> 868 </Group> 869 </DimensionLayout> 870 </Layout> 871 <SubComponents> 872 <Component class="javax.swing.JButton" name="jButton1"> 873 <Properties> 874 <Property name="text" type="java.lang.String" value="Load Script"/> 875 </Properties> 876 </Component> 877 <Component class="javax.swing.JButton" name="jButton2"> 878 <Properties> 879 <Property name="text" type="java.lang.String" value="Save Script"/> 880 </Properties> 881 </Component> 882 <Component class="javax.swing.JButton" name="jButton3"> 883 <Properties> 884 <Property name="text" type="java.lang.String" value="Save Script As"/> 885 </Properties> 668 <Property name="text" type="java.lang.String" value="Send All Events"/> 669 </Properties> 670 <Events> 671 <EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="CumulativeHighwaysPreviewButtonActionPerformed"/> 672 </Events> 886 673 </Component> 887 674 </SubComponents> … … 889 676 </SubComponents> 890 677 </Container> 678 <Container class="javax.swing.JPanel" name="jPanel15"> 679 680 <Layout> 681 <DimensionLayout dim="0"> 682 <Group type="103" groupAlignment="0" attributes="0"> 683 <Group type="102" alignment="0" attributes="0"> 684 <Component id="jPanel3" min="-2" max="-2" attributes="0"/> 685 <EmptySpace max="-2" attributes="0"/> 686 <Component id="jPanel8" max="32767" attributes="0"/> 687 <EmptySpace max="-2" attributes="0"/> 688 </Group> 689 </Group> 690 </DimensionLayout> 691 <DimensionLayout dim="1"> 692 <Group type="103" groupAlignment="0" attributes="0"> 693 <Group type="102" alignment="0" attributes="0"> 694 <EmptySpace max="-2" attributes="0"/> 695 <Group type="103" groupAlignment="0" max="-2" attributes="0"> 696 <Component id="jPanel3" max="32767" attributes="0"/> 697 <Component id="jPanel8" max="32767" attributes="0"/> 698 </Group> 699 <EmptySpace max="32767" attributes="0"/> 700 </Group> 701 </Group> 702 </DimensionLayout> 703 </Layout> 704 <SubComponents> 705 <Container class="javax.swing.JPanel" name="jPanel3"> 706 <Properties> 707 <Property name="border" type="javax.swing.border.Border" editor="org.netbeans.modules.form.editors2.BorderEditor"> 708 <Border info="org.netbeans.modules.form.compat2.border.TitledBorderInfo"> 709 <TitledBorder title="Time Frame"> 710 <Border PropertyName="innerBorder" info="org.netbeans.modules.form.compat2.border.LineBorderInfo"> 711 <LineBorder/> 712 </Border> 713 </TitledBorder> 714 </Border> 715 </Property> 716 </Properties> 717 718 <Layout> 719 <DimensionLayout dim="0"> 720 <Group type="103" groupAlignment="0" attributes="0"> 721 <Component id="TimeFrameScrollPane" alignment="0" min="-2" pref="215" max="-2" attributes="0"/> 722 <Component id="jPanel10" alignment="1" max="32767" attributes="0"/> 723 </Group> 724 </DimensionLayout> 725 <DimensionLayout dim="1"> 726 <Group type="103" groupAlignment="0" attributes="0"> 727 <Group type="102" attributes="0"> 728 <Component id="TimeFrameScrollPane" min="-2" pref="238" max="-2" attributes="0"/> 729 <EmptySpace max="-2" attributes="0"/> 730 <Component id="jPanel10" max="32767" attributes="0"/> 731 </Group> 732 </Group> 733 </DimensionLayout> 734 </Layout> 735 <SubComponents> 736 <Container class="javax.swing.JScrollPane" name="TimeFrameScrollPane"> 737 738 <Layout class="org.netbeans.modules.form.compat2.layouts.support.JScrollPaneSupportLayout"/> 739 <SubComponents> 740 <Component class="javax.swing.JList" name="TimeFrameList"> 741 <Properties> 742 <Property name="model" type="javax.swing.ListModel" editor="org.netbeans.modules.form.editors2.ListModelEditor"> 743 <StringArray count="5"> 744 <StringItem index="0" value="Item 1"/> 745 <StringItem index="1" value="Item 2"/> 746 <StringItem index="2" value="Item 3"/> 747 <StringItem index="3" value="Item 4"/> 748 <StringItem index="4" value="Item 5"/> 749 </StringArray> 750 </Property> 751 </Properties> 752 </Component> 753 </SubComponents> 754 </Container> 755 <Container class="javax.swing.JPanel" name="jPanel10"> 756 <Properties> 757 <Property name="border" type="javax.swing.border.Border" editor="org.netbeans.modules.form.editors2.BorderEditor"> 758 <Border info="org.netbeans.modules.form.compat2.border.EtchedBorderInfo"> 759 <EtchetBorder/> 760 </Border> 761 </Property> 762 </Properties> 763 764 <Layout> 765 <DimensionLayout dim="0"> 766 <Group type="103" groupAlignment="0" attributes="0"> 767 <Group type="102" alignment="0" attributes="0"> 768 <EmptySpace max="-2" attributes="0"/> 769 <Component id="AddNewTimeFrameButton" min="-2" pref="81" max="-2" attributes="0"/> 770 <EmptySpace pref="40" max="32767" attributes="0"/> 771 <Component id="DeleteTimeFrameButton" min="-2" pref="84" max="-2" attributes="0"/> 772 <EmptySpace max="-2" attributes="0"/> 773 </Group> 774 </Group> 775 </DimensionLayout> 776 <DimensionLayout dim="1"> 777 <Group type="103" groupAlignment="0" attributes="0"> 778 <Group type="102" attributes="0"> 779 <EmptySpace max="32767" attributes="0"/> 780 <Group type="103" groupAlignment="3" attributes="0"> 781 <Component id="AddNewTimeFrameButton" alignment="3" min="-2" max="-2" attributes="0"/> 782 <Component id="DeleteTimeFrameButton" alignment="3" min="-2" max="-2" attributes="0"/> 783 </Group> 784 <EmptySpace max="-2" attributes="0"/> 785 </Group> 786 </Group> 787 </DimensionLayout> 788 </Layout> 789 <SubComponents> 790 <Component class="javax.swing.JButton" name="AddNewTimeFrameButton"> 791 <Properties> 792 <Property name="text" type="java.lang.String" value="New"/> 793 <Property name="actionCommand" type="java.lang.String" value="addTimeFrame"/> 794 </Properties> 795 <Events> 796 <EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="addNewTimeFrameButtonClicked"/> 797 </Events> 798 </Component> 799 <Component class="javax.swing.JButton" name="DeleteTimeFrameButton"> 800 <Properties> 801 <Property name="text" type="java.lang.String" value="Delete"/> 802 </Properties> 803 <Events> 804 <EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="DeleteTimeFrameButtonActionPerformed"/> 805 </Events> 806 </Component> 807 </SubComponents> 808 </Container> 809 </SubComponents> 810 </Container> 811 <Container class="javax.swing.JPanel" name="jPanel8"> 812 <Properties> 813 <Property name="border" type="javax.swing.border.Border" editor="org.netbeans.modules.form.editors2.BorderEditor"> 814 <Border info="org.netbeans.modules.form.compat2.border.TitledBorderInfo"> 815 <TitledBorder title="Traffic Lane Events"> 816 <Border PropertyName="innerBorder" info="org.netbeans.modules.form.compat2.border.LineBorderInfo"> 817 <LineBorder/> 818 </Border> 819 </TitledBorder> 820 </Border> 821 </Property> 822 </Properties> 823 824 <Layout> 825 <DimensionLayout dim="0"> 826 <Group type="103" groupAlignment="0" attributes="0"> 827 <Component id="jScrollPane1" alignment="1" max="32767" attributes="0"/> 828 </Group> 829 </DimensionLayout> 830 <DimensionLayout dim="1"> 831 <Group type="103" groupAlignment="0" attributes="0"> 832 <Group type="102" attributes="0"> 833 <EmptySpace max="-2" attributes="0"/> 834 <Component id="jScrollPane1" pref="0" max="32767" attributes="0"/> 835 <EmptySpace max="-2" attributes="0"/> 836 </Group> 837 </Group> 838 </DimensionLayout> 839 </Layout> 840 <SubComponents> 841 <Container class="javax.swing.JScrollPane" name="jScrollPane1"> 842 843 <Layout class="org.netbeans.modules.form.compat2.layouts.support.JScrollPaneSupportLayout"/> 844 <SubComponents> 845 <Component class="javax.swing.JTable" name="TrafficLaneEventsTable"> 846 <Properties> 847 <Property name="model" type="javax.swing.table.TableModel" editor="org.netbeans.modules.form.editors2.TableModelEditor"> 848 <Table columnCount="4" rowCount="4"> 849 <Column editable="true" title="Title 1" type="java.lang.Object"/> 850 <Column editable="true" title="Title 2" type="java.lang.Object"/> 851 <Column editable="true" title="Title 3" type="java.lang.Object"/> 852 <Column editable="true" title="Title 4" type="java.lang.Object"/> 853 </Table> 854 </Property> 855 </Properties> 856 </Component> 857 </SubComponents> 858 </Container> 859 </SubComponents> 860 </Container> 861 </SubComponents> 862 </Container> 863 <Container class="javax.swing.JPanel" name="jPanel14"> 864 <Properties> 865 <Property name="border" type="javax.swing.border.Border" editor="org.netbeans.modules.form.editors2.BorderEditor"> 866 <Border info="org.netbeans.modules.form.compat2.border.TitledBorderInfo"> 867 <TitledBorder title="Export/Import Scripts"> 868 <Border PropertyName="innerBorder" info="org.netbeans.modules.form.compat2.border.LineBorderInfo"> 869 <LineBorder/> 870 </Border> 871 </TitledBorder> 872 </Border> 873 </Property> 874 </Properties> 875 876 <Layout> 877 <DimensionLayout dim="0"> 878 <Group type="103" groupAlignment="0" attributes="0"> 879 <Group type="102" alignment="1" attributes="0"> 880 <EmptySpace pref="28" max="32767" attributes="0"/> 881 <Group type="103" groupAlignment="1" max="-2" attributes="0"> 882 <Component id="jButton2" max="32767" attributes="0"/> 883 <Component id="jButton1" max="32767" attributes="0"/> 884 <Component id="jButton3" alignment="0" max="32767" attributes="0"/> 885 </Group> 886 <EmptySpace min="-2" pref="27" max="-2" attributes="0"/> 887 </Group> 888 </Group> 889 </DimensionLayout> 890 <DimensionLayout dim="1"> 891 <Group type="103" groupAlignment="0" attributes="0"> 892 <Group type="102" alignment="0" attributes="0"> 893 <EmptySpace max="-2" attributes="0"/> 894 <Component id="jButton1" min="-2" max="-2" attributes="0"/> 895 <EmptySpace max="-2" attributes="0"/> 896 <Component id="jButton2" min="-2" max="-2" attributes="0"/> 897 <EmptySpace max="-2" attributes="0"/> 898 <Component id="jButton3" min="-2" max="-2" attributes="0"/> 899 <EmptySpace max="32767" attributes="0"/> 900 </Group> 901 </Group> 902 </DimensionLayout> 903 </Layout> 904 <SubComponents> 905 <Component class="javax.swing.JButton" name="jButton1"> 906 <Properties> 907 <Property name="text" type="java.lang.String" value="Load Script"/> 908 </Properties> 909 </Component> 910 <Component class="javax.swing.JButton" name="jButton2"> 911 <Properties> 912 <Property name="text" type="java.lang.String" value="Save Script"/> 913 </Properties> 914 </Component> 915 <Component class="javax.swing.JButton" name="jButton3"> 916 <Properties> 917 <Property name="text" type="java.lang.String" value="Save Script As"/> 918 </Properties> 919 </Component> 920 </SubComponents> 921 </Container> 891 922 </SubComponents> 892 923 </Form> -
trunk/src/atmsdriver/trafficeventseditor/TrafficEventsEditor.java
r237 r238 4 4 * and open the template in the editor. 5 5 */ 6 package atmsdriver. batchbuilder;6 package atmsdriver.trafficeventseditor; 7 7 8 8 import atmsdriver.model.Highway; … … 32 32 * @author jtorres 33 33 */ 34 public class BatchBuilderGUIextends javax.swing.JFrame implements Observer34 public class TrafficEventsEditor extends javax.swing.JFrame implements Observer 35 35 { 36 36 … … 40 40 * Creates new form BatchBuilderGUI 41 41 */ 42 public BatchBuilderGUI(TimeFrames timeFrames)42 public TrafficEventsEditor(TimeFrames timeFrames) 43 43 { 44 44 initComponents(); … … 278 278 public StationTableModel() 279 279 { 280 hwy = BatchBuilderGUI.this.timeFrames.currentHighway;280 hwy = TrafficEventsEditor.this.timeFrames.currentHighway; 281 281 cols = 3; 282 282 rows = hwy != null ? hwy.stations.size() : 0; … … 321 321 public int getSize() 322 322 { 323 return BatchBuilderGUI.this.timeFrames.highways.highways.size();323 return TrafficEventsEditor.this.timeFrames.highways.highways.size(); 324 324 } 325 325 … … 327 327 public Object getElementAt(int index) 328 328 { 329 return BatchBuilderGUI.this.timeFrames.highways.highways.get(index);329 return TrafficEventsEditor.this.timeFrames.highways.highways.get(index); 330 330 } 331 331 } … … 343 343 colorRadioButtons = new javax.swing.ButtonGroup(); 344 344 jPanel6 = new javax.swing.JPanel(); 345 jPanel3 = new javax.swing.JPanel();346 TimeFrameScrollPane = new javax.swing.JScrollPane();347 TimeFrameList = new javax.swing.JList();348 jPanel10 = new javax.swing.JPanel();349 AddNewTimeFrameButton = new javax.swing.JButton();350 DeleteTimeFrameButton = new javax.swing.JButton();351 345 jPanel2 = new javax.swing.JPanel(); 352 346 HighwayScrollPane = new javax.swing.JScrollPane(); … … 358 352 LoopDetectorScrollPane = new javax.swing.JScrollPane(); 359 353 LoopDetectorTable = new javax.swing.JTable(); 360 jPanel8 = new javax.swing.JPanel();361 jScrollPane1 = new javax.swing.JScrollPane();362 TrafficLaneEventsTable = new javax.swing.JTable();363 354 jPanel1 = new javax.swing.JPanel(); 364 355 jPanel9 = new javax.swing.JPanel(); … … 392 383 CumulativePreviewStationButton = new javax.swing.JButton(); 393 384 CumulativePreviewHighwaysButton = new javax.swing.JButton(); 385 jPanel15 = new javax.swing.JPanel(); 386 jPanel3 = new javax.swing.JPanel(); 387 TimeFrameScrollPane = new javax.swing.JScrollPane(); 388 TimeFrameList = new javax.swing.JList(); 389 jPanel10 = new javax.swing.JPanel(); 390 AddNewTimeFrameButton = new javax.swing.JButton(); 391 DeleteTimeFrameButton = new javax.swing.JButton(); 392 jPanel8 = new javax.swing.JPanel(); 393 jScrollPane1 = new javax.swing.JScrollPane(); 394 TrafficLaneEventsTable = new javax.swing.JTable(); 394 395 jPanel14 = new javax.swing.JPanel(); 395 396 jButton1 = new javax.swing.JButton(); … … 398 399 399 400 setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE); 400 401 jPanel3.setBorder(javax.swing.BorderFactory.createTitledBorder(javax.swing.BorderFactory.createEmptyBorder(1, 1, 1, 1), "Time Frame")); 402 403 TimeFrameList.setModel(new javax.swing.AbstractListModel() 404 { 405 String[] strings = { "Item 1", "Item 2", "Item 3", "Item 4", "Item 5" }; 406 public int getSize() { return strings.length; } 407 public Object getElementAt(int i) { return strings[i]; } 408 }); 409 TimeFrameScrollPane.setViewportView(TimeFrameList); 410 411 jPanel10.setBorder(javax.swing.BorderFactory.createEtchedBorder()); 412 413 AddNewTimeFrameButton.setText("Add"); 414 AddNewTimeFrameButton.setActionCommand("addTimeFrame"); 415 AddNewTimeFrameButton.addActionListener(new java.awt.event.ActionListener() 416 { 417 public void actionPerformed(java.awt.event.ActionEvent evt) 418 { 419 addNewTimeFrameButtonClicked(evt); 420 } 421 }); 422 423 DeleteTimeFrameButton.setText("Delete"); 424 DeleteTimeFrameButton.addActionListener(new java.awt.event.ActionListener() 425 { 426 public void actionPerformed(java.awt.event.ActionEvent evt) 427 { 428 DeleteTimeFrameButtonActionPerformed(evt); 429 } 430 }); 431 432 javax.swing.GroupLayout jPanel10Layout = new javax.swing.GroupLayout(jPanel10); 433 jPanel10.setLayout(jPanel10Layout); 434 jPanel10Layout.setHorizontalGroup( 435 jPanel10Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) 436 .addGroup(jPanel10Layout.createSequentialGroup() 437 .addContainerGap() 438 .addComponent(AddNewTimeFrameButton, javax.swing.GroupLayout.PREFERRED_SIZE, 81, javax.swing.GroupLayout.PREFERRED_SIZE) 439 .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) 440 .addComponent(DeleteTimeFrameButton, javax.swing.GroupLayout.PREFERRED_SIZE, 84, javax.swing.GroupLayout.PREFERRED_SIZE) 441 .addContainerGap()) 442 ); 443 jPanel10Layout.setVerticalGroup( 444 jPanel10Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) 445 .addGroup(jPanel10Layout.createSequentialGroup() 446 .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) 447 .addGroup(jPanel10Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) 448 .addComponent(AddNewTimeFrameButton) 449 .addComponent(DeleteTimeFrameButton)) 450 .addContainerGap()) 451 ); 452 453 javax.swing.GroupLayout jPanel3Layout = new javax.swing.GroupLayout(jPanel3); 454 jPanel3.setLayout(jPanel3Layout); 455 jPanel3Layout.setHorizontalGroup( 456 jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) 457 .addComponent(TimeFrameScrollPane, javax.swing.GroupLayout.PREFERRED_SIZE, 215, javax.swing.GroupLayout.PREFERRED_SIZE) 458 .addComponent(jPanel10, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) 459 ); 460 jPanel3Layout.setVerticalGroup( 461 jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) 462 .addGroup(jPanel3Layout.createSequentialGroup() 463 .addComponent(TimeFrameScrollPane, javax.swing.GroupLayout.PREFERRED_SIZE, 238, javax.swing.GroupLayout.PREFERRED_SIZE) 464 .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) 465 .addComponent(jPanel10, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) 466 ); 401 setTitle("Traffic Events Editor"); 402 403 jPanel6.setBorder(javax.swing.BorderFactory.createTitledBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)), "Lane Selection Panel")); 467 404 468 405 jPanel2.setBorder(javax.swing.BorderFactory.createTitledBorder(javax.swing.BorderFactory.createEmptyBorder(1, 1, 1, 1), "Highway")); … … 480 417 jPanel2Layout.setHorizontalGroup( 481 418 jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) 482 .addComponent(HighwayScrollPane, javax.swing.GroupLayout. DEFAULT_SIZE, 100, Short.MAX_VALUE)419 .addComponent(HighwayScrollPane, javax.swing.GroupLayout.Alignment.TRAILING) 483 420 ); 484 421 jPanel2Layout.setVerticalGroup( … … 508 445 jPanel4Layout.setHorizontalGroup( 509 446 jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) 510 .addComponent(StationScrollPane, javax.swing.GroupLayout.DEFAULT_SIZE, 480, Short.MAX_VALUE)447 .addComponent(StationScrollPane, javax.swing.GroupLayout.DEFAULT_SIZE, 546, Short.MAX_VALUE) 511 448 ); 512 449 jPanel4Layout.setVerticalGroup( 513 450 jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) 514 .addComponent(StationScrollPane, javax.swing.GroupLayout. PREFERRED_SIZE, 0, Short.MAX_VALUE)451 .addComponent(StationScrollPane, javax.swing.GroupLayout.DEFAULT_SIZE, 221, Short.MAX_VALUE) 515 452 ); 516 453 … … 536 473 jPanel5Layout.setHorizontalGroup( 537 474 jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) 538 .addComponent(LoopDetectorScrollPane, javax.swing.GroupLayout.DEFAULT_SIZE, 329, Short.MAX_VALUE)475 .addComponent(LoopDetectorScrollPane, javax.swing.GroupLayout.DEFAULT_SIZE, 479, Short.MAX_VALUE) 539 476 ); 540 477 jPanel5Layout.setVerticalGroup( … … 548 485 jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) 549 486 .addGroup(jPanel6Layout.createSequentialGroup() 550 .addContainerGap() 551 .addComponent(jPanel3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) 552 .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) 553 .addComponent(jPanel2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) 487 .addComponent(jPanel2, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) 554 488 .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) 555 489 .addComponent(jPanel4, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) 556 490 .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) 557 .addComponent(jPanel5, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) 558 .addContainerGap()) 491 .addComponent(jPanel5, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) 559 492 ); 560 493 jPanel6Layout.setVerticalGroup( 561 494 jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) 562 495 .addGroup(jPanel6Layout.createSequentialGroup() 563 .add ContainerGap()496 .addGap(6, 6, 6) 564 497 .addGroup(jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) 565 .addComponent(jPanel2, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)566 498 .addComponent(jPanel4, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) 567 .addGroup(jPanel6Layout.createSequentialGroup() 568 .addComponent(jPanel3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) 569 .addGap(0, 0, Short.MAX_VALUE)) 570 .addComponent(jPanel5, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))) 571 ); 572 573 jPanel8.setBorder(javax.swing.BorderFactory.createTitledBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)), "Traffic Lane Events")); 574 575 TrafficLaneEventsTable.setModel(new javax.swing.table.DefaultTableModel( 576 new Object [][] 577 { 578 {null, null, null, null}, 579 {null, null, null, null}, 580 {null, null, null, null}, 581 {null, null, null, null} 582 }, 583 new String [] 584 { 585 "Title 1", "Title 2", "Title 3", "Title 4" 586 } 587 )); 588 jScrollPane1.setViewportView(TrafficLaneEventsTable); 589 590 javax.swing.GroupLayout jPanel8Layout = new javax.swing.GroupLayout(jPanel8); 591 jPanel8.setLayout(jPanel8Layout); 592 jPanel8Layout.setHorizontalGroup( 593 jPanel8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) 594 .addComponent(jScrollPane1) 595 ); 596 jPanel8Layout.setVerticalGroup( 597 jPanel8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) 598 .addGroup(jPanel8Layout.createSequentialGroup() 599 .addContainerGap() 600 .addComponent(jScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 201, Short.MAX_VALUE) 601 .addContainerGap()) 499 .addComponent(jPanel5, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) 500 .addComponent(jPanel2, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))) 602 501 ); 603 502 … … 653 552 .addComponent(jLabel5) 654 553 .addComponent(jLabel4) 655 .addComponent(jLabel7))) 656 .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel9Layout.createSequentialGroup() 657 .addComponent(jLabel8) 658 .addGap(33, 33, 33))) 554 .addComponent(jLabel7) 555 .addComponent(jLabel8)))) 556 .addGap(18, 18, 18) 659 557 .addGroup(jPanel9Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) 660 558 .addComponent(CurrentLoopDetectorDescLabel) … … 666 564 .addComponent(CurrentTimeFrameLabel) 667 565 .addComponent(CurrentStationLocationLabel)) 668 .addContainerGap( javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))566 .addContainerGap(239, Short.MAX_VALUE)) 669 567 ); 670 568 jPanel9Layout.setVerticalGroup( … … 719 617 RedButton.setText("Red"); 720 618 721 AddNewEventButton.setText("Add Event");619 AddNewEventButton.setText("Add New Event"); 722 620 AddNewEventButton.addActionListener(new java.awt.event.ActionListener() 723 621 { … … 728 626 }); 729 627 730 DeleteEventButton.setText("Delete Event");628 DeleteEventButton.setText("Delete Selected Event"); 731 629 DeleteEventButton.addActionListener(new java.awt.event.ActionListener() 732 630 { … … 744 642 .addContainerGap() 745 643 .addGroup(jPanel7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) 746 .addComponent(DeleteEventButton, javax.swing.GroupLayout.DEFAULT_SIZE, 237, Short.MAX_VALUE)644 .addComponent(DeleteEventButton, javax.swing.GroupLayout.DEFAULT_SIZE, 344, Short.MAX_VALUE) 747 645 .addGroup(jPanel7Layout.createSequentialGroup() 748 646 .addGroup(jPanel7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) … … 772 670 jPanel1.add(jPanel7); 773 671 774 jPanel11.setBorder(javax.swing.BorderFactory.createTitledBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)), "Preview and Import/Export Panel")); 775 776 jPanel12.setBorder(javax.swing.BorderFactory.createTitledBorder(javax.swing.BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.RAISED), "Frame Preview")); 777 778 SinglePreviewStationButton.setText("Preview Station"); 672 jPanel11.setBorder(javax.swing.BorderFactory.createTitledBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)), "Preview Lane Events on ATMS")); 673 jPanel11.setLayout(new java.awt.BorderLayout()); 674 675 jPanel12.setBorder(javax.swing.BorderFactory.createTitledBorder(javax.swing.BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.RAISED), "Selected Time Frame Preview")); 676 677 SinglePreviewStationButton.setText("Send Selected Station Events"); 779 678 SinglePreviewStationButton.addActionListener(new java.awt.event.ActionListener() 780 679 { … … 785 684 }); 786 685 787 SinglePreviewHighwaysButton.setText(" Preview Highways");686 SinglePreviewHighwaysButton.setText("Send All Events"); 788 687 SinglePreviewHighwaysButton.addActionListener(new java.awt.event.ActionListener() 789 688 { … … 803 702 .addComponent(SinglePreviewHighwaysButton, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) 804 703 .addComponent(SinglePreviewStationButton, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) 805 .addContainerGap(1 5, Short.MAX_VALUE))704 .addContainerGap(10, Short.MAX_VALUE)) 806 705 ); 807 706 jPanel12Layout.setVerticalGroup( … … 815 714 ); 816 715 716 jPanel11.add(jPanel12, java.awt.BorderLayout.CENTER); 717 817 718 jPanel13.setBorder(javax.swing.BorderFactory.createTitledBorder(javax.swing.BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.RAISED), "Cumulative Preview")); 818 719 819 CumulativePreviewStationButton.setText("Preview Station"); 820 821 CumulativePreviewHighwaysButton.setText("Preview Highways"); 720 CumulativePreviewStationButton.setText("Send Selected Station Events"); 721 CumulativePreviewStationButton.addActionListener(new java.awt.event.ActionListener() 722 { 723 public void actionPerformed(java.awt.event.ActionEvent evt) 724 { 725 CumulativeStationPreviewButtonActionPerformed(evt); 726 } 727 }); 728 729 CumulativePreviewHighwaysButton.setText("Send All Events"); 730 CumulativePreviewHighwaysButton.addActionListener(new java.awt.event.ActionListener() 731 { 732 public void actionPerformed(java.awt.event.ActionEvent evt) 733 { 734 CumulativeHighwaysPreviewButtonActionPerformed(evt); 735 } 736 }); 822 737 823 738 javax.swing.GroupLayout jPanel13Layout = new javax.swing.GroupLayout(jPanel13); … … 842 757 ); 843 758 844 jPanel14.setBorder(javax.swing.BorderFactory.createTitledBorder(javax.swing.BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.RAISED), "Export/Import Scripts")); 759 jPanel11.add(jPanel13, java.awt.BorderLayout.PAGE_START); 760 761 jPanel3.setBorder(javax.swing.BorderFactory.createTitledBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)), "Time Frame")); 762 763 TimeFrameList.setModel(new javax.swing.AbstractListModel() 764 { 765 String[] strings = { "Item 1", "Item 2", "Item 3", "Item 4", "Item 5" }; 766 public int getSize() { return strings.length; } 767 public Object getElementAt(int i) { return strings[i]; } 768 }); 769 TimeFrameScrollPane.setViewportView(TimeFrameList); 770 771 jPanel10.setBorder(javax.swing.BorderFactory.createEtchedBorder()); 772 773 AddNewTimeFrameButton.setText("New"); 774 AddNewTimeFrameButton.setActionCommand("addTimeFrame"); 775 AddNewTimeFrameButton.addActionListener(new java.awt.event.ActionListener() 776 { 777 public void actionPerformed(java.awt.event.ActionEvent evt) 778 { 779 addNewTimeFrameButtonClicked(evt); 780 } 781 }); 782 783 DeleteTimeFrameButton.setText("Delete"); 784 DeleteTimeFrameButton.addActionListener(new java.awt.event.ActionListener() 785 { 786 public void actionPerformed(java.awt.event.ActionEvent evt) 787 { 788 DeleteTimeFrameButtonActionPerformed(evt); 789 } 790 }); 791 792 javax.swing.GroupLayout jPanel10Layout = new javax.swing.GroupLayout(jPanel10); 793 jPanel10.setLayout(jPanel10Layout); 794 jPanel10Layout.setHorizontalGroup( 795 jPanel10Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) 796 .addGroup(jPanel10Layout.createSequentialGroup() 797 .addContainerGap() 798 .addComponent(AddNewTimeFrameButton, javax.swing.GroupLayout.PREFERRED_SIZE, 81, javax.swing.GroupLayout.PREFERRED_SIZE) 799 .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 40, Short.MAX_VALUE) 800 .addComponent(DeleteTimeFrameButton, javax.swing.GroupLayout.PREFERRED_SIZE, 84, javax.swing.GroupLayout.PREFERRED_SIZE) 801 .addContainerGap()) 802 ); 803 jPanel10Layout.setVerticalGroup( 804 jPanel10Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) 805 .addGroup(jPanel10Layout.createSequentialGroup() 806 .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) 807 .addGroup(jPanel10Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) 808 .addComponent(AddNewTimeFrameButton) 809 .addComponent(DeleteTimeFrameButton)) 810 .addContainerGap()) 811 ); 812 813 javax.swing.GroupLayout jPanel3Layout = new javax.swing.GroupLayout(jPanel3); 814 jPanel3.setLayout(jPanel3Layout); 815 jPanel3Layout.setHorizontalGroup( 816 jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) 817 .addComponent(TimeFrameScrollPane, javax.swing.GroupLayout.PREFERRED_SIZE, 215, javax.swing.GroupLayout.PREFERRED_SIZE) 818 .addComponent(jPanel10, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) 819 ); 820 jPanel3Layout.setVerticalGroup( 821 jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) 822 .addGroup(jPanel3Layout.createSequentialGroup() 823 .addComponent(TimeFrameScrollPane, javax.swing.GroupLayout.PREFERRED_SIZE, 238, javax.swing.GroupLayout.PREFERRED_SIZE) 824 .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) 825 .addComponent(jPanel10, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) 826 ); 827 828 jPanel8.setBorder(javax.swing.BorderFactory.createTitledBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)), "Traffic Lane Events")); 829 830 TrafficLaneEventsTable.setModel(new javax.swing.table.DefaultTableModel( 831 new Object [][] 832 { 833 {null, null, null, null}, 834 {null, null, null, null}, 835 {null, null, null, null}, 836 {null, null, null, null} 837 }, 838 new String [] 839 { 840 "Title 1", "Title 2", "Title 3", "Title 4" 841 } 842 )); 843 jScrollPane1.setViewportView(TrafficLaneEventsTable); 844 845 javax.swing.GroupLayout jPanel8Layout = new javax.swing.GroupLayout(jPanel8); 846 jPanel8.setLayout(jPanel8Layout); 847 jPanel8Layout.setHorizontalGroup( 848 jPanel8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) 849 .addComponent(jScrollPane1, javax.swing.GroupLayout.Alignment.TRAILING) 850 ); 851 jPanel8Layout.setVerticalGroup( 852 jPanel8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) 853 .addGroup(jPanel8Layout.createSequentialGroup() 854 .addContainerGap() 855 .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 0, Short.MAX_VALUE) 856 .addContainerGap()) 857 ); 858 859 javax.swing.GroupLayout jPanel15Layout = new javax.swing.GroupLayout(jPanel15); 860 jPanel15.setLayout(jPanel15Layout); 861 jPanel15Layout.setHorizontalGroup( 862 jPanel15Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) 863 .addGroup(jPanel15Layout.createSequentialGroup() 864 .addComponent(jPanel3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) 865 .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) 866 .addComponent(jPanel8, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) 867 .addContainerGap()) 868 ); 869 jPanel15Layout.setVerticalGroup( 870 jPanel15Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) 871 .addGroup(jPanel15Layout.createSequentialGroup() 872 .addContainerGap() 873 .addGroup(jPanel15Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false) 874 .addComponent(jPanel3, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) 875 .addComponent(jPanel8, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) 876 .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) 877 ); 878 879 jPanel14.setBorder(javax.swing.BorderFactory.createTitledBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)), "Export/Import Scripts")); 845 880 846 881 jButton1.setText("Load Script"); … … 854 889 jPanel14Layout.setHorizontalGroup( 855 890 jPanel14Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) 856 .addGroup(jPanel14Layout.createSequentialGroup() 857 .addContainerGap() 858 .addGroup(jPanel14Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false) 859 .addComponent(jButton3, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) 891 .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel14Layout.createSequentialGroup() 892 .addContainerGap(28, Short.MAX_VALUE) 893 .addGroup(jPanel14Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false) 860 894 .addComponent(jButton2, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) 861 .addComponent(jButton1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) 862 .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) 895 .addComponent(jButton1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) 896 .addComponent(jButton3, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) 897 .addGap(27, 27, 27)) 863 898 ); 864 899 jPanel14Layout.setVerticalGroup( … … 874 909 ); 875 910 876 javax.swing.GroupLayout jPanel11Layout = new javax.swing.GroupLayout(jPanel11);877 jPanel11.setLayout(jPanel11Layout);878 jPanel11Layout.setHorizontalGroup(879 jPanel11Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)880 .addGroup(jPanel11Layout.createSequentialGroup()881 .addContainerGap()882 .addComponent(jPanel12, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)883 .addGap(18, 18, 18)884 .addComponent(jPanel13, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)885 .addGap(18, 18, 18)886 .addComponent(jPanel14, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)887 .addContainerGap())888 );889 jPanel11Layout.setVerticalGroup(890 jPanel11Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)891 .addGroup(jPanel11Layout.createSequentialGroup()892 .addContainerGap()893 .addGroup(jPanel11Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)894 .addComponent(jPanel13, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)895 .addComponent(jPanel12, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)896 .addComponent(jPanel14, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))897 .addContainerGap())898 );899 900 911 javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane()); 901 912 getContentPane().setLayout(layout); … … 903 914 layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) 904 915 .addGroup(layout.createSequentialGroup() 905 .addGap(12, 12, 12)906 916 .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) 907 .addComponent(jPanel8, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)908 917 .addGroup(layout.createSequentialGroup() 909 .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) 910 .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) 911 .addComponent(jPanel11, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))) 918 .addGap(12, 12, 12) 919 .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) 920 .addComponent(jPanel15, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) 921 .addGroup(layout.createSequentialGroup() 922 .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, 730, javax.swing.GroupLayout.PREFERRED_SIZE) 923 .addGap(18, 18, 18) 924 .addComponent(jPanel11, javax.swing.GroupLayout.PREFERRED_SIZE, 261, javax.swing.GroupLayout.PREFERRED_SIZE) 925 .addGap(18, 18, 18) 926 .addComponent(jPanel14, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)))) 927 .addGroup(layout.createSequentialGroup() 928 .addContainerGap() 929 .addComponent(jPanel6, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))) 912 930 .addContainerGap()) 913 .addComponent(jPanel6, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)914 931 ); 915 932 layout.setVerticalGroup( 916 933 layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) 917 934 .addGroup(layout.createSequentialGroup() 918 .addContainerGap( )935 .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) 919 936 .addComponent(jPanel6, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) 920 937 .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) 921 .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false) 922 .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) 923 .addComponent(jPanel11, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) 924 .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) 925 .addComponent(jPanel8, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) 926 .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) 938 .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) 939 .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false) 940 .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) 941 .addComponent(jPanel11, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) 942 .addComponent(jPanel14, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) 943 .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) 944 .addComponent(jPanel15, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) 927 945 ); 928 946 … … 998 1016 }//GEN-LAST:event_SinglePreviewHighwaysButtonActionPerformed 999 1017 1018 private void CumulativeStationPreviewButtonActionPerformed(java.awt.event.ActionEvent evt)//GEN-FIRST:event_CumulativeStationPreviewButtonActionPerformed 1019 {//GEN-HEADEREND:event_CumulativeStationPreviewButtonActionPerformed 1020 timeFrames.cumulativePreviewStation(); 1021 }//GEN-LAST:event_CumulativeStationPreviewButtonActionPerformed 1022 1023 private void CumulativeHighwaysPreviewButtonActionPerformed(java.awt.event.ActionEvent evt)//GEN-FIRST:event_CumulativeHighwaysPreviewButtonActionPerformed 1024 {//GEN-HEADEREND:event_CumulativeHighwaysPreviewButtonActionPerformed 1025 timeFrames.cumulativePreviewHighways(); 1026 }//GEN-LAST:event_CumulativeHighwaysPreviewButtonActionPerformed 1027 1000 1028 private DOTCOLOR getDotColorFromText(String text) 1001 1029 { … … 1038 1066 } catch (ClassNotFoundException ex) 1039 1067 { 1040 java.util.logging.Logger.getLogger( BatchBuilderGUI.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);1068 java.util.logging.Logger.getLogger(TrafficEventsEditor.class.getName()).log(java.util.logging.Level.SEVERE, null, ex); 1041 1069 } catch (InstantiationException ex) 1042 1070 { 1043 java.util.logging.Logger.getLogger( BatchBuilderGUI.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);1071 java.util.logging.Logger.getLogger(TrafficEventsEditor.class.getName()).log(java.util.logging.Level.SEVERE, null, ex); 1044 1072 } catch (IllegalAccessException ex) 1045 1073 { 1046 java.util.logging.Logger.getLogger( BatchBuilderGUI.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);1074 java.util.logging.Logger.getLogger(TrafficEventsEditor.class.getName()).log(java.util.logging.Level.SEVERE, null, ex); 1047 1075 } catch (javax.swing.UnsupportedLookAndFeelException ex) 1048 1076 { 1049 java.util.logging.Logger.getLogger( BatchBuilderGUI.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);1077 java.util.logging.Logger.getLogger(TrafficEventsEditor.class.getName()).log(java.util.logging.Level.SEVERE, null, ex); 1050 1078 } 1051 1079 //</editor-fold> 1080 //</editor-fold> 1081 //</editor-fold> 1082 //</editor-fold> 1052 1083 1053 1084 TimeFrames timeFrames = new TimeFrames(); 1054 final BatchBuilderGUI gui = new BatchBuilderGUI(timeFrames);1085 final TrafficEventsEditor gui = new TrafficEventsEditor(timeFrames); 1055 1086 timeFrames.addObserver(gui); 1056 1087 … … 1113 1144 private javax.swing.JPanel jPanel13; 1114 1145 private javax.swing.JPanel jPanel14; 1146 private javax.swing.JPanel jPanel15; 1115 1147 private javax.swing.JPanel jPanel2; 1116 1148 private javax.swing.JPanel jPanel3; -
trunk/src/atmsdriver/trafficeventseditor/TrafficLaneEvent.java
r237 r238 1 package atmsdriver. batchbuilder;1 package atmsdriver.trafficeventseditor; 2 2 3 3 import atmsdriver.model.LoopDetector;
Note: See TracChangeset
for help on using the changeset viewer.
