Commit 8c9da833 authored by Nico Mack's avatar Nico Mack

Minor API changes

parent c9577cb8
......@@ -38,12 +38,10 @@ public class SelectorWidget extends ValueWidget {
protected int currentPosition = NONE;
protected int presetPosition = NONE;
protected float presetAngleOffset = 0;
protected Map<String, SelectionGroup> selectionGroups;
private double segmentSpan;
private List<ValueRange<Double>> segmentSpans;
private Map<String, SelectionGroup> selectionGroups;
private List<SelectableCorona> selectableCoronas;
// ***************************************************************************
......@@ -137,7 +135,7 @@ public class SelectorWidget extends ValueWidget {
for (SelectableCorona corona : this.selectableCoronas) {
if (selectionGroups.containsKey(corona.getGroup())) {
SelectionGroup group = selectionGroups.get(corona.getGroup());
group.addToGroup(corona);
group.add(corona);
}
}
}
......@@ -268,10 +266,6 @@ public class SelectorWidget extends ValueWidget {
protected void selectPosition(int position) {
if (position != currentPosition) {
// this.getCoronas(SelectableCorona.class).forEach(indexed -> indexed.setSelected(indexed.getIndex()
// == position));
// this.getCoronas(SelectableCorona.class).forEach(indexed ->
// indexed.setSelected(indexed.satisfiedBy(position)));
selectableCoronas.forEach(indexed -> indexed.satisfiedBy(position));
if (variable != null) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment