JFXtras/jfxtras-labs — pull request #22 by hameister (2013-04-01 07:02:58+00:00)
Title: Segment color did not change.

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

I stored the style in a variable an set it after the clear call.

I am not sure, if we should add the call dots.setStyle(dotStyle) at other places in the if-for-construct. (With customDotMapping and for the disabled dots.)