mirror of
https://github.com/johndoe6345789/tustu.git
synced 2026-04-30 08:35:15 +00:00
stuff
This commit is contained in:
170
app/bt/LiveGraphPanel.java
Normal file
170
app/bt/LiveGraphPanel.java
Normal file
@@ -0,0 +1,170 @@
|
||||
package bt;
|
||||
|
||||
import G.R;
|
||||
import G.T;
|
||||
import G.SerializableImpl;
|
||||
import G.GInterfaceAh;
|
||||
import G.GInterfaceBr;
|
||||
import G.GComponentBs;
|
||||
import G.GComponentCq;
|
||||
import G.ManagerUsingArrayList;
|
||||
import V.ExceptionInVPackage;
|
||||
import V.ExceptionPrintstacktrace;
|
||||
import bH.D;
|
||||
import com.efiAnalytics.ui.bc;
|
||||
import com.efiAnalytics.ui.dl;
|
||||
import java.awt.Color;
|
||||
import java.awt.Dimension;
|
||||
import java.util.HashMap;
|
||||
import java.util.Iterator;
|
||||
import java.util.logging.Level;
|
||||
import java.util.logging.Logger;
|
||||
|
||||
public class LiveGraphPanel extends dl implements GComponentCq, bc {
|
||||
private HashMap c = new HashMap<>();
|
||||
|
||||
u ExceptionInVPackage = null;
|
||||
|
||||
private boolean d = false;
|
||||
|
||||
public s() {
|
||||
this.ExceptionInVPackage = new u(this);
|
||||
addMouseListener(new v(this));
|
||||
}
|
||||
|
||||
public s(R paramR, GInterfaceBr parambr) {
|
||||
if (parambr != null && parambr.b() > 0) {
|
||||
GComponentBs[] arrayOfBs = parambr.ExceptionInVPackage();
|
||||
for (byte b = 0; b < arrayOfBs.length; b++) {
|
||||
try {
|
||||
ExceptionInVPackage(paramR.c(), arrayOfBs[b].ExceptionInVPackage(), arrayOfBs[b].e(), (arrayOfBs[b].d() == null) ? null : new Color(arrayOfBs[b].d().ExceptionInVPackage()), arrayOfBs[b].b(), arrayOfBs[b].c(), arrayOfBs[b].f(), arrayOfBs[b].ExceptionPrintstacktrace());
|
||||
} catch (ExceptionInVPackage ExceptionInVPackage) {
|
||||
D.ExceptionInVPackage("Can not add line to Graph.", (Exception)ExceptionInVPackage, this);
|
||||
}
|
||||
}
|
||||
}
|
||||
addMouseListener(new v(this));
|
||||
}
|
||||
|
||||
public void ExceptionInVPackage(String paramString1, String paramString2, String paramString3, Color paramColor, double paramDouble1, double paramDouble2, boolean paramBoolean1, boolean paramBoolean2) {
|
||||
R r = T.ExceptionInVPackage().c(paramString1);
|
||||
if (r == null)
|
||||
throw new ExceptionInVPackage("Failed to add OutputChannel " + paramString2 + ",\n" + paramString1 + " not currently loaded.");
|
||||
SerializableImpl SerializableImpl = r.ExceptionPrintstacktrace(paramString2);
|
||||
if (SerializableImpl == null)
|
||||
throw new ExceptionInVPackage("Failed to add OutputChannel " + paramString2 + ",\n" + SerializableImpl + " not found in " + paramString1);
|
||||
GInterfaceAh GInterfaceAh = ExceptionInVPackage(paramString2, r);
|
||||
t t = new t(this);
|
||||
t.ExceptionInVPackage(paramString2);
|
||||
t.b(paramString2);
|
||||
if (paramColor == null)
|
||||
paramColor = ExceptionInVPackage(this.c.size());
|
||||
t.ExceptionInVPackage(paramColor);
|
||||
if (paramString3 == null || paramString3.equals(""))
|
||||
paramString3 = SerializableImpl.e();
|
||||
if (paramDouble1 != paramDouble2) {
|
||||
t.b(paramDouble1);
|
||||
t.c(paramDouble2);
|
||||
t.d(SerializableImpl.d());
|
||||
t.ExceptionInVPackage(paramBoolean2);
|
||||
t.b(paramBoolean1);
|
||||
t.c(paramString3);
|
||||
if (GInterfaceAh != null)
|
||||
t.d(GInterfaceAh.l());
|
||||
} else if (GInterfaceAh != null) {
|
||||
t.b(GInterfaceAh.ExceptionInVPackage());
|
||||
t.c(GInterfaceAh.d());
|
||||
t.d(GInterfaceAh.l());
|
||||
t.ExceptionInVPackage(paramBoolean2);
|
||||
t.b(paramBoolean1);
|
||||
if (GInterfaceAh.j() != null && !GInterfaceAh.j().equals("")) {
|
||||
try {
|
||||
t.c(GInterfaceAh.j().ExceptionInVPackage());
|
||||
} catch (ExceptionPrintstacktrace ExceptionPrintstacktrace) {
|
||||
Logger.getLogger(s.class.getName()).log(Level.SEVERE, (String)null, (Throwable)ExceptionPrintstacktrace);
|
||||
t.c("");
|
||||
}
|
||||
} else {
|
||||
t.c(paramString3);
|
||||
}
|
||||
} else {
|
||||
t.b(SerializableImpl.n());
|
||||
t.c(SerializableImpl.m());
|
||||
t.d(SerializableImpl.d());
|
||||
t.c(paramString3);
|
||||
t.ExceptionInVPackage(true);
|
||||
t.b(true);
|
||||
}
|
||||
this.c.put(paramString2, t);
|
||||
ExceptionInVPackage(t);
|
||||
ManagerUsingArrayList.ExceptionInVPackage().ExceptionInVPackage(paramString1, paramString2, this);
|
||||
}
|
||||
|
||||
public void ExceptionInVPackage() {
|
||||
ManagerUsingArrayList.ExceptionInVPackage().ExceptionInVPackage(this);
|
||||
}
|
||||
|
||||
private Color ExceptionInVPackage(int paramInt) {
|
||||
switch (paramInt % 4) {
|
||||
case 0:
|
||||
return Color.CYAN;
|
||||
case 1:
|
||||
return Color.RED;
|
||||
case 2:
|
||||
return Color.YELLOW;
|
||||
case 3:
|
||||
return Color.GREEN;
|
||||
}
|
||||
return Color.MAGENTA;
|
||||
}
|
||||
|
||||
private GInterfaceAh ExceptionInVPackage(String paramString, R paramR) {
|
||||
Iterator<GInterfaceAh> iterator = paramR.B();
|
||||
while (iterator.hasNext()) {
|
||||
GInterfaceAh GInterfaceAh = iterator.next();
|
||||
if (GInterfaceAh.i().equals(paramString))
|
||||
return GInterfaceAh;
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
public void setCurrentOutputChannelValue(String paramString, double paramDouble) {
|
||||
t t = (t)this.c.get(paramString);
|
||||
if (t != null) {
|
||||
if (!c()) {
|
||||
t.ExceptionInVPackage(paramDouble);
|
||||
b();
|
||||
}
|
||||
} else {
|
||||
D.c("LiveGraph::Registered as OuputChannelListener, but I don't have the channel " + paramString);
|
||||
}
|
||||
}
|
||||
|
||||
public void close() {
|
||||
ExceptionInVPackage();
|
||||
}
|
||||
|
||||
public void b() {
|
||||
if (this.ExceptionInVPackage == null)
|
||||
this.ExceptionInVPackage = new u(this);
|
||||
this.ExceptionInVPackage.ExceptionInVPackage();
|
||||
}
|
||||
|
||||
public Dimension getMinimumSize() {
|
||||
return new Dimension(0, 0);
|
||||
}
|
||||
|
||||
public boolean c() {
|
||||
return this.d;
|
||||
}
|
||||
|
||||
public void ExceptionInVPackage(boolean paramBoolean) {
|
||||
this.d = paramBoolean;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/* Location: /home/rewrich/Downloads/TunerStudioMS/TunerStudioMS/!/bt/s.class
|
||||
* Java compiler version: 8 (52.0)
|
||||
* JD-Core Version: 1.1.3
|
||||
*/
|
||||
Reference in New Issue
Block a user