if ( series instanceof BarSeries ) { scatterseries.getLineAttributes( ) .setColor( ( (BarSeries) series ).getRiserOutline( ) ); } else if ( series instanceof PieSeries ) { scatterseries.getLineAttributes( ) .setColor( ( (PieSeries) series ).getSliceOutline( ) ); } else if ( series instanceof StockSeries ) { scatterseries.getLineAttributes( ) .setColor( ( (StockSeries) series ).getLineAttributes( ) .getColor( ) ); }  if ( scatterseries.getLineAttributes( ).getColor( ) == null ) { scatterseries.getLineAttributes( ) .setColor( ColorDefinitionImpl.BLACK( ) ); }
	private Series getConvertedSeries( Series series )	{		// Do not convert base series		if ( series.getClass( )				.getName( )				.equals( "org.eclipse.birt.chart.model.component.impl.SeriesImpl" ) ) //$NON-NLS-1$		{			return series;		}		ScatterSeries scatterseries = (ScatterSeries) ScatterSeriesImpl.create( );		scatterseries.getLineAttributes( ).setVisible( false );		if ( series instanceof LineSeries )		{			scatterseries.getMarkers( )					.addAll( ( (LineSeries) series ).getMarkers( ) );		}		else if ( series instanceof BarSeries				|| series instanceof PieSeries				|| series instanceof StockSeries )		{			// Use the default marker		}		else		{			scatterseries.getMarkers( ).clear( );			Marker marker = AttributeFactory.eINSTANCE.createMarker( );			marker.setSize( 5 );			marker.setType( MarkerType.BOX_LITERAL );			marker.setVisible( true );			scatterseries.getMarkers( ).add( marker );		}		// Copy generic series properties		ChartUIUtil.copyGeneralSeriesAttributes( series, scatterseries );		// Copy series specific properties		if ( series instanceof BarSeries )		{			scatterseries.getLineAttributes( )					.setColor( ( (BarSeries) series ).getRiserOutline( ) );		}		else if ( series instanceof PieSeries )		{			scatterseries.getLineAttributes( )					.setColor( ( (PieSeries) series ).getSliceOutline( ) );		}		else if ( series instanceof StockSeries )		{			scatterseries.getLineAttributes( )					.setColor( ( (StockSeries) series ).getLineAttributes( )							.getColor( ) );		}		if ( scatterseries.getLineAttributes( ).getColor( ) == null )		{			scatterseries.getLineAttributes( )					.setColor( ColorDefinitionImpl.BLACK( ) );		}		return scatterseries;	}