elPaletteEntries.remove( iIndex );
int size = elPaletteEntries1.size( ); elPaletteEntries1.remove( iIndex );  if ( vSeriesDefns != null ) { for ( int i = 0; i < vSeriesDefns.length; i++ ) { EList el = vSeriesDefns[i].getSeriesPalette( ).getEntries( ); if ( ( iIndex - i ) >= 0 ) { el.remove( iIndex - i ); } else { int index = size - i + iIndex; while ( index < 0 ) { index += size; } el.remove( index ); if ( el.size( ) > 1 ) { final Object o = el.get( 0 ); el.remove( 0 ); el.add( o ); } } } }
	public final void remove( int iIndex )	{		if ( iIndex < 0 || iIndex >= elPaletteEntries.size( ) )		{			return;		}		elPaletteEntries.remove( iIndex );		if ( iIndex < iSelectedIndex )		{			iSelectedIndex--;		}		else if ( iIndex == iSelectedIndex )		{			if ( iSelectedIndex > elPaletteEntries.size( ) - 1 )			{				iSelectedIndex--;			}		}		if ( elPaletteEntries.isEmpty( ) )		{			iSelectedIndex = -1;			sb.setEnabled( false );		}		scrollToView( iSelectedIndex );		coPaletteEntries.redraw( );	}