mirror of
https://github.com/bancika/diy-layout-creator
synced 2026-11-10 09:12:09 +10:00
refactor
This commit is contained in:
@@ -28,7 +28,7 @@ import java.awt.*;
|
||||
*
|
||||
* @author Branislav Stojkovic
|
||||
*/
|
||||
public interface ISwitch {
|
||||
public interface ISwitch extends IContinuity {
|
||||
|
||||
Color[] POLE_COLORS = new Color[] {
|
||||
Color.decode("#FFD1DC"), // Pastel Pink
|
||||
@@ -74,4 +74,11 @@ public interface ISwitch {
|
||||
default Boolean getHighlightConnectedTerminals() {
|
||||
return false;
|
||||
}
|
||||
|
||||
default boolean arePointsConnected(int index1, int index2) {
|
||||
if (getSelectedPosition() == null) {
|
||||
return false;
|
||||
}
|
||||
return arePointsConnected(index1, index2, getSelectedPosition());
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user