ChartScoll - human index & label mouse over tooltip

This commit is contained in:
rusefi 2019-07-05 02:54:48 -04:00
parent 83ad64eade
commit dc05e84f92
2 changed files with 4 additions and 2 deletions

View File

@ -46,7 +46,7 @@ import static com.rusefi.ui.storage.PersistentConfiguration.getConfig;
* @see EngineSnifferPanel
*/
public class Launcher {
public static final int CONSOLE_VERSION = 20190701;
public static final int CONSOLE_VERSION = 20190705;
public static final boolean SHOW_STIMULATOR = false;
public static final String INPUT_FILES_PATH = "..";
private static final String TAB_INDEX = "main_tab";

View File

@ -22,6 +22,7 @@ public class ChartScrollControl {
public ChartScrollControl(final ChartRepository.ChartRepositoryListener listener) {
this.listener = listener;
info.setToolTipText("Current page index / total pages count");
content.setBorder(BorderFactory.createLineBorder(Color.red));
@ -104,7 +105,8 @@ public class ChartScrollControl {
}
private void setInfoText(AtomicInteger index) {
info.setText(index.get() + "/" + ChartRepository.getInstance().getSize());
int humanIndex = index.get() + 1;
info.setText(humanIndex + "/" + ChartRepository.getInstance().getSize());
}
public void reset() {