ChartScoll - human index & label mouse over tooltip
This commit is contained in:
parent
e309e223aa
commit
87cba68fcf
|
@ -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";
|
||||
|
|
|
@ -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() {
|
||||
|
|
Loading…
Reference in New Issue