MCPcopy Create free account
hub / github.com/AstroImageJ/astroimagej / showProgress

Method showProgress

ij/src/main/java/ij/macro/Functions.java:3022–3035  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

3020 }
3021
3022 void showProgress() {
3023 ImageJ ij = IJ.getInstance();
3024 ij.gui.ProgressBar progressBar = ij!=null?ij.getProgressBar():null;
3025 interp.getLeftParen();
3026 double arg1 = interp.getExpression();
3027 if (interp.nextToken()==',') {
3028 interp.getComma();
3029 double arg2 = interp.getExpression();
3030 if (progressBar!=null) progressBar.show((arg1+1.0)/arg2, true);
3031 } else
3032 if (progressBar!=null) progressBar.show(arg1, true);
3033 interp.getRightParen();
3034 interp.showingProgress = true;
3035 }
3036
3037 void saveSettings() {
3038 interp.getParens();

Callers 1

doFunctionMethod · 0.95

Calls 8

getInstanceMethod · 0.95
getProgressBarMethod · 0.95
getLeftParenMethod · 0.80
getExpressionMethod · 0.80
getCommaMethod · 0.80
getRightParenMethod · 0.80
nextTokenMethod · 0.45
showMethod · 0.45

Tested by

no test coverage detected