Changeset 240 in tmcsimulator


Ignore:
Timestamp:
12/20/2017 04:03:29 AM (8 years ago)
Author:
jtorres
Message:

TrafficEventsEditor?: enabled multiple selection in loop detector selection table

Location:
trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/IDE_metadata/NetBeans/TMCSim/nbproject/project.properties

    r237 r240  
    11#Wed Oct 11 09:26:31 PDT 2017 
    22excludes= 
     3file.reference.TimeSelector_r13.jar=../../../lib/TimeSelector_r13.jar 
    34file.reference.xercesImpl.jar=../../../lib/xercesImpl.jar 
    45javac.deprecation=false 
     
    7172    ${file.reference.commons-lang-2.4.jar}:\ 
    7273    ${libs.junit_4.classpath}:\ 
    73     ${libs.absolutelayout.classpath} 
     74    ${libs.absolutelayout.classpath}:\ 
     75    ${file.reference.TimeSelector_r13.jar} 
    7476annotation.processing.enabled.in.editor=false 
    7577build.generated.sources.dir=${build.dir}/generated-sources 
  • trunk/src/atmsdriver/trafficeventseditor/TimeFrames.java

    r239 r240  
    5050    } 
    5151     
    52     public void addEventToTimeFrame(DOTCOLOR dotcolor) 
    53     { 
    54         TrafficLaneEvent event = new TrafficLaneEvent( 
    55                 currentHighway.routeNumber, currentStation,  
    56                 currentLoopDetector, dotcolor); 
    57         currentTimeFrame.addEvent(event); 
     52    public void addEventsToTimeFrame(int[] rows, DOTCOLOR dotcolor) 
     53    { 
     54        for(int row : rows) 
     55        { 
     56            TrafficLaneEvent event = new TrafficLaneEvent(currentHighway.routeNumber, 
     57                    currentStation, currentStation.loops.get(row), dotcolor); 
     58            currentTimeFrame.addEvent(event); 
     59        } 
    5860         
    5961        setChanged(); 
  • trunk/src/atmsdriver/trafficeventseditor/TrafficEventsEditor.java

    r239 r240  
    5959         
    6060        LoopDetectorTable.setModel(new LoopDetectorTableModel()); 
    61         LoopDetectorTable.setSelectionMode(ListSelectionModel.SINGLE_SELECTION); 
     61        LoopDetectorTable.setSelectionMode(ListSelectionModel.MULTIPLE_INTERVAL_SELECTION); 
    6262        LoopDetectorTable.getSelectionModel().addListSelectionListener( 
    6363                new LoopDetectorTableListSelectionListener()); 
     
    963963    private void AddLaneEventButtonActionPerformed(java.awt.event.ActionEvent evt)//GEN-FIRST:event_AddLaneEventButtonActionPerformed 
    964964    {//GEN-HEADEREND:event_AddLaneEventButtonActionPerformed 
    965         timeFrames.addEventToTimeFrame(getDotColorFromText( 
     965        int rows[] = LoopDetectorTable.getSelectedRows(); 
     966        timeFrames.addEventsToTimeFrame(rows, getDotColorFromText( 
    966967                getSelectedButtonText(colorRadioButtons))); 
    967968    }//GEN-LAST:event_AddLaneEventButtonActionPerformed 
  • trunk/src/tmcsim/application.properties

    r239 r240  
    1 #Wed, 20 Dec 2017 03:27:09 -0800 
     1#Wed, 20 Dec 2017 05:14:41 -0800 
    22 
    3 Application.revision=238 
     3Application.revision=239 
    44 
    55Application.buildnumber=88 
Note: See TracChangeset for help on using the changeset viewer.