mirror of https://github.com/rusefi/RomRaider.git
logger dash tab updates
git-svn-id: http://svn.3splooges.com/romraider-arch/trunk@478 d2e2e1cd-ba16-0410-be16-b7c4453c7c2d
This commit is contained in:
parent
69328c47ae
commit
44f5c0ad0a
|
@ -99,7 +99,6 @@ TODO: add better debug logging, preferably to a file and switchable (on/off)
|
|||
TODO: Clean up this class!
|
||||
So much to do, so little time....
|
||||
|
||||
TODO: add data reset button to each tab (resets max/min values, and clears graph data)
|
||||
TODO: add length attribute to <byte> tags in logger.xml
|
||||
TODO: remove duplicate addresses from queries (and resolve response values back to original requests)
|
||||
TODO: Keyboard accessibility (enable/disable parameters, select tabs, etc)
|
||||
|
@ -192,7 +191,7 @@ public final class EcuLogger extends JFrame implements WindowListener, PropertyC
|
|||
liveDataUpdateHandler = new LiveDataUpdateHandler(dataTableModel);
|
||||
graphPanel = new JPanel(new SpringLayout());
|
||||
graphUpdateHandler = new GraphUpdateHandler(graphPanel);
|
||||
dashboardPanel = new JPanel(new GridLayout(4, 4, 3, 3));
|
||||
dashboardPanel = new JPanel(new GridLayout(3, 3, 3, 3));
|
||||
dashboardUpdateHandler = new DashboardUpdateHandler(dashboardPanel);
|
||||
}
|
||||
|
||||
|
|
|
@ -26,7 +26,6 @@ import enginuity.logger.definition.EcuData;
|
|||
import enginuity.logger.ui.handler.DataUpdateHandler;
|
||||
|
||||
import javax.swing.*;
|
||||
import java.awt.*;
|
||||
import static java.util.Collections.synchronizedMap;
|
||||
import java.util.HashMap;
|
||||
import java.util.Map;
|
||||
|
@ -78,8 +77,9 @@ public final class DashboardUpdateHandler implements DataUpdateHandler, Converto
|
|||
|
||||
private void repaintDashboardPanel() {
|
||||
dashboardPanel.doLayout();
|
||||
for (Component component : dashboardPanel.getComponents()) {
|
||||
component.doLayout();
|
||||
for (Gauge gauge : gauges.values()) {
|
||||
gauge.doLayout();
|
||||
gauge.repaint();
|
||||
}
|
||||
dashboardPanel.repaint();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue