btnPalette = new Button( this, SWT.CHECK ); { GridData gd = new GridData( ); gd.horizontalSpan = 2; btnPalette.setLayoutData( gd ); btnPalette.setText( Messages.getString( "DifferenceSeriesAttributeComposite.Lbl.LinePalette" ) ); btnPalette.setSelection( ( (LineSeries) series ).isPaletteLineColor( ) ); btnPalette.addSelectionListener( this ); }
	private void placeComponents( )	{		// Layout for content composite		GridLayout glContent = new GridLayout( 4, false );		glContent.marginHeight = 2;		glContent.marginWidth = 2;		// Main content composite		this.setLayout( glContent );		grpLine1 = new Group( this, SWT.NONE );		{			GridData gdGRPLine = new GridData( GridData.FILL_BOTH );			gdGRPLine.verticalSpan = 5;			grpLine1.setLayout( new FillLayout( ) );			grpLine1.setLayoutData( gdGRPLine );			grpLine1.setText( Messages.getString( "DifferenceSeriesAttributeComposite.Lbl.PositiveLine" ) ); //$NON-NLS-1$		}		liacLine1 = new LineAttributesComposite( grpLine1,				SWT.NONE,				context,				( (DifferenceSeries) series ).getLineAttributes( ),				true,				true,				true );		liacLine1.addListener( this );				grpLine2 = new Group( this, SWT.NONE );		{			GridData gdGRPLine = new GridData( GridData.FILL_BOTH );			gdGRPLine.verticalSpan = 5;			grpLine2.setLayout( new FillLayout( ) );			grpLine2.setLayoutData( gdGRPLine );			grpLine2.setText( Messages.getString( "DifferenceSeriesAttributeComposite.Lbl.NegativeLine" ) ); //$NON-NLS-1$		}		liacLine2 = new LineAttributesComposite( grpLine2,				SWT.NONE,				context,				( (DifferenceSeries) series ).getNegativeLineAttributes( ),				true,				true,				true );		liacLine2.addListener( this );		btnCurve = new Button( this, SWT.CHECK );		{			GridData gd = new GridData( );			gd.horizontalSpan = 2;			btnCurve.setLayoutData( gd );			btnCurve.setText( Messages.getString( "DifferenceSeriesAttributeComposite.Lbl.ShowLinesAsCurves" ) ); //$NON-NLS-1$			btnCurve.setSelection( ( (DifferenceSeries) series ).isCurve( ) );			btnCurve.addSelectionListener( this );		}		enableLineSettings( ( (DifferenceSeries) series ).getLineAttributes( )				.isVisible( )				|| ( (DifferenceSeries) series ).getNegativeLineAttributes( )						.isVisible( ) );	}