stop.setColor(val.deriveWithAlpha(stop.getColor().getAlpha()));
refresh();
}
});
AlphaPicker c2 = new AlphaPicker();
c2.setAlpha(stop.getColor().getAlpha());
c2.onAlphaSelected(new Callback<ChangedEvent>() {
public void call(ChangedEvent changedEvent) throws Exception {
Double d = (Double) changedEvent.getValue();
stop.setColor(stop.getColor().deriveWithAlpha(d));
refresh();
}
});
c2.setPrefWidth(10).setPrefHeight(10);
controls.add(c2);
alphaControlMap.put(stop,c2);
}