Files
tustu/app/com/efiAnalytics/tuningwidgets/panels/TableAxisDisplayPanel.java
johndoe6345789 dae4c29c01 Add new panels and UI components for thermistor calibration and weight input
- Implemented RestorePointsExclusionFilter for file filtering.
- Created SensorComboBoxItemListener to handle sensor selection events.
- Developed TableAxisDisplayPanel for displaying axis data in a table format.
- Added TemperatureUnitActionListener to manage temperature unit changes.
- Introduced ThermistorCalibrationPanel for thermistor calibration functionality.
- Created WeightFieldFocusAdapter to manage focus events in weight input fields.
- Added WeightInputPanel for inputting weight in both pounds and kilograms.
- Removed obsolete aK panel class.
- Introduced DisabledButton class to create non-interactive buttons.
- Added FormattedTableCellRenderer for custom table cell rendering.
- Implemented NoSelectionModel to prevent selection in specific tables.
- Created NonEditableTable to disable editing in tables.
- Added StringTransferable for handling string data transfer.
- Implemented TableCenterCellEditor for centered text in table cells.
- Developed TableTransferHandler for managing data transfer in tables.
2026-01-11 06:19:41 +00:00

122 lines
3.1 KiB
Java

package com.efiAnalytics.tuningwidgets.panels;
import G.R;
import G.aM;
import G.be;
import G.cq;
import G.cu;
import V.a;
import bH.D;
import com.efiAnalytics.ui.bc;
import com.efiAnalytics.ui.eJ;
import com.efiAnalytics.ui.fF;
import com.efiAnalytics.ui.fh;
import com.efiAnalytics.ui.s;
import com.efiAnalytics.ui.w;
import java.awt.BorderLayout;
import java.awt.Component;
import javax.swing.BorderFactory;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.event.TableModelEvent;
import javax.swing.event.TableModelListener;
public class TableAxisDisplayPanel extends JPanel implements cq, bc, TableModelListener {
R a = null;
aM b = null;
aM c = null;
fF d = null;
double e = Double.NaN;
w f = null;
JLabel g = null;
String h = null;
String i = null;
s j = null;
public aP(R paramR, s params, String paramString) {
this.a = paramR;
this.j = params;
setLayout(new BorderLayout());
this.f = new w();
this.f.setName(params.z());
be be = null;
if (paramR != null && paramString != null && !paramString.equals("")) {
be = (be)paramR.e().c(paramString);
this.b = paramR.c(be.b());
this.c = paramR.c(be.a());
this.h = be.f();
this.i = be.d();
}
params.addTableModelListener(this);
int i = fh.a(params);
this.f.h().a(i);
if (this.b != null)
this.f.b(this.b.v());
this.f.a(params);
int j = eJ.a();
this.f.c(j);
this.f.a(false);
setBorder(BorderFactory.createTitledBorder(""));
add("Center", (Component)this.f);
this.g = new JLabel();
this.g.setHorizontalAlignment(0);
add("South", this.g);
this.d = new fF();
JPanel jPanel = new JPanel();
jPanel.setLayout(new BorderLayout());
jPanel.add("Center", (Component)this.d);
add("West", jPanel);
if (params.w() != null)
this.g.setText(this.i);
if (params.v() != null) {
String str;
if (this.b != null) {
str = this.h;
if (this.b.p() != null && !this.b.p().equals(""))
str = str + " " + this.b.p();
} else if (params.v() != null) {
str = params.v();
} else {
str = "";
}
this.d.setText(str);
}
if (paramR != null)
try {
cu.a().a(paramR.c(), be.f(), this);
cu.a().a(paramR.c(), be.d(), this);
} catch (a a) {
D.a("Unable to subscribe x or y axis for hightlights.", (Exception)a, this);
}
}
public void tableChanged(TableModelEvent paramTableModelEvent) {}
public void close() {
this.j.removeTableModelListener(this);
cu.a().a(this);
}
public void setCurrentOutputChannelValue(String paramString, double paramDouble) {
if (paramString.equals(this.h)) {
this.e = paramDouble;
} else if (paramString.equals(this.i) && this.e != Double.NaN) {
this.f.h().a(this.e + "", paramDouble + "");
}
}
}
/* Location: /home/rewrich/Downloads/TunerStudioMS/TunerStudioMS/!/com/efiAnalytics/tuningwidgets/panels/aP.class
* Java compiler version: 8 (52.0)
* JD-Core Version: 1.1.3
*/