use of de.mossgrabers.framework.daw.data.bank.ISendBank in project DrivenByMoss by git-moss.
the class SLMkIIITrackMode method updateDisplay.
/**
* {@inheritDoc}
*/
@Override
public void updateDisplay() {
final SLMkIIIDisplay d = this.surface.getDisplay();
d.clear();
d.setCell(0, 8, "Track");
final ITrack cursorTrack = this.model.getCursorTrack();
if (!cursorTrack.doesExist()) {
d.setBlock(1, 1, " Please select a").setBlock(1, 2, "track.");
d.setCell(1, 8, "");
d.hideAllElements();
} else {
d.setCell(0, 0, "Volume").setCell(1, 0, cursorTrack.getVolumeStr(9));
d.setPropertyColor(0, 0, SLMkIIIColorManager.SLMKIII_BLUE);
d.setPropertyColor(0, 1, SLMkIIIColorManager.SLMKIII_BLUE);
d.setCell(0, 1, "Pan").setCell(1, 1, cursorTrack.getPanStr(9));
d.setPropertyColor(1, 0, SLMkIIIColorManager.SLMKIII_ORANGE);
d.setPropertyColor(1, 1, SLMkIIIColorManager.SLMKIII_ORANGE);
final ISendBank sendBank = cursorTrack.getSendBank();
for (int i = 0; i < 6; i++) {
final int pos = 2 + i;
int color = SLMkIIIColorManager.SLMKIII_BLACK;
if (sendBank.getItemCount() > 0) {
final ISend send = sendBank.getItem(i);
if (send.doesExist()) {
d.setCell(0, pos, send.getName(9)).setCell(1, pos, send.getDisplayedValue(9));
color = SLMkIIIColorManager.SLMKIII_YELLOW;
}
}
d.setPropertyColor(pos, 0, color);
d.setPropertyColor(pos, 1, color);
}
d.setCell(1, 8, StringUtils.fixASCII(cursorTrack.getName(9)));
}
this.drawRow4();
this.setButtonInfo(d);
d.allDone();
}
Aggregations