Changeset 563


Ignore:
Timestamp:
09/28/12 16:04:49 (12 years ago)
Author:
vmipsl
Message:

simulation

  • ajout exemple ds index
Location:
ether_megapoli/trunk
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • ether_megapoli/trunk/service/implementation/com/ether/EtherPlotContentServiceImpl.java

    r561 r563  
    316316            final Layer keyLayer = jPlotLayout.getKeyPane().getLayer( "Key Layer" ); 
    317317            jPlotLayout.add( keyLayer ); 
    318  
    319 //            if( megapoliPlot.isRealDataToDisplay() && null != megapoliPlot.getRealData() ) 
    320 //            { 
    321 //                final List<Double> realRarameterValues = (List<Double>) megapoliPlot.getRealData().getFirstArray(); 
    322 //                final List<Double> realLatitudeValues = (List<Double>) megapoliPlot.getRealData().getSecondArray(); 
    323 //                final List<Double> realLongitudeValues = (List<Double>) megapoliPlot.getRealData().getThirdArray(); 
    324 //                final SimpleGrid simpleGridForRealData = new SimpleGrid( EtherHelper.convertListDoubleToDoubleArray( realRarameterValues ), EtherHelper.convertListDoubleToDoubleArray( realLongitudeValues ), EtherHelper.convertListDoubleToDoubleArray( realLatitudeValues ), "GridForRealData" ); 
    325 //                simpleGridForRealData.setXMetaData( xMeta ); 
    326 //                simpleGridForRealData.setYMetaData( yMeta ); 
    327 //                simpleGridForRealData.setFullGridForRasterContour( false ); 
    328 //                final JPlotLayout realJPlotLayout = new JPlotLayout( true, false, false, "JPlotLayout Pane Real", null, true ); 
    329 //                realJPlotLayout.setEditClasses( false ); 
    330 //                realJPlotLayout.addData( simpleGridForRealData, gridAttribute, "" ); 
    331 //                realJPlotLayout.setTitles( "", "", "" ); 
    332 //                realJPlotLayout.setSize( new Dimension( plotWidth, plotHeight ) ); 
    333 // 
    334 ////                final Layer realKeyLayer = new Layer( "Real Data", new Dimension2D( plotWidth, plotHeight ) ); 
    335 ////                realKeyLayer.addChild( (LayerChild) realJPlotLayout.getKeyPane().getLayer( "Key Layer" ) ); 
    336 //                final Layer realKeyLayer = realJPlotLayout.getKeyPane().getLayer( "Key Layer" ); 
    337 //                realJPlotLayout.add( realKeyLayer ); 
    338 //                jPlotLayout.add( realJPlotLayout ); 
    339 //            } 
    340  
    341318        } 
    342319        catch( LayerNotFoundException e ) 
  • ether_megapoli/trunk/web/resources/css/visu_parameter_by_pf.css

    r556 r563  
    104104} 
    105105 
     106.textExamples2 { 
     107    float:left; 
     108    margin-bottom: 10px; 
     109    margin-right: 50px; 
     110} 
     111 
    106112.textExamplesTD { 
    107113    margin: 10px; 
  • ether_megapoli/trunk/web/src/ApplicationResources.properties

    r557 r563  
    483483visualization.general.example.2D=Exemple de visualisation 2D : 
    484484visualization.general.example.2D.ATR42=Mesures \u00E0 bord de l'ATR-42 
     485visualization.general.example.Simulation=Exemple de simulation : 
     486visualization.general.example.Simulation.Chimere.O3=Mesures d'Ozone obtenues avec le mod\u00E8le CHIMERE 
    485487 
    486488visualization=Visualisation 
  • ether_megapoli/trunk/web/src/ApplicationResources_en.properties

    r557 r563  
    483483visualization.general.example.2D=Example of 2D : 
    484484visualization.general.example.2D.ATR42=Measurements on ATR-42 board 
     485visualization.general.example.Simulation=Example of simulation : 
     486visualization.general.example.Simulation.Chimere.O3=Ozone with CHIMERE model 
    485487 
    486488visualization=Visualization 
  • ether_megapoli/trunk/web/src/com/ether/ControllerSimulationPlot.java

    r561 r563  
    102102 
    103103                final Data realValuesLists = _etherService.getListsByPlateformByParameterByPeriodFor2D( plateformId, parameterId, formatedDateBegin, formatedDateEnd ); 
    104                 megapoliPlot.setRealData( realValuesLists ); 
     104                if( !( (ArrayList) realValuesLists.getFirstArray() ).isEmpty() && !( (ArrayList) realValuesLists.getSecondArray() ).isEmpty() && !( (ArrayList) realValuesLists.getThirdArray() ).isEmpty() ) 
     105                    megapoliPlot.setRealData( realValuesLists ); 
    105106                megapoliPlot.setRealDataNumber( ( (ArrayList) realValuesLists.getFirstArray() ).size() ); 
    106107            } 
  • ether_megapoli/trunk/web/visualization/visu.jsp

    r306 r563  
    8787        <BR/> 
    8888 
    89         <div class="textExamples"><bean:message key="visualization.general.example.2D"/></div> 
     89        <div class="textExamples2"><bean:message key="visualization.general.example.2D"/> 
    9090        <table class="smallRoundTable" border="1"> 
    9191            <tr> 
     
    9999            </tr> 
    100100        </table> 
     101        </div> 
     102 
     103        <div class="textExamples2"><bean:message key="visualization.general.example.Simulation"/> 
     104        <table class="smallRoundTable" border="1"> 
     105            <tr> 
     106                <td> 
     107                    <center> 
     108                        <a href="/megapoli/resources/images/CaptureSimulation.png" rel="lightbox" title="<bean:message key="visualization.general.example.Simulation.Chimere.O3"/>"> 
     109                            <img src="/megapoli/resources/images/CaptureSimulation.png" height="150px" width="150px" class="imageExamples"> 
     110                        </a> 
     111                    </center> 
     112                </td> 
     113            </tr> 
     114        </table> 
     115        </div> 
    101116 
    102117    </tiles:put> 
Note: See TracChangeset for help on using the changeset viewer.