/* (non-Javadoc) * @see de.jwic.samples.sample3.ValueStrategy#getFormated() */ public String getFormated() { NumberFormat nf = NumberFormat.getInstance(); nf.setMaximumFractionDigits(1); nf.setMinimumFractionDigits(1); return nf.format(model.getC()) + " C" + "\u00b0"; }
/* (non-Javadoc) * @see de.jwic.samples.sample3.ValueStrategy#increase() */ public void increase() { model.setC(model.getC() + 1); }
/* (non-Javadoc) * @see de.jwic.samples.sample3.ValueStrategy#decrease() */ public void decrease() { model.setC(model.getC() - 1); }
/* (non-Javadoc) * @see de.jwic.samples.sample3.ValueStrategy#get() */ public double get() { return model.getC(); }