mirror of
https://github.com/johndoe6345789/tustu.git
synced 2026-04-24 13:45:00 +00:00
- Introduced ContextHelpMouseAdapter for handling mouse events related to context help. - Implemented EnableDelayManager and EnableDelayThread for managing delays in enabling features. - Created EnabledStateCallback interface for state change notifications. - Added HelpIconLabel and HelpIconMouseAdapter for displaying help icons with tooltips. - Developed IndicatorReadoutPanel for visual representation of indicators. - Implemented LiveGraphDataSeries and associated mouse adapters for live graph updates. - Created LiveGraphPaintThrottle to manage painting frequency in live graphs. - Added MenuItemIconProvider for dynamic icon assignment to menu items. - Introduced NamedPanel for panels with names and associated properties. - Implemented NoteEditorCallback for handling note editing actions. - Created NoteIconLabel for displaying notes with icons. - Developed PrefixedPropertyStore for managing properties with prefixes. - Added RefreshRateCalculator for calculating refresh rates based on conditions. - Introduced RefreshableComponent interface for components that can be refreshed. - Created TableCellHighlightListener interface for handling cell highlight events. - Implemented ValueComboBox for enhanced combo box functionality with custom items.
79 lines
2.1 KiB
Java
79 lines
2.1 KiB
Java
package bt;
|
|
|
|
import bH.D;
|
|
import bH.X;
|
|
import com.efiAnalytics.ui.bV;
|
|
import com.efiAnalytics.ui.bi;
|
|
import com.efiAnalytics.ui.eJ;
|
|
import java.awt.Dimension;
|
|
import java.awt.Image;
|
|
import java.awt.Point;
|
|
import java.awt.Toolkit;
|
|
import java.awt.Window;
|
|
import javax.swing.Icon;
|
|
import javax.swing.ImageIcon;
|
|
import javax.swing.JLabel;
|
|
import s.g;
|
|
|
|
public class j extends JLabel {
|
|
ImageIcon a = null;
|
|
|
|
String b = null;
|
|
|
|
public j(String paramString) {
|
|
this.b = paramString;
|
|
try {
|
|
Image image = Toolkit.getDefaultToolkit().getImage(getClass().getResource("Help32.png"));
|
|
image = image.getScaledInstance(20, 20, 4);
|
|
this.a = new ImageIcon(image);
|
|
addMouseListener(new k(this));
|
|
} catch (Exception exception) {
|
|
D.a("Could no load icon image resources/comment3.png");
|
|
}
|
|
setIcon(this.a);
|
|
b();
|
|
setOpaque(false);
|
|
}
|
|
|
|
public void a() {
|
|
if (this.b == null)
|
|
this.b = "";
|
|
String str = this.b;
|
|
if (str == null || str.equals(""))
|
|
return;
|
|
str = g.b(str);
|
|
Window window = bV.b(this);
|
|
bi bi = new bi(window, str, true);
|
|
bi.setSize(eJ.a(322), eJ.a(183));
|
|
Point point = getLocationOnScreen();
|
|
point.y += getHeight() / 2;
|
|
point.x -= eJ.a(10);
|
|
Dimension dimension = Toolkit.getDefaultToolkit().getScreenSize();
|
|
if (point.x + bi.getWidth() > dimension.width);
|
|
bi.setLocation(point);
|
|
setToolTipText((String)null);
|
|
bi.setVisible(true);
|
|
}
|
|
|
|
private void b() {
|
|
if (this.b != null && this.b.length() > 0) {
|
|
String str = this.b;
|
|
str = g.b(this.b);
|
|
StringBuilder stringBuilder = new StringBuilder(str);
|
|
stringBuilder = X.a(stringBuilder, "\\n", "\n");
|
|
stringBuilder = X.a(stringBuilder, "\n", "<br>");
|
|
stringBuilder.insert(0, "<html>");
|
|
stringBuilder.append("</html>");
|
|
setToolTipText(stringBuilder.toString());
|
|
} else {
|
|
setToolTipText((String)null);
|
|
setIcon((Icon)null);
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
/* Location: /home/rewrich/Downloads/TunerStudioMS/TunerStudioMS/!/bt/j.class
|
|
* Java compiler version: 8 (52.0)
|
|
* JD-Core Version: 1.1.3
|
|
*/ |