mirror of
https://github.com/bancika/diy-layout-creator
synced 2026-11-11 01:32:08 +10:00
show markers
This commit is contained in:
+1
-2
@@ -533,8 +533,7 @@ public class MiniToggleSwitch extends AbstractTransparentComponent<ToggleSwitchT
|
||||
}
|
||||
|
||||
@EditableProperty(name = "Highlight Connected")
|
||||
@Override
|
||||
public Boolean getHighlightConnectedTerminals() {
|
||||
public Boolean getShowMarkers() {
|
||||
if (highlightConnectedTerminals == null) {
|
||||
highlightConnectedTerminals = false;
|
||||
}
|
||||
|
||||
-14
@@ -107,7 +107,6 @@ public class RotarySwitchOpen extends AbstractAngledComponent<RotarySwitchOpenTy
|
||||
private double[] pointAngles;
|
||||
|
||||
private Integer selectedPosition;
|
||||
private Boolean highlightConnectedTerminals;
|
||||
|
||||
public RotarySwitchOpen() {
|
||||
super();
|
||||
@@ -600,19 +599,6 @@ public class RotarySwitchOpen extends AbstractAngledComponent<RotarySwitchOpenTy
|
||||
this.selectedPosition = selectedPosition;
|
||||
}
|
||||
|
||||
@EditableProperty(name = "Highlight Connected")
|
||||
@Override
|
||||
public Boolean getHighlightConnectedTerminals() {
|
||||
if (highlightConnectedTerminals == null) {
|
||||
highlightConnectedTerminals = false;
|
||||
}
|
||||
return highlightConnectedTerminals;
|
||||
}
|
||||
|
||||
public void setHighlightConnectedTerminals(Boolean highlightConnectedTerminals) {
|
||||
this.highlightConnectedTerminals = highlightConnectedTerminals;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Rectangle2D getCachingBounds() {
|
||||
Shape[] body = getBody();
|
||||
|
||||
+1
-2
@@ -505,8 +505,7 @@ public class SlideSwitch extends AbstractTransparentComponent<SlideSwitchType> i
|
||||
}
|
||||
|
||||
@EditableProperty(name = "Highlight Connected")
|
||||
@Override
|
||||
public Boolean getHighlightConnectedTerminals() {
|
||||
public Boolean getShowMarkers() {
|
||||
if (highlightConnectedTerminals == null) {
|
||||
highlightConnectedTerminals = false;
|
||||
}
|
||||
|
||||
@@ -451,8 +451,7 @@ public class Freeway3x3_03 extends AbstractTransparentComponent<Void> implements
|
||||
}
|
||||
|
||||
@EditableProperty(name = "Highlight Connected")
|
||||
@Override
|
||||
public Boolean getHighlightConnectedTerminals() {
|
||||
public Boolean getShowMarkers() {
|
||||
if (highlightConnectedTerminals == null) {
|
||||
highlightConnectedTerminals = false;
|
||||
}
|
||||
|
||||
@@ -83,7 +83,7 @@ public class LeverSwitch extends AbstractAngledComponent<LeverSwitch.LeverSwitch
|
||||
@Deprecated
|
||||
private Boolean highlightCommon;
|
||||
private Integer selectedPosition;
|
||||
private Boolean highlightConnectedTerminals;
|
||||
private Boolean showMarkers;
|
||||
|
||||
public LeverSwitch() {
|
||||
super();
|
||||
@@ -521,17 +521,16 @@ public class LeverSwitch extends AbstractAngledComponent<LeverSwitch.LeverSwitch
|
||||
this.body = null;
|
||||
}
|
||||
|
||||
@EditableProperty(name = "Highlight Connected")
|
||||
@Override
|
||||
public Boolean getHighlightConnectedTerminals() {
|
||||
if (highlightConnectedTerminals == null) {
|
||||
highlightConnectedTerminals = false;
|
||||
@EditableProperty(name = "Markers")
|
||||
public Boolean getShowMarkers() {
|
||||
if (showMarkers == null) {
|
||||
showMarkers = false;
|
||||
}
|
||||
return highlightConnectedTerminals;
|
||||
return showMarkers;
|
||||
}
|
||||
|
||||
public void setHighlightConnectedTerminals(Boolean highlightConnectedTerminals) {
|
||||
this.highlightConnectedTerminals = highlightConnectedTerminals;
|
||||
public void setShowMarkers(Boolean showMarkers) {
|
||||
this.showMarkers = showMarkers;
|
||||
this.body = null;
|
||||
}
|
||||
|
||||
|
||||
+7
-8
@@ -90,7 +90,7 @@ public class SchallerMegaSwitch extends AbstractAngledComponent<String> implemen
|
||||
private transient Double labelDy = null;
|
||||
|
||||
private Integer selectedPosition;
|
||||
private Boolean highlightConnectedTerminals;
|
||||
private Boolean showMarkers;
|
||||
|
||||
public SchallerMegaSwitch() {
|
||||
super();
|
||||
@@ -570,16 +570,15 @@ public class SchallerMegaSwitch extends AbstractAngledComponent<String> implemen
|
||||
}
|
||||
|
||||
@EditableProperty(name = "Highlight Connected")
|
||||
@Override
|
||||
public Boolean getHighlightConnectedTerminals() {
|
||||
if (highlightConnectedTerminals == null) {
|
||||
highlightConnectedTerminals = false;
|
||||
public Boolean getShowMarkers() {
|
||||
if (showMarkers == null) {
|
||||
showMarkers = false;
|
||||
}
|
||||
return highlightConnectedTerminals;
|
||||
return showMarkers;
|
||||
}
|
||||
|
||||
public void setHighlightConnectedTerminals(Boolean highlightConnectedTerminals) {
|
||||
this.highlightConnectedTerminals = highlightConnectedTerminals;
|
||||
public void setShowMarkers(Boolean showMarkers) {
|
||||
this.showMarkers = showMarkers;
|
||||
this.body = null;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user