MainPanel prototype
This commit is contained in:
@@ -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(){
|
||||
|
||||
Reference in New Issue
Block a user