Commit Graph

1336 Commits

Author SHA1 Message Date
Scotthew 4a68f17802 Editor Fixes:
- Reduces the calls to drawTable()
 - Rom node and category node now use "table click count" for expand and collapse.
 - Updated Color Scale to use low for 0 and high for NAN.  NAN is caused by a divide by 0.
2013-09-16 23:41:38 -07:00
Scotthew 218f8ddd8f Resolves Fast Decrement Issues:
Helps to limit issue where decrementing cells several times really fast and then highlighting another cell causes the newly highlighted cell to be decremented.

Note: Similar issues may exist.  Long running tasks like refreshing the data bounds needs to happen on a worker thread.  The cursor could be disabled while these tasks are running to avoid these sorts of issues.  I prefer to show the wait cursor but allow clicks.
2013-09-16 23:41:37 -07:00
Scotthew 861f87bc56 Editor Updates:
- Fixed JFontChooser error.  Included JFontChooser.java into project and removed .jar.
 - Cleaned up Table and DataCell logic.
 - Added Table Setting for displaying title border on the table toolbar.
 - Exposed the select and highlight colors.  This existed but did not appear to be used properly.
 - Increased load times.
2013-09-16 23:41:36 -07:00
Scotthew d25c6233b1 Improved Rom loading:
- Unmarshall memory is freed after it completes.  This allows for a lower memory spike and less heap allocation.
2013-09-16 23:41:34 -07:00
Scotthew 76260cf3cf UI Settings:
Click Behavior
 - Click behavior open/close: click to open the table.  If the table is open the next click will close the table.
 - Click behavior open/focus: click to open the table.  If the table is open the next click will focus the table.

Open Table At [0,0]
 - If checked all newly opened tables will open at the point [0,0]
 - If not checked all newly opened tables will cascade from the current selected frame location.  If no table is selected the tables will cascade from the frame at index [0].

 - Moved adding the Rom node to the UI behind applying the table colors.
2013-09-16 23:41:33 -07:00
Scotthew b46b79b6a9 UI Updates:
- Modified editor startup.  Removed unnecessary references from toolbars.
 - Added 2 new settings.  One option for opening the Rom tree view expanded and another for displaying the table toolbar border.
 - Saving settings should now refresh the UI.
 - Fixed table toolbar refresh issue when table is focused by closing another table.
2013-09-16 23:41:31 -07:00
Scotthew 44d958088c Editor Updates:
- "Compare to Table" menu is now populated.  The sub menu item has the tables Rom name and the tooltip will display the table name.
 - Clicking a table name in the tree view will display the table or focus on the table.  The table is no longer closed unless you click the x or select close from the menu.
 - The TableFrame now handles menu actions.
 - Removed TableFrame reference from TableMenuItem.
2013-09-16 23:41:30 -07:00
Scotthew e305d8ab40 More Editor Cleanup Continued:
- Fixed "addRom()" routine.  The tree is now properly built from the vector of TableTreeNodes.
 - Fixed "Close Image" worker.
 - SetUserLevelWorker became much simpler.  It now is just a rebuild of the JTree.
 - RomTreeRootNode.java now is just a basic DefaultMutableTreeNode.
 - Closing a Rom now properly cleans up memory.
Note: lastSelectedRom will not be set when focusing on a TableFrame.  This feature requires unnecessary work and/or references.  lastSelectedRom will now only be set when selecting something in Rom tree.
2013-09-16 23:41:29 -07:00
Scotthew 291155f47a More Editor Cleanup:
- Combined idea of RomTreeNode and Rom into one.
 - Rom now contains a list of TableTreeNodes.
 - TableTreeNode now consists of a TableFrame.java.
 - TableFrame includes the reference to the table.
 - Fixed DTC TablePropertyPanel error.
 - Fixed definition locating routine.
2013-09-16 23:41:28 -07:00
Scotthew 1c9ce70774 Editor Comparison Updates:
- Resolved issue where missing TableSwitch getType() method breaks table rendering.
 - Added ability to compare DTC's.  Differences will change the DTC radio button text to Red.
 - Unsupported DTC menu options are now disabled.
 - Wrapped all table compare functions in try catch returning false on errors.
 - Added Override equals() method to axis tables (Table1D).
2013-09-16 23:41:27 -07:00
Scotthew a49e03a24e Updated UI Refresh to go back to using Repaint. 2013-09-16 23:41:26 -07:00
Scotthew 90a747bd57 Editor Cleanup:
- Moved static settings to the Settings class.
 - Added better support for cleaning up listeners, and refreshing the UI.
 - Now manually call GC after open and close.
 - Revised the compare image functionality.
 - Revised getTableAsString() functions.  These now can get different values as a string.
 - Revised "save as repository" to properly save table headers.
2013-09-16 23:41:25 -07:00
Scotthew 04ea346a70 Clean Up:
- Now using the ECUEditorManager to access the ECUEditor.
 - Moved static final values to the settings class.
2013-09-16 23:41:24 -07:00
Dale Schultz 5c0c0239be Release Candidate 0.5.7 RC2 2013-08-28 18:27:07 -04:00
Dale Schultz 591aff6d1e Fix issue with Learning Table Values reading ECU def for 6-cyl cars. 2013-08-28 18:20:43 -04:00
Dale Schultz dc5c311bde Release Candidate 0.5.7 RC1 2013-08-05 10:10:58 -04:00
Dale Schultz 9f97f7936e Removed comment out code. 2013-08-03 14:02:41 -04:00
Dale Schultz 00541ca021 Force button text style to plain as Linux always seems to choose bold as the default. 2013-08-03 14:00:19 -04:00
Dale Schultz 5b193e8f9a A Class to change text style and/or size within a font family of a JComponent. 2013-08-03 13:58:53 -04:00
Dale Schultz 07c555a6cf Removed static fields to correct dialog not refreshing with new table data problem found during testing. 2013-08-03 13:57:14 -04:00
Dale Schultz d77e3a23fd Added PLX sensor address 4032 as a bogus type. 2013-07-28 18:16:52 -04:00
Dale Schultz a55f9bda74 Added definition for new dtcode section in logger.xml file. 2013-07-25 23:09:32 -04:00
Dale Schultz 110b4e2a32 Added a button to the left margin of each tabbed pane for quick access to the Learning Table Values dialog (handy on touch screens). 2013-07-22 18:31:32 -04:00
Dale Schultz ae9b6f8fbb Update to implement the new ConvertorManger interface. Convertors can now be applied to the Phidget data items immediately, no Logger restart required. 2013-07-21 23:38:38 -04:00
Dale Schultz b8a26f69a5 Created an Interface which an ExternalDataItem can implement to dynamically change convertors associated with the data item. 2013-07-21 23:35:58 -04:00
Dale Schultz 08823ea8a6 Added an option to the Test app to read an address range one byte at a time. 2013-07-20 23:05:18 -04:00
Dale Schultz ebc92338a3 Refactor to provide the user with a dialog to define custom convertors for each Phidget sensor. 2013-07-20 14:11:35 -04:00
Dale Schultz fb1f0e0d9f Refactor to add JavaDoc and change the apply to save button. 2013-07-20 14:09:21 -04:00
Dale Schultz 945259f5a1 Refactor to pass Sensor object to create data item rather than creating the data item here. 2013-07-20 14:08:14 -04:00
Dale Schultz 88c59b09f0 Refactor to support user defined parameters for data items from discovered sensors. Also append a default convertor if a user convertor exists. 2013-07-20 14:06:17 -04:00
Dale Schultz 223eeb3a7b Added support to apply user defined parameters from settings.xml as sensors are discovered. 2013-07-20 14:03:20 -04:00
Dale Schultz 4840cfdbb1 Updated class JavaDoc 2013-07-20 14:01:27 -04:00
Dale Schultz 332cfffd6b Refactor changed array of Integers to List<Integers> for serials 2013-07-20 13:59:10 -04:00
Dale Schultz b4d7485be9 Refactor to support saving and reading user defined Phidget InterfaceKit settings. 2013-07-20 13:55:31 -04:00
Dale Schultz 8a1ad04a07 Added JavaDoc source for Phidget class. 2013-07-20 13:53:57 -04:00
Dale Schultz ef8450e551 Add method to get field externalDataSources. 2013-07-20 13:53:24 -04:00
Dale Schultz 2cc8c46ff3 Refactor Override toString() with custom value. 2013-07-19 18:10:13 -04:00
Dale Schultz 3ba7e93503 Refactor to set new IntfKitSensor fields. 2013-07-17 23:27:32 -04:00
Dale Schultz 966f4fdd99 Refactor class to add fields to support user defined convertors. 2013-07-17 23:03:22 -04:00
Dale Schultz 9f0bd299c0 Refactor to store Phidget InterfaceKit Sensors to settings.xml 2013-07-17 23:02:21 -04:00
Dale Schultz c0181fe52b Add a Settings field to hold known Phidget InterfaceKit sensors. 2013-07-17 22:38:51 -04:00
Dale Schultz f5c5d4c9f2 Add Phidget InterfaceKit user defined convertor dialog. 2013-07-16 23:43:22 -04:00
Dale Schultz 517c908574 Add table model for Phidget InterfaceKit convertor panel. 2013-07-15 23:34:56 -04:00
Dale Schultz 8e7c0c5c36 Add getExpression to Data Convertors. 2013-07-15 18:46:22 -04:00
Dale Schultz f39357b473 Added Javac option to enable debugging by default. 2013-07-09 18:44:23 -04:00
Dale Schultz 31a88d643e Adjusted version for LTV 3 testing. 2013-07-09 18:43:15 -04:00
Dale Schultz 8180029da8 Added Learning Table Values Tool menu item. 2013-07-09 18:35:10 -04:00
Dale Schultz 2a0fe202b7 A class to retrieve the definition for the current ECU ID from the ECU Definition Map. 2013-07-09 18:31:33 -04:00
Dale Schultz 8de8768317 Changed line ending to LF only. 2013-07-09 18:15:38 -04:00
Dale Schultz 5407b20397 Removed reversing of the returned collection to ensure we detect the correct table name working from the most specific CAL ID back to the base. 2013-07-08 23:48:49 -04:00