EnvelopeNode[] nodes = widget.getNodes();
int numFaders = 0;
for (int i = 0; i < nodes.length; i++) {
EnvelopeNode node = nodes[i];
final IParamModel modelX = widget.getParamModel(node, true);
if (modelX != null) {
Xmlparam paramX = xmlparamArray[numFaders];
final int faderX = widget.getSliderNum() + numFaders++;
int minX = node.getMinX();
int maxX = node.getMaxX();
assertEquals("Check paramX label: " + paramX.getLabel(),
paramX.getLabel(), node.getNameX().trim());
assertEquals("Check paramX max: " + paramX.getLabel(),
paramX.getMax(), maxX);
assertEquals("Check paramX min: " + paramX.getLabel(),
paramX.getMin(), minX);
widget.setFader(faderX);
testMessages(paramX, widget);
}
final IParamModel modelY = widget.getParamModel(node, false);
if (modelY != null) {
Xmlparam paramY = xmlparamArray[numFaders];
final int faderY = widget.getSliderNum() + numFaders++;
int minY = node.getMinY();
int maxY = node.getMaxY();