use of electric.xml.Element in project blue by kunstmusik.
the class AudioFile method saveAsXML.
/*
* (non-Javadoc)
*
* @see blue.soundObject.SoundObject#saveAsXML()
*/
@Override
public Element saveAsXML(Map<Object, String> objRefMap) {
Element retVal = SoundObjectUtilities.getBasicXML(this);
retVal.addElement("soundFileName").setText(this.getSoundFileName());
retVal.addElement("csoundPostCode").setText(this.getCsoundPostCode());
return retVal;
}
use of electric.xml.Element in project blue by kunstmusik.
the class TimeState method saveAsXML.
public Element saveAsXML() {
Element retVal = new Element("timeState");
retVal.addElement(XMLUtilities.writeInt("pixelSecond", this.pixelSecond));
retVal.addElement(XMLUtilities.writeBoolean("snapEnabled", this.snapEnabled));
retVal.addElement(XMLUtilities.writeDouble("snapValue", this.snapValue));
retVal.addElement(XMLUtilities.writeInt("timeDisplay", this.timeDisplay));
retVal.addElement(XMLUtilities.writeInt("timeUnit", this.timeUnit));
return retVal;
}
use of electric.xml.Element in project blue by kunstmusik.
the class Tempo method saveAsXML.
public Element saveAsXML() {
Element retVal = new Element("tempo");
retVal.addElement(XMLUtilities.writeBoolean("enabled", enabled));
retVal.addElement(XMLUtilities.writeBoolean("visible", visible));
retVal.addElement(line.saveAsXML());
return retVal;
}
use of electric.xml.Element in project blue by kunstmusik.
the class PresetGroup method loadFromXML.
public static PresetGroup loadFromXML(Element data) {
PresetGroup group = new PresetGroup();
group.setPresetGroupName(data.getAttributeValue("name"));
String val = data.getAttributeValue("currentPresetUniqueId");
if (val != null && val.length() > 0) {
group.setCurrentPresetUniqueId(val);
}
val = data.getAttributeValue("currentPresetModified");
if (val != null && val.length() > 0) {
group.setCurrentPresetModified(Boolean.valueOf(val).booleanValue());
}
Elements nodes = data.getElements();
while (nodes.hasMoreElements()) {
Element node = nodes.next();
switch(node.getName()) {
case "presetGroup":
PresetGroup pGroup = PresetGroup.loadFromXML(node);
group.getSubGroups().add(pGroup);
break;
case "preset":
Preset preset = Preset.loadFromXML(node);
group.getPresets().add(preset);
break;
}
}
return group;
}
use of electric.xml.Element in project blue by kunstmusik.
the class LFOData method saveAsXML.
public Element saveAsXML() {
Element retVal = new Element("lfoData");
retVal.addElement(XMLUtilities.writeInt("speed", speed));
retVal.addElement(XMLUtilities.writeInt("delay", delay));
retVal.addElement(XMLUtilities.writeInt("PMD", PMD));
retVal.addElement(XMLUtilities.writeInt("AMD", AMD));
retVal.addElement(XMLUtilities.writeInt("wave", wave));
retVal.addElement(XMLUtilities.writeInt("sync", sync));
return retVal;
}
Aggregations