mirror of
https://github.com/johndoe6345789/tustu.git
synced 2026-04-25 06:04:59 +00:00
46 lines
977 B
Java
46 lines
977 B
Java
package bt;
|
|
|
|
class LiveGraphPaintThrottle extends Thread {
|
|
long a = 120L;
|
|
|
|
boolean b = false;
|
|
|
|
u(s params) {
|
|
super("LiveGraph PaintThrottle");
|
|
setDaemon(true);
|
|
}
|
|
|
|
public void a() {
|
|
if (!isAlive())
|
|
start();
|
|
this.b = true;
|
|
}
|
|
|
|
public void run() {
|
|
try {
|
|
Thread.currentThread();
|
|
Thread.sleep(2L * this.a);
|
|
} catch (InterruptedException interruptedException) {
|
|
interruptedException.printStackTrace();
|
|
}
|
|
while (this.c.isDisplayable()) {
|
|
try {
|
|
Thread.currentThread();
|
|
Thread.sleep(this.a);
|
|
} catch (InterruptedException interruptedException) {
|
|
interruptedException.printStackTrace();
|
|
}
|
|
if (this.b) {
|
|
this.c.repaint();
|
|
this.b = false;
|
|
}
|
|
}
|
|
this.c.a = null;
|
|
}
|
|
}
|
|
|
|
|
|
/* Location: /home/rewrich/Downloads/TunerStudioMS/TunerStudioMS/!/bt/u.class
|
|
* Java compiler version: 8 (52.0)
|
|
* JD-Core Version: 1.1.3
|
|
*/ |