Megaswitch highlighting

This commit is contained in:
Bane Stojkovic
2025-03-16 20:54:47 +01:00
parent f925093c80
commit 3fcc9091a7
6 changed files with 140 additions and 29 deletions
@@ -71,7 +71,7 @@ public interface ISwitch {
return null;
}
default Boolean getRenderConnectedTerminals() {
default Boolean getHighlightConnectedTerminals() {
return false;
}
}
@@ -31,7 +31,7 @@ public class SwitchUtils {
List<Set<Integer>> connectedGroups = new ArrayList<>();
// Only process if we have a selected position and should render connections
if (switchComponent.getSelectedPosition() == null || !Boolean.TRUE.equals(switchComponent.getRenderConnectedTerminals())) {
if (switchComponent.getSelectedPosition() == null || !Boolean.TRUE.equals(switchComponent.getHighlightConnectedTerminals())) {
return connectedGroups;
}
@@ -34,7 +34,7 @@ public class SwitchUtilsTest {
}
@Override
public Boolean getRenderConnectedTerminals() {
public Boolean getHighlightConnectedTerminals() {
return renderConnected;
}