int index = 1; for ( Iterator iterator = seriesDefn.iterator( ); iterator.hasNext( ); index++ ) { if ( seriesDefn.size( ) == 1 ) {  index = 0; } createRightAxisArea( cmpGroup, index, ( (SeriesDefinition) iterator.next( ) ) ); }
ISelectDataComponent subUI = selectDataUI.getAreaComponent( ISelectDataCustomizeUI.GROUPING_SERIES, ( (SeriesDefinition) seriesDefn.get( selectedSeriesIndex ) ), serviceprovider, oContext, sTitle ); subUI.createArea( cmpGroup ); components.add( subUI );
			public Composite createArea( Composite parent )			{				cmpGroup = ChartUIUtil.createCompositeWrapper( parent );				lblRightYGrouping = new Label( cmpGroup, SWT.WRAP );				{					GridData gd = new GridData( );					gd.widthHint = 100;					lblRightYGrouping.setLayoutData( gd );					lblRightYGrouping.setText( label );				}				if ( seriesDefn != null && !seriesDefn.isEmpty( ) )				{					int index = 1;					for ( Iterator iterator = seriesDefn.iterator( ); iterator.hasNext( ); index++ )					{						if ( seriesDefn.size( ) == 1 )						{							// Remove the title when only single series							index = 0;						}						createRightAxisArea( cmpGroup,								index,								( (SeriesDefinition) iterator.next( ) ) );					}				}				return cmpGroup;			}