mirror of
https://github.com/johndoe6345789/tustu.git
synced 2026-04-25 14:15:20 +00:00
52 lines
1.4 KiB
Java
52 lines
1.4 KiB
Java
package br;
|
|
|
|
import java.awt.Color;
|
|
import java.awt.Dimension;
|
|
import java.awt.Graphics;
|
|
import javax.swing.BorderFactory;
|
|
import javax.swing.JLabel;
|
|
import s.SComponentGolf;
|
|
|
|
class JLabelExtensionPaint extends JLabel {
|
|
boolean a = false;
|
|
|
|
ab b = null;
|
|
|
|
public JLabelExtensionPaint(P paramP, String paramString, int paramInt) {
|
|
super(paramString, paramInt);
|
|
setPreferredSize(new Dimension(110, 26));
|
|
setMinimumSize(new Dimension(110, 26));
|
|
setMaximumSize(new Dimension(110, 26));
|
|
setBorder(BorderFactory.createEtchedBorder(0));
|
|
}
|
|
|
|
public String a() {
|
|
return !this.c.a.C().q() ? SComponentGolf.b("Offline") : (!P.c(this.c) ? SComponentGolf.b("Idle") : (!P.d(this.c) ? SComponentGolf.b("Tables Inactive") : SComponentGolf.b("Correcting Tables")));
|
|
}
|
|
|
|
public void paint(Graphics paramGraphics) {
|
|
if (this.a) {
|
|
byte b = 14;
|
|
int i = getWidth() - b - 5;
|
|
int j = (getHeight() - b) / 2;
|
|
paramGraphics.setColor(Color.red);
|
|
paramGraphics.fill3DRect(0, 0, getWidth(), getHeight(), true);
|
|
}
|
|
super.paint(paramGraphics);
|
|
}
|
|
|
|
public void a(boolean paramBoolean) {
|
|
if (this.b != null)
|
|
this.b.a();
|
|
if (paramBoolean) {
|
|
this.b = new ab(this);
|
|
this.b.start();
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
/* Location: /home/rewrich/Downloads/TunerStudioMS/TunerStudioMS/!/br/aa.class
|
|
* Java compiler version: 8 (52.0)
|
|
* JD-Core Version: 1.1.3
|
|
*/ |