If the first OutputParameterInfo has no color assigned through setColor(color), ALL subsequent OutputParameterInfo objects will get random colors assigned, even if they have colors assigned.
Example: first param DrawingStyle.NONE, no color assigned...
outputParameterInfos = new OutputParameterInfo[] {
new OutputParameterInfo("Idx", OutputParameterInfo.Type.DOUBLE, OutputParameterInfo.DrawingStyle.NONE)
{{
}},
new OutputParameterInfo("Max", OutputParameterInfo.Type.DOUBLE, OutputParameterInfo.DrawingStyle.HISTOGRAM)
{{
setColor(Color.GREEN); // <=== will get a random color assigned instead of green
}},
...
workaround:
assigning ALL OutputParameterInfo objects a color regardless even the ones with DrawingStyle.NONE will lead to the engine using the set colors.
outputParameterInfos = new OutputParameterInfo[] {
new OutputParameterInfo("Idx", OutputParameterInfo.Type.DOUBLE, OutputParameterInfo.DrawingStyle.NONE)
{{
setColor(Color.BLACK); // <=== dummy assignment as workaround
}},
new OutputParameterInfo("Max", OutputParameterInfo.Type.DOUBLE, OutputParameterInfo.DrawingStyle.HISTOGRAM)
{{
setColor(Color.GREEN); // <=== ... will lead to correctly processing this setColor-statement
}},
...
Best, RR.