Changeset 238 in tmcsimulator for trunk


Ignore:
Timestamp:
12/20/2017 02:00:12 AM (8 years ago)
Author:
jtorres
Message:

Renamed BatchBuilderGUI to TrafficEventsEditor?. Reconfigured GUI per JD's suggestions.

Location:
trunk/src
Files:
1 added
1 deleted
2 edited
5 copied

Legend:

Unmodified
Added
Removed
  • trunk/src/atmsdriver/model/Highways.java

    r237 r238  
    11package atmsdriver.model; 
    22 
    3 import atmsdriver.batchbuilder.TrafficLaneEvent; 
     3import atmsdriver.trafficeventseditor.TrafficLaneEvent; 
    44import atmsdriver.model.LoopDetector.DOTCOLOR; 
    55import atmsdriver.model.Station.DIRECTION; 
  • trunk/src/atmsdriver/trafficeventseditor/TimeFrame.java

    r237 r238  
    1 package atmsdriver.batchbuilder; 
     1package atmsdriver.trafficeventseditor; 
    22 
    33import java.util.ArrayList; 
  • trunk/src/atmsdriver/trafficeventseditor/TimeFrames.java

    r237 r238  
    44 * and open the template in the editor. 
    55 */ 
    6 package atmsdriver.batchbuilder; 
     6package atmsdriver.trafficeventseditor; 
    77 
    88import atmsdriver.model.Highway; 
     
    3636        frames = new ArrayList<>(); 
    3737        highways = new Highways("./config/vds_data/highways_fullmap.txt",  
    38                 "localhost", 8080); 
     38                "192.168.251.46", 8080); 
    3939    } 
    4040     
     
    170170    { 
    171171        highways.reset(); 
    172         List<TrafficLaneEvent> events = currentTimeFrame.events; 
    173         for(TrafficLaneEvent event : events) 
     172        for(TrafficLaneEvent event : currentTimeFrame.events) 
    174173        { 
    175174            if(event.station.equals(currentStation)) 
     
    202201        } 
    203202    } 
     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    */ 
    204243} 
  • trunk/src/atmsdriver/trafficeventseditor/TrafficEventsEditor.form

    r237 r238  
    88  <Properties> 
    99    <Property name="defaultCloseOperation" type="int" value="3"/> 
     10    <Property name="title" type="java.lang.String" value="Traffic Events Editor"/> 
    1011  </Properties> 
    1112  <SyntheticProperties> 
     
    2930      <Group type="103" groupAlignment="0" attributes="0"> 
    3031          <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"/> 
    3849                  </Group> 
    3950              </Group> 
    4051              <EmptySpace max="-2" attributes="0"/> 
    4152          </Group> 
    42           <Component id="jPanel6" alignment="0" max="32767" attributes="0"/> 
    4353      </Group> 
    4454    </DimensionLayout> 
     
    4656      <Group type="103" groupAlignment="0" attributes="0"> 
    4757          <Group type="102" alignment="0" attributes="0"> 
    48               <EmptySpace max="-2" attributes="0"/> 
     58              <EmptySpace max="32767" attributes="0"/> 
    4959              <Component id="jPanel6" min="-2" max="-2" attributes="0"/> 
    5060              <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"/> 
    5467              </Group> 
    5568              <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"/> 
    5870          </Group> 
    5971      </Group> 
     
    6274  <SubComponents> 
    6375    <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> 
    6487 
    6588      <Layout> 
    6689        <DimensionLayout dim="0"> 
    6790          <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"/> 
    7393                  <EmptySpace max="-2" attributes="0"/> 
    7494                  <Component id="jPanel4" min="-2" max="-2" attributes="0"/> 
    7595                  <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"/> 
    7897              </Group> 
    7998          </Group> 
     
    82101          <Group type="103" groupAlignment="0" attributes="0"> 
    83102              <Group type="102" attributes="0"> 
    84                   <EmptySpace max="-2" attributes="0"/> 
     103                  <EmptySpace min="6" pref="6" max="-2" attributes="0"/> 
    85104                  <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"/> 
    93108                  </Group> 
    94109              </Group> 
     
    97112      </Layout> 
    98113      <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> 
    205114        <Container class="javax.swing.JPanel" name="jPanel2"> 
    206115          <Properties> 
     
    219128            <DimensionLayout dim="0"> 
    220129              <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"/> 
    222131              </Group> 
    223132            </DimensionLayout> 
     
    266175            <DimensionLayout dim="0"> 
    267176              <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"/> 
    269178              </Group> 
    270179            </DimensionLayout> 
    271180            <DimensionLayout dim="1"> 
    272181              <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"/> 
    274183              </Group> 
    275184            </DimensionLayout> 
     
    312221            <DimensionLayout dim="0"> 
    313222              <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"/> 
    315224              </Group> 
    316225            </DimensionLayout> 
     
    347256      </SubComponents> 
    348257    </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> 
    399258    <Container class="javax.swing.JPanel" name="jPanel1"> 
    400259      <Properties> 
     
    433292                                  <Component id="jLabel4" min="-2" max="-2" attributes="0"/> 
    434293                                  <Component id="jLabel7" min="-2" max="-2" attributes="0"/> 
     294                                  <Component id="jLabel8" alignment="0" min="-2" max="-2" attributes="0"/> 
    435295                              </Group> 
    436296                          </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"/> 
    442299                      <Group type="103" groupAlignment="0" attributes="0"> 
    443300                          <Component id="CurrentLoopDetectorDescLabel" alignment="0" min="-2" max="-2" attributes="0"/> 
     
    450307                          <Component id="CurrentStationLocationLabel" alignment="0" min="-2" max="-2" attributes="0"/> 
    451308                      </Group> 
    452                       <EmptySpace max="32767" attributes="0"/> 
     309                      <EmptySpace pref="239" max="32767" attributes="0"/> 
    453310                  </Group> 
    454311              </Group> 
     
    600457                      <EmptySpace max="-2" attributes="0"/> 
    601458                      <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"/> 
    603460                          <Group type="102" attributes="0"> 
    604461                              <Group type="103" groupAlignment="0" attributes="0"> 
     
    660517            <Component class="javax.swing.JButton" name="AddNewEventButton"> 
    661518              <Properties> 
    662                 <Property name="text" type="java.lang.String" value="Add Event"/> 
     519                <Property name="text" type="java.lang.String" value="Add New Event"/> 
    663520              </Properties> 
    664521              <Events> 
     
    668525            <Component class="javax.swing.JButton" name="DeleteEventButton"> 
    669526              <Properties> 
    670                 <Property name="text" type="java.lang.String" value="Delete Event"/> 
     527                <Property name="text" type="java.lang.String" value="Delete Selected Event"/> 
    671528              </Properties> 
    672529              <Events> 
     
    682539        <Property name="border" type="javax.swing.border.Border" editor="org.netbeans.modules.form.editors2.BorderEditor"> 
    683540          <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"> 
    685542              <Border PropertyName="innerBorder" info="org.netbeans.modules.form.compat2.border.LineBorderInfo"> 
    686543                <LineBorder/> 
     
    691548      </Properties> 
    692549 
    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"/> 
    721551      <SubComponents> 
    722552        <Container class="javax.swing.JPanel" name="jPanel12"> 
     
    724554            <Property name="border" type="javax.swing.border.Border" editor="org.netbeans.modules.form.editors2.BorderEditor"> 
    725555              <Border info="org.netbeans.modules.form.compat2.border.TitledBorderInfo"> 
    726                 <TitledBorder title="Frame Preview"> 
     556                <TitledBorder title="Selected Time Frame Preview"> 
    727557                  <Border PropertyName="innerBorder" info="org.netbeans.modules.form.compat2.border.BevelBorderInfo"> 
    728558                    <BevelBorder/> 
     
    732562            </Property> 
    733563          </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> 
    734569 
    735570          <Layout> 
     
    742577                          <Component id="SinglePreviewStationButton" max="32767" attributes="0"/> 
    743578                      </Group> 
    744                       <EmptySpace pref="15" max="32767" attributes="0"/> 
     579                      <EmptySpace pref="10" max="32767" attributes="0"/> 
    745580                  </Group> 
    746581              </Group> 
     
    761596            <Component class="javax.swing.JButton" name="SinglePreviewStationButton"> 
    762597              <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"/> 
    764599              </Properties> 
    765600              <Events> 
     
    769604            <Component class="javax.swing.JButton" name="SinglePreviewHighwaysButton"> 
    770605              <Properties> 
    771                 <Property name="text" type="java.lang.String" value="Preview Highways"/> 
     606                <Property name="text" type="java.lang.String" value="Send All Events"/> 
    772607              </Properties> 
    773608              <Events> 
     
    789624            </Property> 
    790625          </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> 
    791631 
    792632          <Layout> 
     
    818658            <Component class="javax.swing.JButton" name="CumulativePreviewStationButton"> 
    819659              <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> 
    822665            </Component> 
    823666            <Component class="javax.swing.JButton" name="CumulativePreviewHighwaysButton"> 
    824667              <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> 
    886673            </Component> 
    887674          </SubComponents> 
     
    889676      </SubComponents> 
    890677    </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> 
    891922  </SubComponents> 
    892923</Form> 
  • trunk/src/atmsdriver/trafficeventseditor/TrafficEventsEditor.java

    r237 r238  
    44 * and open the template in the editor. 
    55 */ 
    6 package atmsdriver.batchbuilder; 
     6package atmsdriver.trafficeventseditor; 
    77 
    88import atmsdriver.model.Highway; 
     
    3232 * @author jtorres 
    3333 */ 
    34 public class BatchBuilderGUI extends javax.swing.JFrame implements Observer 
     34public class TrafficEventsEditor extends javax.swing.JFrame implements Observer 
    3535{ 
    3636     
     
    4040     * Creates new form BatchBuilderGUI 
    4141     */ 
    42     public BatchBuilderGUI(TimeFrames timeFrames) 
     42    public TrafficEventsEditor(TimeFrames timeFrames) 
    4343    { 
    4444        initComponents(); 
     
    278278        public StationTableModel() 
    279279        { 
    280             hwy = BatchBuilderGUI.this.timeFrames.currentHighway; 
     280            hwy = TrafficEventsEditor.this.timeFrames.currentHighway; 
    281281            cols = 3; 
    282282            rows = hwy != null ? hwy.stations.size() : 0; 
     
    321321        public int getSize() 
    322322        { 
    323             return BatchBuilderGUI.this.timeFrames.highways.highways.size(); 
     323            return TrafficEventsEditor.this.timeFrames.highways.highways.size(); 
    324324        } 
    325325 
     
    327327        public Object getElementAt(int index) 
    328328        { 
    329             return BatchBuilderGUI.this.timeFrames.highways.highways.get(index); 
     329            return TrafficEventsEditor.this.timeFrames.highways.highways.get(index); 
    330330        } 
    331331    } 
     
    343343        colorRadioButtons = new javax.swing.ButtonGroup(); 
    344344        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(); 
    351345        jPanel2 = new javax.swing.JPanel(); 
    352346        HighwayScrollPane = new javax.swing.JScrollPane(); 
     
    358352        LoopDetectorScrollPane = new javax.swing.JScrollPane(); 
    359353        LoopDetectorTable = new javax.swing.JTable(); 
    360         jPanel8 = new javax.swing.JPanel(); 
    361         jScrollPane1 = new javax.swing.JScrollPane(); 
    362         TrafficLaneEventsTable = new javax.swing.JTable(); 
    363354        jPanel1 = new javax.swing.JPanel(); 
    364355        jPanel9 = new javax.swing.JPanel(); 
     
    392383        CumulativePreviewStationButton = new javax.swing.JButton(); 
    393384        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(); 
    394395        jPanel14 = new javax.swing.JPanel(); 
    395396        jButton1 = new javax.swing.JButton(); 
     
    398399 
    399400        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")); 
    467404 
    468405        jPanel2.setBorder(javax.swing.BorderFactory.createTitledBorder(javax.swing.BorderFactory.createEmptyBorder(1, 1, 1, 1), "Highway")); 
     
    480417        jPanel2Layout.setHorizontalGroup( 
    481418            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) 
    483420        ); 
    484421        jPanel2Layout.setVerticalGroup( 
     
    508445        jPanel4Layout.setHorizontalGroup( 
    509446            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) 
    511448        ); 
    512449        jPanel4Layout.setVerticalGroup( 
    513450            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) 
    515452        ); 
    516453 
     
    536473        jPanel5Layout.setHorizontalGroup( 
    537474            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) 
    539476        ); 
    540477        jPanel5Layout.setVerticalGroup( 
     
    548485            jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) 
    549486            .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) 
    554488                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) 
    555489                .addComponent(jPanel4, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) 
    556490                .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)) 
    559492        ); 
    560493        jPanel6Layout.setVerticalGroup( 
    561494            jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) 
    562495            .addGroup(jPanel6Layout.createSequentialGroup() 
    563                 .addContainerGap() 
     496                .addGap(6, 6, 6) 
    564497                .addGroup(jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) 
    565                     .addComponent(jPanel2, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) 
    566498                    .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))) 
    602501        ); 
    603502 
     
    653552                            .addComponent(jLabel5) 
    654553                            .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) 
    659557                .addGroup(jPanel9Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) 
    660558                    .addComponent(CurrentLoopDetectorDescLabel) 
     
    666564                    .addComponent(CurrentTimeFrameLabel) 
    667565                    .addComponent(CurrentStationLocationLabel)) 
    668                 .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) 
     566                .addContainerGap(239, Short.MAX_VALUE)) 
    669567        ); 
    670568        jPanel9Layout.setVerticalGroup( 
     
    719617        RedButton.setText("Red"); 
    720618 
    721         AddNewEventButton.setText("Add Event"); 
     619        AddNewEventButton.setText("Add New Event"); 
    722620        AddNewEventButton.addActionListener(new java.awt.event.ActionListener() 
    723621        { 
     
    728626        }); 
    729627 
    730         DeleteEventButton.setText("Delete Event"); 
     628        DeleteEventButton.setText("Delete Selected Event"); 
    731629        DeleteEventButton.addActionListener(new java.awt.event.ActionListener() 
    732630        { 
     
    744642                .addContainerGap() 
    745643                .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) 
    747645                    .addGroup(jPanel7Layout.createSequentialGroup() 
    748646                        .addGroup(jPanel7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) 
     
    772670        jPanel1.add(jPanel7); 
    773671 
    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"); 
    779678        SinglePreviewStationButton.addActionListener(new java.awt.event.ActionListener() 
    780679        { 
     
    785684        }); 
    786685 
    787         SinglePreviewHighwaysButton.setText("Preview Highways"); 
     686        SinglePreviewHighwaysButton.setText("Send All Events"); 
    788687        SinglePreviewHighwaysButton.addActionListener(new java.awt.event.ActionListener() 
    789688        { 
     
    803702                    .addComponent(SinglePreviewHighwaysButton, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) 
    804703                    .addComponent(SinglePreviewStationButton, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) 
    805                 .addContainerGap(15, Short.MAX_VALUE)) 
     704                .addContainerGap(10, Short.MAX_VALUE)) 
    806705        ); 
    807706        jPanel12Layout.setVerticalGroup( 
     
    815714        ); 
    816715 
     716        jPanel11.add(jPanel12, java.awt.BorderLayout.CENTER); 
     717 
    817718        jPanel13.setBorder(javax.swing.BorderFactory.createTitledBorder(javax.swing.BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.RAISED), "Cumulative Preview")); 
    818719 
    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        }); 
    822737 
    823738        javax.swing.GroupLayout jPanel13Layout = new javax.swing.GroupLayout(jPanel13); 
     
    842757        ); 
    843758 
    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")); 
    845880 
    846881        jButton1.setText("Load Script"); 
     
    854889        jPanel14Layout.setHorizontalGroup( 
    855890            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) 
    860894                    .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)) 
    863898        ); 
    864899        jPanel14Layout.setVerticalGroup( 
     
    874909        ); 
    875910 
    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  
    900911        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane()); 
    901912        getContentPane().setLayout(layout); 
     
    903914            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) 
    904915            .addGroup(layout.createSequentialGroup() 
    905                 .addGap(12, 12, 12) 
    906916                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) 
    907                     .addComponent(jPanel8, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) 
    908917                    .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))) 
    912930                .addContainerGap()) 
    913             .addComponent(jPanel6, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) 
    914931        ); 
    915932        layout.setVerticalGroup( 
    916933            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) 
    917934            .addGroup(layout.createSequentialGroup() 
    918                 .addContainerGap() 
     935                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) 
    919936                .addComponent(jPanel6, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) 
    920937                .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)) 
    927945        ); 
    928946 
     
    9981016    }//GEN-LAST:event_SinglePreviewHighwaysButtonActionPerformed 
    9991017 
     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 
    10001028    private DOTCOLOR getDotColorFromText(String text) 
    10011029    { 
     
    10381066        } catch (ClassNotFoundException ex) 
    10391067        { 
    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); 
    10411069        } catch (InstantiationException ex) 
    10421070        { 
    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); 
    10441072        } catch (IllegalAccessException ex) 
    10451073        { 
    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); 
    10471075        } catch (javax.swing.UnsupportedLookAndFeelException ex) 
    10481076        { 
    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); 
    10501078        } 
    10511079        //</editor-fold> 
     1080        //</editor-fold> 
     1081        //</editor-fold> 
     1082        //</editor-fold> 
    10521083         
    10531084        TimeFrames timeFrames = new TimeFrames(); 
    1054         final BatchBuilderGUI gui = new BatchBuilderGUI(timeFrames); 
     1085        final TrafficEventsEditor gui = new TrafficEventsEditor(timeFrames); 
    10551086        timeFrames.addObserver(gui); 
    10561087         
     
    11131144    private javax.swing.JPanel jPanel13; 
    11141145    private javax.swing.JPanel jPanel14; 
     1146    private javax.swing.JPanel jPanel15; 
    11151147    private javax.swing.JPanel jPanel2; 
    11161148    private javax.swing.JPanel jPanel3; 
  • trunk/src/atmsdriver/trafficeventseditor/TrafficLaneEvent.java

    r237 r238  
    1 package atmsdriver.batchbuilder; 
     1package atmsdriver.trafficeventseditor; 
    22 
    33import atmsdriver.model.LoopDetector; 
  • trunk/src/tmcsim/application.properties

    r237 r238  
    1 #Wed, 13 Dec 2017 04:11:31 -0800 
     1#Wed, 20 Dec 2017 03:11:04 -0800 
    22 
    3 Application.revision=234 
     3Application.revision=237 
    44 
    55Application.buildnumber=88 
Note: See TracChangeset for help on using the changeset viewer.