public static ColoringStrategy getStrategy(AnnotationSchemaService aService, AnnotationLayer aLayer, AnnotationPreference aPreferences, Map<String[], Queue<String>> aColorQueues) { ColoringStrategyType t = aPreferences.getColorPerLayer().get(aLayer.getId()); ReadonlyColoringBehaviour rt = aPreferences.getReadonlyLayerColoringBehaviour(); if (aLayer.isReadonly() && rt != ReadonlyColoringBehaviour.NORMAL) { t = rt.t; } if (t == null || t == ColoringStrategyType.LEGACY) { t = getBestInitialStrategy(aService, aLayer, aPreferences); } return getStrategy(aService, aLayer, t, aColorQueues); }
public static ColoringStrategy getStrategy(AnnotationSchemaService aService, AnnotationLayer aLayer, AnnotationPreference aPreferences, Map<String[], Queue<String>> aColorQueues) { ColoringStrategyType t = aPreferences.getColorPerLayer().get(aLayer.getId()); ReadonlyColoringBehaviour rt = aPreferences.getReadonlyLayerColoringBehaviour(); if (aLayer.isReadonly() && rt != ReadonlyColoringBehaviour.NORMAL) { t = rt.t; } if (t == null || t == ColoringStrategyType.LEGACY) { t = getBestInitialStrategy(aService, aLayer, aPreferences); } return getStrategy(aService, aLayer, t, aColorQueues); }
model.scrollPage = prefs.isScrollPage(); model.colorPerLayer = prefs.getColorPerLayer(); model.readonlyLayerColoringBehaviour = prefs.getReadonlyLayerColoringBehaviour(); model.rememberLayer = prefs.isRememberLayer();