예제 #1
0
 public void resetValues() {
   for (SelectableFeature feature : features) {
     feature.setManual(Selection.UNDEFINED);
     feature.setAutomatic(Selection.UNDEFINED);
   }
   update(false, null);
 }
예제 #2
0
 /**
  * Turns all automatic into manual values
  *
  * @param discardDeselected if {@code true} all automatic deselected features get undefined
  *     instead of manual deselected
  */
 public void makeManual(boolean discardDeselected) {
   for (SelectableFeature feature : features) {
     final Selection autoSelection = feature.getAutomatic();
     if (autoSelection != Selection.UNDEFINED) {
       feature.setAutomatic(Selection.UNDEFINED);
       if (!discardDeselected || autoSelection == Selection.SELECTED) {
         feature.setManual(autoSelection);
       }
     }
   }
 }
예제 #3
0
 void setAutomatic(SelectableFeature feature, Selection selection) {
   feature.setAutomatic(selection);
 }
예제 #4
0
 void resetAutomaticValues() {
   for (SelectableFeature feature : features) {
     feature.setAutomatic(Selection.UNDEFINED);
   }
 }