private void showCurve( int chan ) {
currentColorCurve = chan;
if ( colorCurves[chan] == null ) {
// The curve is not present in current profile
ColorCurve c = colorCurves[chan] = new ColorCurve();
c.addPoint( 0.0, 0.0 );
c.addPoint( 1.0, 1.0 );
}
colorCurvePanel1.setCurve( colorCurves[chan], curveColors[chan] );
colorCurvePanel1.clearReferenceCurves();
if ( refCurves[chan] != null ) {