mirror of
https://github.com/johndoe6345789/tustu.git
synced 2026-04-24 13:45:00 +00:00
Add new listener classes for border width, font size, and sweep angle adjustments; implement data history buffer and document loading functionality
This commit is contained in:
@@ -4,8 +4,8 @@ import javax.swing.JSlider;
|
||||
import javax.swing.event.ChangeEvent;
|
||||
import javax.swing.event.ChangeListener;
|
||||
|
||||
class aB implements ChangeListener {
|
||||
aB(ad paramad) {}
|
||||
class BorderWidthSliderChangeListener implements ChangeListener {
|
||||
BorderWidthSliderChangeListener(ad paramad) {}
|
||||
|
||||
public void stateChanged(ChangeEvent paramChangeEvent) {
|
||||
int i = ((JSlider)paramChangeEvent.getSource()).getValue();
|
||||
@@ -3,7 +3,7 @@ package com.efiAnalytics.apps.ts.dashboard;
|
||||
import java.io.Serializable;
|
||||
import java.util.ArrayList;
|
||||
|
||||
public class aH extends ArrayList implements Serializable {
|
||||
public class DataHistoryBuffer extends ArrayList implements Serializable {
|
||||
private int a = 200;
|
||||
|
||||
public void a(double paramDouble) {
|
||||
@@ -3,10 +3,10 @@ package com.efiAnalytics.apps.ts.dashboard;
|
||||
import V.a;
|
||||
import com.efiAnalytics.ui.bV;
|
||||
|
||||
class aJ extends Thread {
|
||||
class DocumentLoaderThread extends Thread {
|
||||
String a;
|
||||
|
||||
aJ(HtmlDisplay paramHtmlDisplay, String paramString) {
|
||||
DocumentLoaderThread(HtmlDisplay paramHtmlDisplay, String paramString) {
|
||||
super("DocLoader");
|
||||
this.a = paramString;
|
||||
setDaemon(true);
|
||||
@@ -2,7 +2,7 @@ package com.efiAnalytics.apps.ts.dashboard;
|
||||
|
||||
import java.io.File;
|
||||
|
||||
public interface aK {
|
||||
public interface FileLoadCallback {
|
||||
void a(File paramFile);
|
||||
}
|
||||
|
||||
@@ -4,8 +4,8 @@ import java.awt.event.ActionEvent;
|
||||
import java.awt.event.ActionListener;
|
||||
import javax.swing.JComboBox;
|
||||
|
||||
class aD implements ActionListener {
|
||||
aD(ad paramad) {}
|
||||
class FontFamilyComboActionListener implements ActionListener {
|
||||
FontFamilyComboActionListener(ad paramad) {}
|
||||
|
||||
public void actionPerformed(ActionEvent paramActionEvent) {
|
||||
JComboBox jComboBox = (JComboBox)paramActionEvent.getSource();
|
||||
@@ -4,8 +4,8 @@ import javax.swing.JSlider;
|
||||
import javax.swing.event.ChangeEvent;
|
||||
import javax.swing.event.ChangeListener;
|
||||
|
||||
class aC implements ChangeListener {
|
||||
aC(ad paramad) {}
|
||||
class FontSizeSliderChangeListener implements ChangeListener {
|
||||
FontSizeSliderChangeListener(ad paramad) {}
|
||||
|
||||
public void stateChanged(ChangeEvent paramChangeEvent) {
|
||||
int i = ((JSlider)paramChangeEvent.getSource()).getValue();
|
||||
@@ -2,10 +2,10 @@ package com.efiAnalytics.apps.ts.dashboard;
|
||||
|
||||
import com.efiAnalytics.apps.ts.dashboard.renderers.GaugePainter;
|
||||
|
||||
class aE {
|
||||
class GaugePainterWrapper {
|
||||
GaugePainter a = null;
|
||||
|
||||
public aE(ad paramad, GaugePainter paramGaugePainter) {
|
||||
public GaugePainterWrapper(ad paramad, GaugePainter paramGaugePainter) {
|
||||
this.a = paramGaugePainter;
|
||||
}
|
||||
|
||||
@@ -18,8 +18,8 @@ class aE {
|
||||
}
|
||||
|
||||
public boolean equals(Object paramObject) {
|
||||
if (paramObject instanceof aE) {
|
||||
GaugePainter gaugePainter = ((aE)paramObject).a();
|
||||
if (paramObject instanceof GaugePainterWrapper) {
|
||||
GaugePainter gaugePainter = ((GaugePainterWrapper)paramObject).a();
|
||||
return gaugePainter.getName().equals(this.a.getName());
|
||||
}
|
||||
return false;
|
||||
@@ -1,6 +1,6 @@
|
||||
package com.efiAnalytics.apps.ts.dashboard;
|
||||
|
||||
public interface aG {
|
||||
public interface GaugeUpdateCallback {
|
||||
void a(int paramInt, String paramString, boolean paramBoolean);
|
||||
|
||||
void a();
|
||||
@@ -8,7 +8,7 @@ import java.util.Properties;
|
||||
import javax.swing.event.HyperlinkEvent;
|
||||
import javax.swing.event.HyperlinkListener;
|
||||
|
||||
class aI implements HyperlinkListener {
|
||||
class HtmlDisplayHyperlinkListener implements HyperlinkListener {
|
||||
long a = 0L;
|
||||
|
||||
int b = 2000;
|
||||
@@ -5,13 +5,13 @@ import V.a;
|
||||
import java.util.logging.Level;
|
||||
import java.util.logging.Logger;
|
||||
|
||||
class aO implements Runnable {
|
||||
aO(aN paramaN) {}
|
||||
class IndicatorChannelSetupRunnable implements Runnable {
|
||||
IndicatorChannelSetupRunnable(IndicatorConfigurationProvider paramaN) {}
|
||||
|
||||
public void run() {
|
||||
if (Indicator.access$200(this.a.b).b() != null && (Indicator.access$200(this.a.b).b()).length > 0) {
|
||||
this.a.b.g = new aL(this.a.b);
|
||||
this.a.b.h = new aP(this.a.b);
|
||||
this.a.b.g = new IndicatorOutputChannelListener(this.a.b);
|
||||
this.a.b.h = new IndicatorStringUpdateListener(this.a.b);
|
||||
try {
|
||||
i.a(this.a.b.e, Indicator.access$200(this.a.b), this.a.b.g, this.a.b.h);
|
||||
} catch (a a) {
|
||||
@@ -19,8 +19,8 @@ class aO implements Runnable {
|
||||
}
|
||||
}
|
||||
if (Indicator.access$300(this.a.b).b() != null && (Indicator.access$300(this.a.b).b()).length > 0) {
|
||||
this.a.b.g = (this.a.b.g != null) ? this.a.b.g : new aL(this.a.b);
|
||||
this.a.b.h = (this.a.b.h != null) ? this.a.b.h : new aP(this.a.b);
|
||||
this.a.b.g = (this.a.b.g != null) ? this.a.b.g : new IndicatorOutputChannelListener(this.a.b);
|
||||
this.a.b.h = (this.a.b.h != null) ? this.a.b.h : new IndicatorStringUpdateListener(this.a.b);
|
||||
try {
|
||||
i.a(this.a.b.e, Indicator.access$300(this.a.b), this.a.b.g, this.a.b.h);
|
||||
} catch (a a) {
|
||||
@@ -5,18 +5,18 @@ import G.cZ;
|
||||
import java.io.Serializable;
|
||||
import javax.swing.SwingUtilities;
|
||||
|
||||
class aN implements cZ, Serializable {
|
||||
class IndicatorConfigurationProvider implements cZ, Serializable {
|
||||
boolean a = false;
|
||||
|
||||
aN(Indicator paramIndicator) {}
|
||||
IndicatorConfigurationProvider(Indicator paramIndicator) {}
|
||||
|
||||
public String a() {
|
||||
String str = this.b.getEcuConfigurationName();
|
||||
if ((str == null || str.isEmpty()) && T.a().c() != null)
|
||||
str = T.a().c().c();
|
||||
if (!this.a && T.a().c(this.b.e) != null) {
|
||||
aO aO = new aO(this);
|
||||
SwingUtilities.invokeLater(aO);
|
||||
IndicatorChannelSetupRunnable indicatorChannelSetupRunnable = new IndicatorChannelSetupRunnable(this);
|
||||
SwingUtilities.invokeLater(indicatorChannelSetupRunnable);
|
||||
this.a = true;
|
||||
}
|
||||
return str;
|
||||
@@ -2,10 +2,10 @@ package com.efiAnalytics.apps.ts.dashboard;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
class aM extends Thread implements Serializable {
|
||||
class IndicatorDemoThread extends Thread implements Serializable {
|
||||
boolean a = false;
|
||||
|
||||
public aM(Indicator paramIndicator, boolean paramBoolean) {
|
||||
public IndicatorDemoThread(Indicator paramIndicator, boolean paramBoolean) {
|
||||
super("Indicator Demo");
|
||||
this.a = paramBoolean;
|
||||
setDaemon(true);
|
||||
@@ -2,10 +2,10 @@ package com.efiAnalytics.apps.ts.dashboard;
|
||||
|
||||
import G.cq;
|
||||
|
||||
class aL implements cq {
|
||||
class IndicatorOutputChannelListener implements cq {
|
||||
double a = -1.0D;
|
||||
|
||||
aL(Indicator paramIndicator) {}
|
||||
IndicatorOutputChannelListener(Indicator paramIndicator) {}
|
||||
|
||||
public void setCurrentOutputChannelValue(String paramString, double paramDouble) {
|
||||
if (paramDouble != this.a) {
|
||||
@@ -3,8 +3,8 @@ package com.efiAnalytics.apps.ts.dashboard;
|
||||
import G.aN;
|
||||
import java.io.Serializable;
|
||||
|
||||
class aP implements aN, Serializable {
|
||||
aP(Indicator paramIndicator) {}
|
||||
class IndicatorStringUpdateListener implements aN, Serializable {
|
||||
IndicatorStringUpdateListener(Indicator paramIndicator) {}
|
||||
|
||||
public void a(String paramString1, String paramString2) {
|
||||
this.a.invalidatePainter();
|
||||
@@ -1,6 +1,6 @@
|
||||
package com.efiAnalytics.apps.ts.dashboard;
|
||||
|
||||
public interface aQ {
|
||||
public interface RefreshCallback {
|
||||
void a();
|
||||
}
|
||||
|
||||
@@ -4,8 +4,8 @@ import javax.swing.JSlider;
|
||||
import javax.swing.event.ChangeEvent;
|
||||
import javax.swing.event.ChangeListener;
|
||||
|
||||
class aA implements ChangeListener {
|
||||
aA(ad paramad) {}
|
||||
class SweepAngleSliderChangeListener implements ChangeListener {
|
||||
SweepAngleSliderChangeListener(ad paramad) {}
|
||||
|
||||
public void stateChanged(ChangeEvent paramChangeEvent) {
|
||||
int i = ((JSlider)paramChangeEvent.getSource()).getValue();
|
||||
@@ -4,8 +4,8 @@ import java.awt.event.FocusEvent;
|
||||
import java.awt.event.FocusListener;
|
||||
import javax.swing.JTextField;
|
||||
|
||||
class aF implements FocusListener {
|
||||
aF(ad paramad) {}
|
||||
class TextFieldSelectAllFocusListener implements FocusListener {
|
||||
TextFieldSelectAllFocusListener(ad paramad) {}
|
||||
|
||||
public void focusLost(FocusEvent paramFocusEvent) {}
|
||||
|
||||
Reference in New Issue
Block a user