Segment color did not change.

If you changed the segment color nothing happened. See Ensemble. I think the call dotMap.get(dot).getStyleClass().clear(); was the problem. With dots.setStyle(dotStyle); the new Color was set but later with clear removed. So the segment did not change its color.