Package fr.dz.swan.balises.graphic

Examples of fr.dz.swan.balises.graphic.Rect


public class Script {
  public static void main(String[] args) {
    ScriptEngineManager mgr = new ScriptEngineManager();
      ScriptEngine engine = mgr.getEngineByName("JavaScript");
      Rect rect = new Rect();
      engine.put("rectangle",rect);
     try {
     
      engine.eval("rectangle.setAttribute('x',32);");
     
      System.out.println(rect.getAttribute("x"));
    } catch (ScriptException e) {
      // TODO Auto-generated catch block
      e.printStackTrace();
    }
  }
View Full Code Here


    long valeur=0;
    for(int j=0;j<nbtest;j++){
      avant = System.currentTimeMillis();
      for(int i=0;i<nbInstance;i++){
        if(rect.equals("rect")){
          Balise b =new Rect();
          b.getName();
        }
      }
      apres = System.currentTimeMillis();
      //System.out.println("creation normal :"+(apres-avant));
      valeur+=(apres-avant);
View Full Code Here

TOP

Related Classes of fr.dz.swan.balises.graphic.Rect

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.