switch (severity) {  case 0 : debugValueColor = Color.WHITE; break;  case 1 : debugValueColor = Color.YELLOW; break;  case 2 : debugValueColor = Color.RED; break;  default : debugValueColor = Color.WHITE; }
this.severity = severity;
public void setDebugValue(String newValue, Date timeStamp, short severity){	if (com.cosylab.vdct.plugin.debug.PluginDebugManager.isDebugState())	{		debugValueTimeStamp = timeFormatter.format(timeStamp);		debugValue = newValue; 				// select debug color (follows MEDM standard)		switch (severity)		{			// 0 = no alarm			case 0 :				debugValueColor = Color.WHITE;				break;			// 1 = minor			case 1 :				debugValueColor = Color.YELLOW;				break;			// 2 = major			case 2 :				debugValueColor = Color.RED;				break;			// 3 = invalid			default :				debugValueColor = Color.WHITE; 		}				if (record!=null) record.fieldValueChanged(this);	}}