Files
tustu/app/com/efiAnalytics/ui/TruncatedPathLabel.java
johndoe6345789 e17cdf49b3 Add wizard UI components and functionality
- Implement WizardCancelActionListener to handle cancellation actions.
- Create WizardDialog for managing dialog windows with window listener.
- Add WizardDialogCallback for handling dialog callbacks.
- Introduce WizardNextActionListener for handling next actions in the wizard.
- Develop WizardPanel to manage the wizard's layout and navigation.
- Implement WizardRunnable to run wizard actions in a separate thread.
- Define WizardStepCallback interface for step callbacks in the wizard.
- Create YAxisSelectorLayoutRunnable for managing layout updates.
- Add YAxisSelectorPanel for selecting Y-axis options in the UI.
- Remove unused interfaces and classes (cP, cT, co, cx, dx, eR, eU, ev).
2026-01-11 07:05:02 +00:00

53 lines
1.3 KiB
Java

package com.efiAnalytics.ui;
import java.awt.Font;
import java.awt.Graphics;
import java.io.File;
import javax.swing.JLabel;
public class TruncatedPathLabel extends JLabel {
String a = "";
double b = 0.0D;
public cn() {
setFont(new Font("SansSerif", 0, eJ.a(11)));
this.b = (getFontMetrics(getFont()).stringWidth("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ") / 52);
}
public void paint(Graphics paramGraphics) {
String str = this.a;
int i = (int)(getWidth() / this.b);
if (str != null && str.length() > i) {
int j = i - 19;
if (j > 0) {
str = str.substring(0, 10) + " .... " + str.substring(str.length() - j, str.length());
} else if (str.lastIndexOf(File.separator) != -1) {
str = str.substring(str.lastIndexOf(File.separator));
}
}
if (str != null && !getText().equals(str))
super.setText(str);
super.paint(paramGraphics);
}
public void a(String paramString) {
this.a = paramString;
super.setText(this.a);
}
public void setText(String paramString) {
this.a = paramString;
super.setText(this.a);
}
public String a() {
return this.a;
}
}
/* Location: /home/rewrich/Downloads/TunerStudioMS/TunerStudioMS/!/com/efiAnalytics/ui/cn.class
* Java compiler version: 8 (52.0)
* JD-Core Version: 1.1.3
*/