use of blue.soundObject.ceciliaModule.CeciliaObject in project blue by kunstmusik.
the class SliderPanel method editCeciliaModule.
/**
* @param ceciliaModule
*/
public void editCeciliaModule(CeciliaModule ceciliaModule) {
updating = true;
HashMap map = ceciliaModule.getStateData();
if (map.size() == 0) {
return;
}
for (Iterator iter = map.values().iterator(); iter.hasNext(); ) {
CeciliaObject element = (CeciliaObject) iter.next();
if (element instanceof CSlider) {
CSlider slider = (CSlider) element;
setupCslider(slider);
}
}
updating = false;
}
use of blue.soundObject.ceciliaModule.CeciliaObject in project blue by kunstmusik.
the class TogglePanel method editCeciliaModule.
/**
* @param ceciliaModule
*/
public void editCeciliaModule(CeciliaModule ceciliaModule) {
HashMap map = ceciliaModule.getStateData();
if (map.size() == 0) {
return;
}
for (Iterator iter = map.values().iterator(); iter.hasNext(); ) {
CeciliaObject element = (CeciliaObject) iter.next();
if (element instanceof CToggle) {
CToggle toggle = (CToggle) element;
JCheckBox checkBox = (JCheckBox) interfaceObjectMap.get(toggle.getObjectName());
checkBox.setText(toggle.getLabel());
checkBox.setSelected(toggle.isToggled());
dataValues.put(toggle.getObjectName(), toggle);
}
}
}
Aggregations