1 package org.catacomb.interlish.report; 2 3 4 import org.catacomb.interlish.structure.ProgressReport; 5 import org.catacomb.report.E; 6 7 8 9 10 public class PrintProgressReport implements ProgressReport { 11 12 double fmin = 0.; 13 double fmax = 1.; 14 15 16 17 public void setStarted() { 18 E.info("ppp finished"); 19 } 20 21 22 public void setFocus(double min, double max) { 23 fmin = min; 24 fmax = max; 25 } 26 27 public void setFraction(double f) { 28 E.info("ppp percentage " + (fmin + f * (fmax - fmin)) * 100.); 29 } 30 31 32 public void setIndeterminate(boolean b) { 33 34 } 35 36 public void setText(String txt) { 37 38 } 39 40 41 public double getFraction() { 42 return 0.; 43 } 44 45 public String getText() { 46 return ""; 47 } 48 49 50 public void update() { 51 52 } 53 54 public void setFinished() { 55 E.info("ppp finished"); 56 } 57 58 59 }