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 */