Auto-format spaces to tabs (#2)

This commit is contained in:
mezz committed 2016-10-27 02:49:49 -07:00
1 parent 25be7fd254
commit 5bb4b5d9a5
756 files changed
+49198 -48489

No files matched your search

@@ -7,28 +7,28 @@ import binnie.craftgui.core.geometry.IArea;
import java.text.DecimalFormat;
public abstract class ControlAnalystPage extends Control {
public ControlAnalystPage(final IWidget parent, final IArea area) {
super(parent, area);
this.hide();
}
public ControlAnalystPage(final IWidget parent, final IArea area) {
super(parent, area);
this.hide();
}
@Override
public void onRenderBackground() {
}
@Override
public void onRenderBackground() {
}
public abstract String getTitle();
public abstract String getTitle();
protected String getTimeString(final float time) {
final float seconds = time / 20.0f;
final float minutes = seconds / 60.0f;
final float hours = minutes / 60.0f;
final DecimalFormat df = new DecimalFormat("#.0");
if (hours > 1.0f) {
return df.format(hours) + " hours";
}
if (minutes > 1.0f) {
return df.format(minutes) + " min.";
}
return df.format(seconds) + " sec.";
}
protected String getTimeString(final float time) {
final float seconds = time / 20.0f;
final float minutes = seconds / 60.0f;
final float hours = minutes / 60.0f;
final DecimalFormat df = new DecimalFormat("#.0");
if (hours > 1.0f) {
return df.format(hours) + " hours";
}
if (minutes > 1.0f) {
return df.format(minutes) + " min.";
}
return df.format(seconds) + " sec.";
}
}