port to forestry 4.2

This commit is contained in:
marcin212 committed 2016-10-20 02:56:31 +02:00
1 parent dbc5c1a564
commit f969f63b66
3697 files changed
+78372

No files matched your search

@@ -0,0 +1,38 @@
//
// Decompiled by Procyon v0.5.30
//
package binnie.genetics.gui;
import java.text.DecimalFormat;
import binnie.craftgui.core.geometry.IArea;
import binnie.craftgui.core.IWidget;
import binnie.craftgui.controls.core.Control;
public abstract class ControlAnalystPage extends Control
{
public ControlAnalystPage(final IWidget parent, final IArea area) {
super(parent, area);
this.hide();
}
@Override
public void onRenderBackground() {
}
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.";
}
}