+ } else if (e.command.equals( Commands.ENABLE_PAINTING )) {
+ enablePainting();
+ updateNode();
+ setDirty();
+ return true;
+ }
+ return false;
+ }
+
+ @EventHandler(priority = 31)
+ public boolean handleEvent(Event e) {
+ if (e instanceof MouseMovedEvent) {
+ // here we should somehow re-render ?
+ if (locationInfoNode != null && locationInfoNode.isEnabled()) {
+ if (schedule == null || schedule.isDone()) {
+ LOGGER.debug("current setDirty time" + System.currentTimeMillis());
+ schedule = ThreadUtils.getNonBlockingWorkExecutor().schedule(() -> {
+ AWTThread.getThreadAccess().asyncExec(this::setDirty);
+ }, 100, TimeUnit.MILLISECONDS);
+ } else {
+ //LOGGER.debug("ingoring setDirty time" + System.currentTimeMillis());
+ }
+ }