mirror of
https://github.com/johndoe6345789/tustu.git
synced 2026-04-24 13:45:00 +00:00
- Introduced TuningViewWindow for managing tuning view windows. - Implemented BurnButtonActionListener to handle burn button actions. - Created BurnButtonDelayThread to manage delay in burn actions. - Added BurnButtonInitializer for initializing burn button components. - Developed BurnButtonMouseAdapter to manage mouse interactions on burn buttons. - Implemented BurnButtonStateListener to manage burn button state changes. - Created CrossHairActionListener for handling crosshair actions. - Added CrossHairChannelListener to manage channel value updates. - Developed CrossHairPopupListener for managing crosshair popup actions. - Implemented SettingsPanelPopupListener for handling settings panel popups. - Created SettingsPanelSelectionListener for managing selection changes in settings. - Added TablePropertiesHandler for managing table properties. - Introduced CrcCheckActionListener for CRC check actions. - Implemented TimeSlipApplyListener for applying time slip settings. - Created TimeSlipCancelListener for canceling time slip actions. - Developed TimeSlipDialog for managing time slip dialog interactions. - Added TimeSlipFieldFocusListener to manage focus events on time slip fields. - Implemented TimeSlipPanel for displaying and managing time slip data. - Created CylPressureSenderThread for sending cylinder pressure data. - Developed MultiCylPressureSenderThread for managing multiple cylinder pressure data transmissions.
70 lines
2.3 KiB
Java
70 lines
2.3 KiB
Java
package com.efiAnalytics.apps.ts.tuningViews;
|
|
|
|
import java.awt.Component;
|
|
import java.awt.Rectangle;
|
|
import java.awt.event.MouseAdapter;
|
|
import java.awt.event.MouseEvent;
|
|
import java.awt.event.MouseMotionListener;
|
|
|
|
class TuningViewMouseAdapter extends MouseAdapter implements MouseMotionListener {
|
|
private Rectangle b = null;
|
|
|
|
Q(J paramJ) {}
|
|
|
|
public void mousePressed(MouseEvent paramMouseEvent) {
|
|
if (!this.a.isEnabled())
|
|
return;
|
|
Component component = (Component)paramMouseEvent.getSource();
|
|
if (component instanceof TuneViewComponent) {
|
|
if (paramMouseEvent.getButton() != 3 && !this.a.B()) {
|
|
boolean bool = ((paramMouseEvent.getModifiers() & 0x2) != 2 && paramMouseEvent.getButton() == 1) ? true : false;
|
|
this.a.a((TuneViewComponent)component, bool);
|
|
}
|
|
} else if (paramMouseEvent.getButton() != 3 && this.a.B()) {
|
|
this.a.C();
|
|
this.b = new Rectangle();
|
|
this.b.x = paramMouseEvent.getX();
|
|
this.b.y = paramMouseEvent.getY();
|
|
}
|
|
if (paramMouseEvent.getClickCount() == 2) {
|
|
this.a.t();
|
|
} else if (paramMouseEvent.getButton() == 3) {
|
|
this.a.a((Component)paramMouseEvent.getSource(), paramMouseEvent.getX(), paramMouseEvent.getY());
|
|
} else {
|
|
this.a.requestFocus();
|
|
}
|
|
this.a.repaint();
|
|
}
|
|
|
|
public void mouseReleased(MouseEvent paramMouseEvent) {
|
|
if (a() != null) {
|
|
(a()).width = Math.abs(paramMouseEvent.getX() - (a()).x);
|
|
(a()).height = Math.abs(paramMouseEvent.getY() - (a()).y);
|
|
(a()).x = ((a()).x < paramMouseEvent.getX()) ? (a()).x : paramMouseEvent.getX();
|
|
(a()).y = ((a()).y < paramMouseEvent.getY()) ? (a()).y : paramMouseEvent.getY();
|
|
this.a.a(a());
|
|
this.b = null;
|
|
this.a.repaint();
|
|
}
|
|
}
|
|
|
|
public void mouseDragged(MouseEvent paramMouseEvent) {
|
|
if (a() != null) {
|
|
(a()).width = paramMouseEvent.getX() - (a()).x;
|
|
(a()).height = paramMouseEvent.getY() - (a()).y;
|
|
this.a.repaint();
|
|
}
|
|
}
|
|
|
|
public Rectangle a() {
|
|
return this.b;
|
|
}
|
|
|
|
public void mouseMoved(MouseEvent paramMouseEvent) {}
|
|
}
|
|
|
|
|
|
/* Location: /home/rewrich/Downloads/TunerStudioMS/TunerStudioMS/!/com/efiAnalytics/apps/ts/tuningViews/Q.class
|
|
* Java compiler version: 8 (52.0)
|
|
* JD-Core Version: 1.1.3
|
|
*/ |