Files
tustu/app/com/efiAnalytics/apps/ts/dashboard/PaintThrottleThread.java
T
git 597a90ec58 Add new components for tuning views and dialog interactions
- Introduced TuningViewWindow for managing tuning view windows.
- Implemented BurnButtonActionListener to handle burn button actions.
- Created BurnButtonDelayThread to manage delay in burn actions.
- Added BurnButtonInitializer for initializing burn button components.
- Developed BurnButtonMouseAdapter to manage mouse interactions on burn buttons.
- Implemented BurnButtonStateListener to manage burn button state changes.
- Created CrossHairActionListener for handling crosshair actions.
- Added CrossHairChannelListener to manage channel value updates.
- Developed CrossHairPopupListener for managing crosshair popup actions.
- Implemented SettingsPanelPopupListener for handling settings panel popups.
- Created SettingsPanelSelectionListener for managing selection changes in settings.
- Added TablePropertiesHandler for managing table properties.
- Introduced CrcCheckActionListener for CRC check actions.
- Implemented TimeSlipApplyListener for applying time slip settings.
- Created TimeSlipCancelListener for canceling time slip actions.
- Developed TimeSlipDialog for managing time slip dialog interactions.
- Added TimeSlipFieldFocusListener to manage focus events on time slip fields.
- Implemented TimeSlipPanel for displaying and managing time slip data.
- Created CylPressureSenderThread for sending cylinder pressure data.
- Developed MultiCylPressureSenderThread for managing multiple cylinder pressure data transmissions.
2026-01-11 07:15:59 +00:00

94 lines
1.9 KiB
Java

package com.efiAnalytics.apps.ts.dashboard;
import bH.D;
import java.awt.Image;
class PaintThrottleThread extends Thread {
long a = 0L;
long b = 50L;
boolean c = false;
boolean d = true;
long e = -1L;
public PaintThrottleThread(x paramx) {
setName("GaugeCluster PaintThrottle");
setDaemon(true);
}
public void a() {
if (!this.f.L() && this.b > 10L)
if (this.b > 150L) {
this.b -= 30L;
} else if (this.b < 16L) {
this.b = 10L;
} else if (this.b < 20L) {
this.b = 15L;
} else if (this.b < 23L) {
this.b = 19L;
} else {
this.b -= 8L;
}
}
public void b() {
if (this.b < 250L)
this.b += 3L;
}
public void c() {
this.c = true;
}
private void d() {
if (!this.f.z() || !this.f.isShowing())
return;
this.f.repaint();
this.c = false;
this.a = System.currentTimeMillis();
}
public void run() {
while (this.d) {
try {
synchronized (this) {
if (x.f(this.f) != null) {
wait(this.b / 2L);
} else {
wait(this.b);
}
}
if (this.d && this.c) {
d();
continue;
}
if (this.e > 0L && this.e < System.currentTimeMillis()) {
D.c("Calling followup Paint");
this.e = -1L;
x.a(this.f, (Image)null);
x.b(this.f, (Image)null);
d();
}
} catch (Exception exception) {
System.out.println("PaintThrottle Thread died");
}
}
}
private void e() {
this.d = false;
}
private void a(long paramLong) {
this.e = paramLong;
}
}
/* Location: /home/rewrich/Downloads/TunerStudioMS/TunerStudioMS/!/com/efiAnalytics/apps/ts/dashboard/X.class
* Java compiler version: 8 (52.0)
* JD-Core Version: 1.1.3
*/