debugValueColor = valField.getDebugValueColor();
switch (valField.getSeverity()) {  case 0 : debugValueColor = Constants.LINE_COLOR; break;  case 1 : debugValueColor = Color.YELLOW; break;  case 2 : debugValueColor = Color.RED; break;  default : debugValueColor = Constants.LINE_COLOR; }
private void validateDebug(VDBFieldData valField){	double scale = getRscale();	int rwidth = (int)(getWidth()*scale);	int rheight = (int)(Constants.RECORD_HEIGHT*scale);	// set appropriate font size	int x0 = (int)(8*scale);		// insets	int y0 = (int)(4*scale);	debugValueColor = valField.getDebugValueColor();	// TODO for timestamp this could be optimized	timestamp = valField.getDebugValueTimeStamp();	timestampFont = FontMetricsBuffer.getInstance().getAppropriateFont(					Constants.DEFAULT_FONT, Font.PLAIN, 					timestamp, rwidth-x0, (rheight-y0)/2-y0);	if (timestampFont!=null) {		FontMetrics fm = FontMetricsBuffer.getInstance().getFontMetrics(timestampFont);		timestampX = (rwidth-fm.stringWidth(timestamp))/2;		timestampY = rheight/2+(rheight/2-fm.getHeight())/2+fm.getAscent();	}	value = valField.getValue();	valueFont = FontMetricsBuffer.getInstance().getAppropriateFont(					Constants.DEFAULT_FONT, Font.PLAIN, 					value, rwidth-x0, rheight/2-y0);	if (valueFont!=null) {		FontMetrics fm = FontMetricsBuffer.getInstance().getFontMetrics(valueFont);		valueX = (rwidth-fm.stringWidth(value))/2;		valueY = (rheight/2-fm.getHeight())/2+fm.getAscent();	}}