case 0 : cm = PrimitiveCharts.create3DBarChart( ); break; case 1 : cm = PrimitiveCharts.create3DLineChart( ); break; case 2 : cm = PrimitiveCharts.create3DAreaChart( ); break;
int iSelection = cbType.getSelectionIndex( ); switch ( iSelection ) { case 0 : cm = PrimitiveCharts.create3DBarChart( ); break; case 1 : cm = PrimitiveCharts.create3DLineChart( ); break; case 2 : cm = PrimitiveCharts.create3DAreaChart( ); break; } bNeedsGeneration = true; this.redraw( );
	public void widgetSelected( SelectionEvent e )	{		int iSelection = cb.getSelectionIndex( );		switch ( iSelection )		{			case 0 :				cm = PrimitiveCharts.create3DBarChart( );				break;			case 1 :				cm = PrimitiveCharts.create3DLineChart( );				break;			case 2 :				cm = PrimitiveCharts.create3DAreaChart( );				break;		}		ca.redraw( );	}