Logger.logWarning(this, "Popup Action without an active gradient.");
return;
}
if (command.equals("Reverse")) {
ColorGradient temp = new ColorGradient();
int num = m_ActiveGradient.getNumEntries();
for (int i = 0; i < num; i++)
temp.addEntry(m_ActiveGradient.getEntryColor(i), 1.0f - m_ActiveGradient.getEntryPosition(i));
m_ActiveGradient.setFrom(temp);
setColorGradient(m_ActiveGradient);
} else if (command.equals("Random")) {
ms_Presets.get(0).updateGradient(m_ActiveGradient); // remember the old one at the first position
m_ActiveGradient.clear();