break; case 9 : cm = PrimitiveCharts.openChart( );
		public void actionPerformed( ActionEvent e )		{			int i = jcbModels.getSelectedIndex( );			cm = null;			switch ( i )			{				case 0 :					cm = PrimitiveCharts.createBarChart( );					break;				case 1 :					cm = PrimitiveCharts.createMultiBarChart( );					break;				case 2 :					cm = PrimitiveCharts.createPieChart( );					break;				case 3 :					cm = PrimitiveCharts.createMultiPieChart( );					break;				case 4 :					cm = PrimitiveCharts.createLineChart( );					break;				case 5 :					cm = PrimitiveCharts.createStackedChart( );					break;				case 6 :					cm = PrimitiveCharts.createScatterChart( );					break;				case 7 :					cm = PrimitiveCharts.createStockChart( );					break;				case 8 :					cm = PrimitiveCharts.createAreaChart( );					break;			}			if ( cm instanceof ChartWithAxes )			{				jcbTransposed.setEnabled( true );				jcbLogarithmic.setEnabled( true );				jcbPercent.setEnabled( true );				ChartWithAxes cwa = ( (ChartWithAxes) cm );				cwa.setTransposed( jcbTransposed.isSelected( ) );				Axis ax = cwa.getPrimaryOrthogonalAxis( cwa.getPrimaryBaseAxes( )[0] );				if ( jcbLogarithmic.isSelected( ) )				{					if ( ax.getType( ) == AxisType.LINEAR_LITERAL )					{						ax.setType( AxisType.LOGARITHMIC_LITERAL );					}				}				else				{					if ( ax.getType( ) == AxisType.LOGARITHMIC_LITERAL )					{						ax.setType( AxisType.LINEAR_LITERAL );					}				}				if ( jcbPercent.isSelected( ) == true )				{					ax.setFormatSpecifier( JavaNumberFormatSpecifierImpl.create( "0'%'" ) );//$NON-NLS-1$				}				else				{					ax.setFormatSpecifier( null );				}			}			else if ( cm instanceof ChartWithoutAxes )			{				jcbTransposed.setEnabled( false );				jcbLogarithmic.setEnabled( false );				jcbPercent.setEnabled( false );			}			if ( jcbModels.getSelectedIndex( ) == 7 )			{				cm.setDimension( ChartDimension.TWO_DIMENSIONAL_LITERAL );			}			else			{				switch ( jcbDimensions.getSelectedIndex( ) )				{					case 0 :						cm.setDimension( ChartDimension.TWO_DIMENSIONAL_LITERAL );						break;					case 1 :						cm.setDimension( ChartDimension.TWO_DIMENSIONAL_WITH_DEPTH_LITERAL );						break;				}			}			bNeedsGeneration = true;			scv.repaint( );		}