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); }
Map<Long, ColoringStrategyType> colorPerLayer = preference.getColorPerLayer(); if (colorPerLayer == null) { colorPerLayer = new HashMap<>();
Map<Long, ColoringStrategyType> colorPerLayer = preference.getColorPerLayer(); if (colorPerLayer == null) { colorPerLayer = new HashMap<>();
model.fontZoom = prefs.getFontZoom(); model.scrollPage = prefs.isScrollPage(); model.colorPerLayer = prefs.getColorPerLayer(); model.readonlyLayerColoringBehaviour = prefs.getReadonlyLayerColoringBehaviour(); model.rememberLayer = prefs.isRememberLayer();