Package com.monkygames.wox.health.data

Examples of com.monkygames.wox.health.data.Weight


    /**
     * A Blocking method that returns the weight.
     * @return the weight that was calculated and null on error.
     **/
    public Weight getWeight(){
  Weight weight = new Weight();
  samplePointer = 0;
  doMeasure = true;
  doTare = false;
  isMeasured = false;
  // need to wait for it to complete
View Full Code Here


    }
    /**
     * Handles measuring.
     **/
    private void measuring(){
  Weight weight = scale.getWeight();
  scaleInterface.measuringComplete(weight);
  /*
  state = State.DONE;
  healthGUI.updateWeight(weight);
  rootPanel.remove(progressBar);
View Full Code Here

    }
    public void updateTimeSeries(TimeSeries series, boolean isKG, boolean isYear, boolean isMonth, boolean isDay, boolean isWeek){
  Vector<Category> categoryV = new Vector<Category>();
  Category category = new Category();
  for(int i = 0; i < weightV.size(); i++){
      Weight w = weightV.elementAt(i);
      Date date = new Date(w.date);

      Item item = new Item(w,date);
      // need to sort into months
      boolean isAdded = false;
View Full Code Here

      return;
  }
  System.out.println("min,hour,day,month,year "+min+","+hour+","+day+","+month+","+year);
  Calendar cal =  Calendar.getInstance();
  cal.set(year,month,day,hour,min);
  Weight weightW = new Weight(weight,cal.getTimeInMillis());
  weightV.add(weightW);
  JOptionPane.showMessageDialog(this,"Weight Added to Queue\nMust select done to commit","Info",JOptionPane.INFORMATION_MESSAGE);
    }
View Full Code Here

TOP

Related Classes of com.monkygames.wox.health.data.Weight

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.