![JAR search and dependency download from the Maven repository](/logo.png)
panda.tool.esort.Main Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of panda-tool Show documentation
Show all versions of panda-tool Show documentation
Panda Tool contains some commonly used tools and source code generator for Panda Mvc. Can generate Entity/Query/Dao/Action class, Freemarker (HTML) template file.
package panda.tool.esort;
import panda.tool.progressbar.ConsoleGaugeBar;
import panda.tool.progressbar.ConsolePercentBar;
import panda.tool.progressbar.ConsoleRemainTimeBar;
import panda.tool.progressbar.ConsoleWindmillBar;
/**
* @author fsoft
*/
public class Main {
/**
* @param args arguments
*/
public static void main(String[] args) {
try {
ConsolePercentBar p = new ConsolePercentBar();
p.start();
for (int i = 0; i <= 100; i++) {
Thread.sleep(10);
p.setValue(i);
}
p.stop();
System.out.println();
ConsoleGaugeBar g = new ConsoleGaugeBar();
g.start();
for (int i = 0; i <= 100; i++) {
Thread.sleep(10);
g.setValue(i);
}
g.stop();
System.out.println();
g = new ConsoleGaugeBar();
g.setDrawPercent(true);
g.start();
for (int i = 0; i <= 100; i++) {
Thread.sleep(10);
g.setValue(i);
}
g.stop();
System.out.println();
ConsoleWindmillBar w = new ConsoleWindmillBar();
w.start();
Thread.sleep(3000);
w.stop();
System.out.println();
System.out.print("Remain time: ");
ConsoleRemainTimeBar r = new ConsoleRemainTimeBar();
r.start();
for (int i = 0; i <= 100; i++) {
Thread.sleep(300);
r.setValue(i);
}
r.stop();
System.out.println();
}
catch (Exception e) {
e.printStackTrace();
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy