Package com.daehonges.soilsieve.lib

Examples of com.daehonges.soilsieve.lib.SieveResult


    openDialog.setFilterExtensions(filter);
    String filename = openDialog.open();
   
    try {
      XMLDecoder decoder = new XMLDecoder(new FileInputStream(filename));
      SieveResult sr = (SieveResult)decoder.readObject();
      SieveData sd = new SieveData(sr.getTotal());
      sd.setSieveResult(sr);
      View view = (View) HandlerUtil.getActivePart(event);
      view.setSieveData(sd);
      decoder.close();
    } catch (FileNotFoundException e) {
View Full Code Here


    if(printerData != null ) {
      Printer printer = new Printer(printerData);
      if(printer.startJob("Text")) {
        GC gc = new GC(printer);
        View view = (View) HandlerUtil.getActivePart(event);
        SieveResult sr = view.getSieveData().getSeiveResult();
        SingleSieve[] s = sr.getSieves();
       
        if(printer.startPage()) {
          gc.drawString("Total mass  = " + Double.toString(sr.getTotal()) + " gr", 100, 100 );
         
          gc.drawLine(85, 135, 600, 135);
          gc.drawLine(85, 185, 600, 185);
          gc.drawLine(85, s.length * 50 + 185, 600, s.length * 50 + 185);
         
View Full Code Here

TOP

Related Classes of com.daehonges.soilsieve.lib.SieveResult

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.