Changeset 175
- Timestamp:
- 09/05/11 17:54:45 (13 years ago)
- Location:
- ether_megapoli/trunk
- Files:
-
- 1 added
- 2 edited
- 3 copied
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
ether_megapoli/trunk/applets/Applets.iml
r174 r175 2 2 <module type="JAVA_MODULE" version="4"> 3 3 <component name="NewModuleRootManager" inherit-compiler-output="false"> 4 <output url="file://$MODULE_DIR$/../web/ applets" />4 <output url="file://$MODULE_DIR$/../web/WEB-INF-Applets/classes" /> 5 5 <output-test url="file://$MODULE_DIR$/../out/test/applets" /> 6 6 <exclude-output /> … … 10 10 <orderEntry type="inheritedJdk" /> 11 11 <orderEntry type="sourceFolder" forTests="false" /> 12 <orderEntry type="library" name="lib_ether" level="project" /> 13 <orderEntry type="module" module-name="Service" /> 14 <orderEntry type="module" module-name="Domain" /> 15 <orderEntry type="module" module-name="Common" /> 16 <orderEntry type="module" module-name="Persistence" /> 12 17 </component> 13 18 </module> -
ether_megapoli/trunk/applets/src/PIFAppletTimeSerie.java
r174 r175 1 import com.ether.EtherPlotService; 2 import com.ether.EtherService; 3 import com.ether.ServiceException; 4 import com.medias.database.objects.Parametre; 1 5 import gov.noaa.pmel.sgt.Axis; 2 6 import gov.noaa.pmel.sgt.CartesianGraph; … … 23 27 import gov.noaa.pmel.util.SoTRange; 24 28 import gov.noaa.pmel.util.TimeRange; 29 import org.apache.commons.logging.Log; 30 import org.apache.commons.logging.LogFactory; 31 import org.springframework.context.support.ClassPathXmlApplicationContext; 25 32 26 33 import javax.swing.*; 27 34 import javax.swing.border.EtchedBorder; 28 35 import java.awt.*; 36 import java.util.Calendar; 29 37 import java.util.Enumeration; 30 38 31 public class AppletTimeSerie 39 /** 40 * Example demonstrating how to use <code>setLayout()</code> with 41 * <code>JPane</code> to change how <code>Layer</code>s are placed on 42 * a <code>JPane</code>. <code>JLayoutDemo</code> constructs the 43 * plots from basic <code>sgt</code> objects. 44 * 45 * @author Donald Denbo 46 * @version $Revision: 1.6 $, $Date: 2001/02/06 00:14:35 $ 47 * @since 2.0 48 */ 49 public class PIFAppletTimeSerie 32 50 extends JApplet 33 51 { … … 37 55 JFrame frame = null; 38 56 39 JPanel controlPanel = new JPanel();40 JCheckBox stacked = new JCheckBox();41 ButtonGroup gridtype = new ButtonGroup();42 JCheckBox grid = new JCheckBox();43 JButton showTree = new JButton();44 45 57 public void init() 46 58 { 47 /*48 * Create a JLayoutDemo within a JApplet49 */50 59 setLayout( new BorderLayout( 0, 0 ) ); 51 60 setBackground( Color.white ); … … 57 66 makeGraph(); 58 67 add( mainPane_, BorderLayout.CENTER ); 68 69 // Context 70 // final String appletContext = "applet-context.xml"; 71 // final String hibernateContext = "hibernate.cfg.xml"; 72 // final String[] contextPaths = new String[]{appletContext, hibernateContext}; 73 // 74 // final ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext( contextPaths ); 75 // _etherService = (EtherService) context.getBean( "etherService", EtherService.class ); 76 // _etherPlotService = (EtherPlotService) context.getBean( "etherPlotService", EtherPlotService.class ); 77 } 78 79 public void start() 80 { 81 // // Parameters 82 // final Integer plateformId = Integer.valueOf( getParameter( "plateformId" ) ); 83 // final Integer parameterId = Integer.valueOf( getParameter( "parameterId" ) ); 84 // final String title = getParameter( "title" ); 85 // final String axeType = getParameter( "axeType" ); 86 // 87 // // Dates 88 // final String dateBegin = getParameter( "dateBegin" ); 89 // final String dateEnd = getParameter( "dateEnd" ); 90 // final Calendar calendar = Calendar.getInstance(); 91 92 93 /* 94 * Create a JLayoutDemo within a JApplet 95 */ 96 // try 97 // { 98 // final Parametre parametre = _etherService.getParameterById( 90 ); 99 // final String paf = "pif"; 100 // } 101 // catch( ServiceException e ) 102 // { 103 // e.printStackTrace(); //To change body of catch statement use File | Settings | File Templates. 104 // } 105 // setLayout( new BorderLayout( 0, 0 ) ); 106 // setBackground( Color.white ); 107 // setSize( 426, 712 ); 108 // 109 // makeControlPanel(); 110 // add( controlPanel, BorderLayout.SOUTH ); 111 // 112 // makeGraph(); 113 // add( mainPane_, BorderLayout.CENTER ); 59 114 } 60 115 … … 334 389 new SGLabel( "2nd line", "Blue Data", 335 390 new Point2D.Double( 0.0, 0.0 ) ) ); 391 392 } 393 394 JPanel controlPanel = new JPanel(); 395 JCheckBox stacked = new JCheckBox(); 396 ButtonGroup gridtype = new ButtonGroup(); 397 JCheckBox grid = new JCheckBox(); 398 JButton showTree = new JButton(); 399 400 class SymItem 401 implements java.awt.event.ItemListener 402 { 403 public void itemStateChanged( java.awt.event.ItemEvent event ) 404 { 405 Object object = event.getSource(); 406 if( object == stacked ) 407 stacked_itemStateChanged( event ); 408 else if( object == grid ) 409 grid_itemStateChanged( event ); 410 } 336 411 } 337 412 … … 445 520 } 446 521 447 void showTree_ActionPerformed( java.awt.event.ActionEvent event )448 {449 /*450 * Create the ClassTree dialog to display the classes used451 * in the mainPane_ and allow editing.452 */453 if( tree_ == null )454 {455 tree_ = new JClassTree( "Classes for LayoutDemo" );456 }457 tree_.setJPane( mainPane_ );458 tree_.show();459 }460 461 class SymItem462 implements java.awt.event.ItemListener463 {464 public void itemStateChanged( java.awt.event.ItemEvent event )465 {466 Object object = event.getSource();467 if( object == stacked )468 stacked_itemStateChanged( event );469 else if( object == grid )470 grid_itemStateChanged( event );471 }472 }473 474 522 class SymAction 475 523 implements java.awt.event.ActionListener … … 483 531 } 484 532 533 void showTree_ActionPerformed( java.awt.event.ActionEvent event ) 534 { 535 /* 536 * Create the ClassTree dialog to display the classes used 537 * in the mainPane_ and allow editing. 538 */ 539 if( tree_ == null ) 540 { 541 tree_ = new JClassTree( "Classes for LayoutDemo" ); 542 } 543 tree_.setJPane( mainPane_ ); 544 tree_.show(); 545 } 546 547 // private static final Log LOGGER = LogFactory.getLog( PIFAppletTimeSerie.class ); 548 // 549 // private EtherService _etherService; 550 // private EtherPlotService _etherPlotService; 485 551 } -
ether_megapoli/trunk/applets/src/hibernate-domain.cfg.xml
r174 r175 5 5 6 6 <hibernate-configuration> 7 7 <session-factory> 8 8 9 9 <!--<mapping resource="com/medias/objects/Adresse.hbm.xml"/>--> … … 34 34 <!--<mapping resource="com/medias/objects/Zone.hbm.xml"/>--> 35 35 36 36 </session-factory> 37 37 </hibernate-configuration> -
ether_megapoli/trunk/web/src/ApplicationResources.properties
r173 r175 448 448 data.visualization.EndDate=Date de fin : 449 449 data.visualization.Unvalid_Period=P\u00E9riode non valide ! 450 data.visualization.titleChoice=Tit le450 data.visualization.titleChoice=Titre 451 451 data.visualization.type=Type de trac\u00E9 452 452 data.visualization.graph=Quicklook final : -
ether_megapoli/trunk/web/visualization/visu_parameter_by_pf-script.jsp
r174 r175 303 303 // this.plotWindow.getContent().innerHTML = '<img src=' + url + ' />'; 304 304 305 this.plotWindow.getContent().innerHTML = '<applet code="AppletEE.class" codebase="<%=request.getContextPath()%>/applets" height="400px" width="400px"></applet>'; 305 this.plotWindow.getContent().innerHTML = '<applet code="AppletTimeSerie.class" codebase="<%=request.getContextPath()%>/applets" height="400px" width="400px"> ' + 306 '<param name="plateformId" value="14"> ' + 307 '<param name="parameterId" value="90"> ' + 308 '<param name="dateBegin" value=""> ' + 309 '<param name="dateEnd" value=""> ' + 310 '<param name="title" value="zzzz"> ' + 311 '<param name="axeType" value="MOBILE"> ' + 312 '</applet>'; 306 313 this.plotWindow.setSize( <%=EtherPlotServiceImpl.getMaxWidth()%>, <%=EtherPlotServiceImpl.getMaxHeight()%> ); 307 314 this.plotWindow.show();
Note: See TracChangeset
for help on using the changeset viewer.