- annot.visible = (annotTypeMap == null
- || annotTypeMap.get(scr.getMethod()) == null || annotTypeMap
- .get(scr.getMethod()).get(INVISIBLE) == null);
- double[] thrsh = (annotTypeMap == null || annotTypeMap
- .get(scr.getMethod()) == null) ? null
- : (double[]) annotTypeMap.get(scr.getMethod()).get(
- THRESHOLD);
- if (annotTypeMap == null
- || annotTypeMap.get(scr.getMethod()) == null
- || annotTypeMap.get(scr.getMethod()).get(DONTCOMBINE) == null)
+
+ Map<String, Object> styleMap = (annotTypeMap == null) ? null
+ : annotTypeMap.get(scr.getMethod());
+
+ annot.visible = (styleMap == null || styleMap.get(INVISIBLE) == null);
+ double[] thrsh = (styleMap == null) ? null
+ : (double[]) styleMap.get(THRESHOLD);
+ float[] range = (styleMap == null) ? null
+ : (float[]) styleMap.get(RANGE);
+ if (range != null)
+ {
+ annot.graphMin = range[0];
+ annot.graphMax = range[1];
+ }
+ if (styleMap == null || styleMap.get(DONTCOMBINE) == null)