popup = new SeriesPaletteSheet( Messages.getString( "SeriesXSheetImpl.Label.SeriesPalette" ), getContext( ), getSeriesDefinitionForProcessing( ) ); Button btnPalette = createToggleButton( cmp, Messages.getString( "SeriesXSheetImpl.Label.SeriesPalette&" ), popup ); btnPalette.addSelectionListener( this );
	private void createButtonGroup( Composite parent )	{		Composite cmp = new Composite( parent, SWT.NONE );		{			cmp.setLayout( new GridLayout( 6, false ) );			GridData gridData = new GridData( GridData.FILL_HORIZONTAL );			gridData.horizontalSpan = 2;			gridData.grabExcessVerticalSpace = true;			gridData.verticalAlignment = SWT.END;			cmp.setLayoutData( gridData );		}		// For Meter series and other non-Stock series		ITaskPopupSheet popup;				if ( isMeterSeries( ) )		{			// Label			popup = new DialLabelSheet( Messages.getString( "SeriesYSheetImpl.Label.Labels" ), //$NON-NLS-1$					getContext( ),					getSeriesDefinitionForProcessing( ) );			Button btnDialLabel = createToggleButton( cmp,					Messages.getString( "SeriesYSheetImpl.Label.Labels&" ), //$NON-NLS-1$					popup );			btnDialLabel.addSelectionListener( this );			// Region			popup = new SeriesRegionSheet( Messages.getString( "SeriesYSheetImpl.Label.Region" ), //$NON-NLS-1$					getContext( ),					getSeriesDefinitionForProcessing( ) );			Button btnDialRegion = createToggleButton( cmp,					Messages.getString( "SeriesYSheetImpl.Label.Region&" ), //$NON-NLS-1$					popup );			btnDialRegion.addSelectionListener( this );			// Ticks			popup = new DialTickSheet( Messages.getString( "DialTicksDialog.Title.DialTicks" ), //$NON-NLS-1$					getContext( ),					( (DialSeries) getSeriesDefinitionForProcessing( ).getDesignTimeSeries( ) ) );			Button btnDialTicks = createToggleButton( cmp,					Messages.getString( "MeterSeriesAttributeComposite.Lbl.DialTicks" ), //$NON-NLS-1$					popup );			btnDialTicks.addSelectionListener( this );			// Scale			popup = new DialScaleSheet( Messages.getString( "DialScaleDialog.Title.DialScale" ), //$NON-NLS-1$					getContext( ),					( (DialSeries) getSeriesDefinitionForProcessing( ).getDesignTimeSeries( ) ) );			Button btnDialScale = createToggleButton( cmp,					Messages.getString( "MeterSeriesAttributeComposite.Lbl.DialScale" ), //$NON-NLS-1$					popup );			btnDialScale.addSelectionListener( this );		}		else		{			// Label			popup = new SeriesLabelSheet( Messages.getString( "SeriesYSheetImpl.Label.Labels" ), //$NON-NLS-1$					getContext( ),					getSeriesDefinitionForProcessing( ) );			Button btnLabel = createToggleButton( cmp,					Messages.getString( "SeriesYSheetImpl.Label.Labels&" ), //$NON-NLS-1$					popup );			btnLabel.addSelectionListener( this );		}		// Titles for Pie series		if ( getSeriesDefinitionForProcessing( ).getDesignTimeSeries( ) instanceof PieSeries )		{			popup = new PieTitleSheet( Messages.getString( "SeriesYSheetImpl.Label.Titles" ), //$NON-NLS-1$					getContext( ),					getSeriesDefinitionForProcessing( ) );			Button btnPieTitle = createToggleButton( cmp,					Messages.getString( "SeriesYSheetImpl.Label.Titles&" ), //$NON-NLS-1$					popup );			btnPieTitle.addSelectionListener( this );		}		// Markers for Line/Area/Scatter series		if ( getSeriesDefinitionForProcessing( ).getDesignTimeSeries( ) instanceof LineSeries				&& !isDifferenceSeries( ) )		{			popup = new LineSeriesMarkerSheet( Messages.getString( "SeriesYSheetImpl.Label.Markers" ), //$NON-NLS-1$					getContext( ),					(LineSeries) getSeriesDefinitionForProcessing( ).getDesignTimeSeries( ) );			Button btnLineMarker = createToggleButton( cmp,					Messages.getString( "SeriesYSheetImpl.Label.Markers&" ), //$NON-NLS-1$					popup );			btnLineMarker.addSelectionListener( this );		}		// Markers for Difference series		if ( isDifferenceSeries( ) )		{			popup = new LineSeriesMarkerSheet( Messages.getString( "SeriesYSheetImpl.Label.PositiveMarkers" ), //$NON-NLS-1$					getContext( ),					(DifferenceSeries) getSeriesDefinitionForProcessing( ).getDesignTimeSeries( ),					true );			Button btnPLineMarker = createToggleButton( cmp,					Messages.getString( "SeriesYSheetImpl.Label.PositiveMarkers&" ), //$NON-NLS-1$					popup );			btnPLineMarker.addSelectionListener( this );			popup = new LineSeriesMarkerSheet( Messages.getString( "SeriesYSheetImpl.Label.NegativeMarkers" ), //$NON-NLS-1$					getContext( ),					(DifferenceSeries) getSeriesDefinitionForProcessing( ).getDesignTimeSeries( ),					false );			Button btnNLineMarker = createToggleButton( cmp,					Messages.getString( "SeriesYSheetImpl.Label.NegativeMarkers&" ), //$NON-NLS-1$					popup );			btnNLineMarker.addSelectionListener( this );		}		// Decoration Label for Gantt series		if ( getSeriesDefinitionForProcessing( ).getDesignTimeSeries( ) instanceof GanttSeries )		{			popup = new DecorationSheet( Messages.getString( "SeriesYSheetImpl.Label.Decoration" ), //$NON-NLS-1$					getContext( ),					(GanttSeries) getSeriesDefinitionForProcessing( ).getDesignTimeSeries( ) );			Button btnDecoration = createToggleButton( cmp,					Messages.getString( "SeriesYSheetImpl.Label.Decoration&" ), //$NON-NLS-1$					popup );			btnDecoration.addSelectionListener( this );		}		// Trendline		if ( isTrendlineAvailable( ) )		{			popup = new SeriesTrendlineSheet( Messages.getString( "SeriesYSheetImpl.Label.Trendline" ), //$NON-NLS-1$					getContext( ),					getSeriesDefinitionForProcessing( ) );			btnTrendline = createToggleButton( cmp,					Messages.getString( "SeriesYSheetImpl.Label.Trendline&" ), //$NON-NLS-1$					popup );			btnTrendline.addSelectionListener( this );			btnTrendline.setEnabled( btnShowLine.getSelection( ) );		}		// SeriesPalette		popup = new SeriesPaletteSheet( Messages.getString( "SeriesXSheetImpl.Label.SeriesPalette" ), //$NON-NLS-1$				getContext( ),				getSeriesDefinitionForProcessing( ) );		Button btnPalette = createToggleButton( cmp,				Messages.getString( "SeriesXSheetImpl.Label.SeriesPalette&" ), //$NON-NLS-1$				popup );		btnPalette.addSelectionListener( this );		// Interactivity		popup = new InteractivitySheet( Messages.getString( "SeriesYSheetImpl.Label.Interactivity" ), //$NON-NLS-1$				getContext( ),				getSeriesDefinitionForProcessing( ).getDesignTimeSeries( )						.getTriggers( ),				true,				false );		Button btnInteractivity = createToggleButton( cmp,				Messages.getString( "SeriesYSheetImpl.Label.Interactivity&" ), //$NON-NLS-1$				popup );		btnInteractivity.addSelectionListener( this );		btnInteractivity.setEnabled( getChart( ).getInteractivity( ).isEnable( ) );	}