protected G getFill() {
return (G) shape.getFillPaint();
}
protected void addStopControl(final MultiGradientFill.Stop stop) {
FreerangeColorPicker colorPopup = new FreerangeColorPicker();
colorPopup.setSelectedColor(stop.getColor());
colorPopup.setPrefWidth(10);
colorPopup.setPrefHeight(10);
controls.add(colorPopup);
colorControlMap.put(stop,colorPopup);
colorPopup.onColorSelected(new Callback<ChangedEvent>() {
public void call(ChangedEvent changedEvent) throws Exception {
FlatColor val = (FlatColor) changedEvent.getValue();
if (val == null) {
val = FlatColor.WHITE_TRANSPARENT;
}