case 0 : cm = PrimitiveCharts.createCFBarChart( ); break; case 1 : cm = PrimitiveCharts.createCFLineChart( ); break; case 2 : cm = PrimitiveCharts.createCFStockChart( ); break; case 3 : cm = PrimitiveCharts.createCFAreaChart( ); break;
int iSelection = cbType.getSelectionIndex( ); switch ( iSelection ) { case 0 : cm = PrimitiveCharts.createCFBarChart( ); break; case 1 : cm = PrimitiveCharts.createCFLineChart( ); break; case 2 : cm = PrimitiveCharts.createCFStockChart( ); break; case 3 : cm = PrimitiveCharts.createCFAreaChart( ); break; } bNeedsGeneration = true; this.redraw( );
	public void widgetSelected( SelectionEvent e )	{		int iSelection = cb.getSelectionIndex( );		switch ( iSelection )		{			case 0 :				cm = PrimitiveCharts.createCFBarChart( );				break;			case 1 :				cm = PrimitiveCharts.createCFLineChart( );				break;			case 2 :				cm = PrimitiveCharts.createCFStockChart( );				break;			case 3 :				cm = PrimitiveCharts.createCFAreaChart( );				break;		}		ca.redraw( );	}