mirror of
https://github.com/johndoe6345789/tustu.git
synced 2026-04-27 23:25:10 +00:00
- 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).
73 lines
2.0 KiB
Java
73 lines
2.0 KiB
Java
package com.efiAnalytics.ui;
|
|
|
|
import V.a;
|
|
import java.awt.Graphics;
|
|
import java.awt.Graphics2D;
|
|
import java.awt.Image;
|
|
import java.awt.RenderingHints;
|
|
import java.util.logging.Level;
|
|
import java.util.logging.Logger;
|
|
import javax.swing.JPanel;
|
|
import javax.swing.UIManager;
|
|
|
|
public class LoadingOverlayPanel extends JPanel {
|
|
private Image b = null;
|
|
|
|
private String c = "";
|
|
|
|
fK a = null;
|
|
|
|
protected Image a() {
|
|
if (this.b == null)
|
|
try {
|
|
this.b = cO.a().a(cO.v);
|
|
} catch (a a) {
|
|
Logger.getLogger(fJ.class.getName()).log(Level.SEVERE, (String)null, (Throwable)a);
|
|
}
|
|
return this.b;
|
|
}
|
|
|
|
public void paintChildren(Graphics paramGraphics) {
|
|
super.paintChildren(paramGraphics);
|
|
if (this.a != null && this.a.a) {
|
|
Graphics2D graphics2D = (Graphics2D)paramGraphics;
|
|
graphics2D.setRenderingHint(RenderingHints.KEY_TEXT_ANTIALIASING, RenderingHints.VALUE_TEXT_ANTIALIAS_ON);
|
|
graphics2D.setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON);
|
|
Image image = a();
|
|
if (image != null) {
|
|
int j = image.getWidth(null) / 2;
|
|
int k = image.getHeight(null) / 2;
|
|
int m = (getWidth() - j) / 2;
|
|
int n = (getHeight() - k) / 2;
|
|
paramGraphics.drawImage(image, m, n, j, k, null);
|
|
}
|
|
paramGraphics.setFont(UIManager.getFont("Label.font"));
|
|
int i = (getWidth() - getFontMetrics(paramGraphics.getFont()).stringWidth(this.c)) / 2;
|
|
paramGraphics.drawString(this.c, i, getHeight() - paramGraphics.getFont().getSize());
|
|
}
|
|
}
|
|
|
|
public void b() {
|
|
c();
|
|
this.a = new fK(this);
|
|
this.a.start();
|
|
}
|
|
|
|
public void c() {
|
|
if (this.a != null) {
|
|
this.a.a();
|
|
this.a = null;
|
|
}
|
|
repaint();
|
|
}
|
|
|
|
public void a(String paramString) {
|
|
this.c = paramString;
|
|
}
|
|
}
|
|
|
|
|
|
/* Location: /home/rewrich/Downloads/TunerStudioMS/TunerStudioMS/!/com/efiAnalytics/ui/fJ.class
|
|
* Java compiler version: 8 (52.0)
|
|
* JD-Core Version: 1.1.3
|
|
*/ |