Package com.daehonges.soilsieve.lib

Examples of com.daehonges.soilsieve.lib.Sieve


   
    renderChart(compositeChart);
  }

  protected void buttonAddWidgetSelected(SelectionEvent e) {
    Sieve s = Sieve.getSieve(comboSieve.getText());
    double reminded = Double.parseDouble(textReminded.getText());
    sd.add(s, reminded);

    tableViewer.refresh();
View Full Code Here


      }

      @Override
      public String getColumnText(Object element, int columnIndex) {
        Sieve s = (Sieve) element;
        switch (columnIndex) {
        case 0:
          return s.getNo();
        case 1:
          return Double.toString(s.getSize());
        case 2:
          return Double.toString(s.getReminded());
        case 3:
          return Double.toString(s.getPercentReminded());
        case 4:
          return Double.toString(s.getPercentFiner());
        }
        return "--";
      }

      @Override
View Full Code Here

    double[] xSeries = new double[sd.getSieves().size()];
    double[] ySeries = new double[sd.getSieves().size()];
    Vector<Sieve> s = sd.getSieves();
   
    for(int i = 0; i < s.size(); i++) {
      Sieve sieve = s.elementAt(i);
      xSeries[i] = sieve.getSize();
      ySeries[i] = sieve.getPercentFiner();
    }
   
    ISeriesSet seriesSet = chart.getSeriesSet();
   
    ISeries series = seriesSet.createSeries(SeriesType.LINE, "Particle Size Curve");
View Full Code Here

TOP

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

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.