MainPanel prototype

This commit is contained in:
gac-S_Changer
2018-04-23 16:33:58 +02:00
parent 5e7124870c
commit 6857814130
6 changed files with 153 additions and 55 deletions

View File

@@ -112,7 +112,20 @@ public class Puck extends DeviceBase {
}
public boolean isSegmentSelected(){
return ("" + getSegment()).equalsIgnoreCase(Controller.getInstance().getHexaposiPosition());
/*
switch(Integer.valueOf(Controller.getInstance().getHexaposiPosition())){
case 1: return getSegment()=='A';
case 2: return getSegment()=='B';
case 3: return getSegment()=='C';
case 4: return getSegment()=='D';
case 5: return getSegment()=='E';
case 6: return getSegment()=='F';
}
} catch(Exception ex){
}
return false;
*/
return ("" + getSegment()).equalsIgnoreCase(Controller.getInstance().getHexiposiPosition());
}
public boolean isHighlithted(){