if ( axisIndex >= 0 ) { return ( (Axis) axisList.get( axisIndex ) ).getSeriesDefinitions( ); }  List seriesList = new ArrayList( ); for ( int i = 0; i < axisList.size( ); i++ ) { seriesList.addAll( ( (Axis) axisList.get( i ) ).getSeriesDefinitions( ) ); } return seriesList;
return ( (Axis) axisList.get( axisIndex ) ).getSeriesDefinitions( );
	public static List getOrthogonalSeriesDefinitions( Chart chart,			int axisIndex )	{		if ( chart instanceof ChartWithAxes )		{			EList axisList = ( (Axis) ( (ChartWithAxes) chart ).getAxes( )					.get( 0 ) ).getAssociatedAxes( );			if ( axisIndex >= 0 )			{				return ( (Axis) axisList.get( axisIndex ) ).getSeriesDefinitions( );			}			List seriesList = new ArrayList( );			for ( int i = 0; i < axisList.size( ); i++ )			{				seriesList.addAll( ( (Axis) axisList.get( i ) ).getSeriesDefinitions( ) );			}			return seriesList;		}		else if ( chart instanceof ChartWithoutAxes )		{			return ( (SeriesDefinition) ( (ChartWithoutAxes) chart ).getSeriesDefinitions( )					.get( 0 ) ).getSeriesDefinitions( );		}		return null;	}