Files
tustu/app/com/efiAnalytics/ui/HeatMapDataAdapter.java
johndoe6345789 8c52f7d2ab Add new classes and interfaces for settings management and calibration
- Introduced interfaces for logging preferences (LogPreferences.java), output channel definitions (OutputChannelDefinition.java), and progress listeners (ProgressListener.java).
- Implemented OutputChannelImpl.java to handle output channel logic and data processing.
- Created classes for recoverable exceptions (RecoverableException.java) and setting definitions (SettingDefinition.java).
- Developed SettingsGroupManager.java for managing settings groups and parsing related files.
- Added SettingsParser.java to handle configuration file parsing and filtering.
- Implemented SignatureExtractor.java for extracting signatures from files.
- Created StringCallback.java and StringPairProvider.java interfaces for callback mechanisms.
- Developed ThrottleCalibrationGenerator.java for generating throttle calibration files.
- Introduced TranslationEntry.java for handling translation entries and formatting.
- Added ValueFormatter.java interface for formatting float values.
2026-01-11 07:30:03 +00:00

89 lines
2.2 KiB
Java

package com.efiAnalytics.ui;
import bH.D;
import java.util.ArrayList;
import java.util.Iterator;
import javax.swing.event.TableModelEvent;
import javax.swing.event.TableModelListener;
public class HeatMapDataAdapter implements cD, TableModelListener {
private TableDataModel b = null;
private int c = 1;
ArrayList a = new ArrayList();
public v(s params) {
this.b = params;
params.addTableModelListener(this);
}
public int a() {
return this.b.getColumnCount();
}
public double a(int paramInt) {
return Double.parseDouble(this.b.b()[paramInt]);
}
public int b() {
return this.b.getRowCount();
}
public double b(int paramInt) {
return Double.parseDouble(this.b.a()[paramInt]);
}
public double a(int paramInt1, int paramInt2) {
if (this.c == 1)
return this.b.d(paramInt2, paramInt1).doubleValue();
if (this.c == 2) {
if (this.b.D() != null) {
b b = this.b.D()[(this.b.D()).length - 1 - paramInt2][paramInt1];
return b.k();
}
return 0.0D;
}
if (this.c == 4) {
if (this.b.D() != null) {
b b = this.b.D()[paramInt2][paramInt1];
return b.j();
}
return 0.0D;
}
if (this.c == 3)
return (this.b.D() != null) ? (this.b.d(paramInt2, paramInt1).doubleValue() - this.b.c(paramInt2, paramInt1).doubleValue()) : 0.0D;
D.a("HeatMap: Unknown Z Value Mode");
return 0.0D;
}
public void c(int paramInt) {
this.c = paramInt;
}
public void a(cE paramcE) {
this.a.add(paramcE);
}
private void b(int paramInt1, int paramInt2) {
Iterator<cE> iterator = this.a.iterator();
while (iterator.hasNext())
((cE)iterator.next()).a(paramInt1, paramInt2);
}
public void tableChanged(TableModelEvent paramTableModelEvent) {
b(paramTableModelEvent.getColumn(), paramTableModelEvent.getFirstRow());
}
public void a(s params) {
this.b.removeTableModelListener(this);
this.b = params;
params.addTableModelListener(this);
}
}
/* Location: /home/rewrich/Downloads/TunerStudioMS/TunerStudioMS/!/com/efiAnalytics/ui/v.class
* Java compiler version: 8 (52.0)
* JD-Core Version: 1.1.3
*/