getTrendline( ).getLabel( ).getCaption( ).getColor( ) );
getTrendline( ).getLabel( ).getCaption( ).getColor( ), false );
	protected Composite getComponent( Composite parent )	{		cmpContent = new Composite( parent, SWT.NONE );		{			GridLayout glMain = new GridLayout( );			glMain.numColumns = 2;			cmpContent.setLayout( glMain );		}		Composite cmpLeft = new Composite( cmpContent, SWT.NONE );		{			GridLayout gl = new GridLayout( );			gl.numColumns = 2;			cmpLeft.setLayout( gl );			GridData gd = new GridData( GridData.FILL_VERTICAL );			cmpLeft.setLayoutData( gd );		}		lblValue = new Label( cmpLeft, SWT.NONE );		{			GridData gd = new GridData( );			lblValue.setLayoutData( gd );			lblValue.setText( Messages.getString( "SeriesTrendlineSheet.Label.Label" ) + ":" ); //$NON-NLS-1$ //$NON-NLS-2$		}		List keys = null;		if ( serviceprovider != null )		{			keys = serviceprovider.getRegisteredKeys( );		}		txtValue = new ExternalizedTextEditorComposite( cmpLeft,				SWT.BORDER | SWT.SINGLE,				-1,				-1,				keys,				serviceprovider,				getTrendline( ).getLabel( ).getCaption( ).getValue( ) );		{			GridData gd = new GridData( );			gd.widthHint = 125;			txtValue.setLayoutData( gd );			txtValue.addListener( this );		}		lblAnchor = new Label( cmpLeft, SWT.NONE );		GridData gdLBLAnchor = new GridData( );		lblAnchor.setLayoutData( gdLBLAnchor );		lblAnchor.setText( Messages.getString( "BlockAttributeComposite.Lbl.Anchor" ) ); //$NON-NLS-1$		cmbAnchor = new Combo( cmpLeft, SWT.DROP_DOWN | SWT.READ_ONLY );		GridData gdCBAnchor = new GridData( GridData.FILL_HORIZONTAL );		cmbAnchor.setLayoutData( gdCBAnchor );		cmbAnchor.addSelectionListener( this );		// btnTriggers = new Button( cmpLeft, SWT.PUSH );		// GridData gdBTNTriggers = new GridData( );		// gdBTNTriggers.horizontalSpan = 2;		// btnTriggers.setLayoutData( gdBTNTriggers );		// btnTriggers.setText( Messages.getString( "Shared.Lbl.Triggers" ) );		// //$NON-NLS-1$		// btnTriggers.addSelectionListener( this );		Composite cmpRight = new Composite( cmpContent, SWT.NONE );		{			cmpRight.setLayout( new FillLayout( ) );			GridData gd = new GridData( GridData.FILL_HORIZONTAL );			cmpRight.setLayoutData( gd );		}		trendLineText = new LineAttributesComposite( cmpRight,				SWT.NONE,				getTrendline( ).getLineAttributes( ),				true,				true,				false );		trendLineText.addListener( this );		Group cmpLabel = new Group( cmpContent, SWT.NONE );		{			GridLayout gl = new GridLayout( 2, false );			cmpLabel.setLayout( gl );			GridData gd = new GridData( GridData.FILL_HORIZONTAL );			gd.horizontalSpan = 2;			cmpLabel.setLayoutData( gd );			cmpLabel.setText( Messages.getString( "SeriesTrendlineSheet.Label.Label" ) ); //$NON-NLS-1$		}		Composite cmpLabelInner = new Composite( cmpLabel, SWT.NONE );		{			GridLayout gl = new GridLayout( 2, false );			cmpLabelInner.setLayout( gl );			GridData gd = new GridData( GridData.FILL_VERTICAL );			gd.verticalAlignment = SWT.BEGINNING;			cmpLabelInner.setLayoutData( gd );		}		btnVisible = new Button( cmpLabelInner, SWT.CHECK );		GridData gdCBVisible = new GridData( GridData.FILL_HORIZONTAL );		gdCBVisible.horizontalSpan = 2;		btnVisible.setLayoutData( gdCBVisible );		btnVisible.setSelection( getTrendline( ).getLabel( ).isVisible( ) );		btnVisible.setText( Messages.getString( "LabelAttributesComposite.Lbl.IsVisible" ) ); //$NON-NLS-1$		btnVisible.addSelectionListener( this );		// lblPosition = new Label( cmpLabelInner, SWT.NONE );		// GridData gdLBLPosition = new GridData( );		// lblPosition.setLayoutData( gdLBLPosition );		// lblPosition.setText( Messages.getString(		// "LabelAttributesComposite.Lbl.Position" ) ); //$NON-NLS-1$		//		// cmbPosition = new Combo( cmpLabelInner, SWT.DROP_DOWN | SWT.READ_ONLY		// );		// GridData gdCMBPosition = new GridData( GridData.FILL_BOTH );		// cmbPosition.setLayoutData( gdCMBPosition );		// cmbPosition.addSelectionListener( this );		lblFont = new Label( cmpLabelInner, SWT.NONE );		GridData gdLFont = new GridData( );		lblFont.setLayoutData( gdLFont );		lblFont.setText( Messages.getString( "LabelAttributesComposite.Lbl.Font" ) ); //$NON-NLS-1$		fdcFont = new FontDefinitionComposite( cmpLabelInner,				SWT.NONE,				getTrendline( ).getLabel( ).getCaption( ).getFont( ),				getTrendline( ).getLabel( ).getCaption( ).getColor( ) );		GridData gdFDCFont = new GridData( GridData.FILL_BOTH );		gdFDCFont.heightHint = fdcFont.getPreferredSize( ).y;		gdFDCFont.widthHint = 96;		gdFDCFont.grabExcessVerticalSpace = false;		fdcFont.setLayoutData( gdFDCFont );		fdcFont.addListener( this );		lblFill = new Label( cmpLabelInner, SWT.NONE );		GridData gdLFill = new GridData( );		lblFill.setLayoutData( gdLFill );		lblFill.setText( Messages.getString( "LabelAttributesComposite.Lbl.Background" ) ); //$NON-NLS-1$		fccBackground = new FillChooserComposite( cmpLabelInner,				SWT.NONE,				getTrendline( ).getLabel( ).getBackground( ),				false,				false );		GridData gdFCCBackground = new GridData( GridData.FILL_BOTH );		gdFCCBackground.heightHint = fccBackground.getPreferredSize( ).y;		fccBackground.setLayoutData( gdFCCBackground );		fccBackground.addListener( this );		lblShadow = new Label( cmpLabelInner, SWT.NONE );		GridData gdLBLShadow = new GridData( );		lblShadow.setLayoutData( gdLBLShadow );		lblShadow.setText( Messages.getString( "LabelAttributesComposite.Lbl.Shadow" ) ); //$NON-NLS-1$		fccShadow = new FillChooserComposite( cmpLabelInner,				SWT.NONE,				getTrendline( ).getLabel( ).getShadowColor( ),				false,				false );		GridData gdFCCShadow = new GridData( GridData.FILL_BOTH );		fccShadow.setLayoutData( gdFCCShadow );		fccShadow.addListener( this );		Group grpOutline = new Group( cmpLabel, SWT.NONE );		grpOutline.setLayoutData( new GridData( GridData.FILL_HORIZONTAL ) );		grpOutline.setLayout( new FillLayout( ) );		grpOutline.setText( Messages.getString( "SeriesTrendlineSheet.Label.Outline" ) ); //$NON-NLS-1$		outlineText = new LineAttributesComposite( grpOutline,				SWT.NONE,				getTrendline( ).getLabel( ).getOutline( ),				true,				true,				true );		outlineText.addListener( this );		icLabel = new InsetsComposite( cmpLabel,				SWT.NONE,				1,				getTrendline( ).getLabel( ).getInsets( ),				chart.getUnits( ),				serviceprovider );		GridData gdICBlock = new GridData( GridData.FILL_HORIZONTAL );		gdICBlock.horizontalSpan = 2;		icLabel.setLayoutData( gdICBlock );		icLabel.addListener( this );		populateLists( );		setState( btnVisible.getSelection( ) );		return cmpContent;	}