public GraphFullScan(IDocumentUIContainer documentUIContainer) { InitializeComponent(); graphControl.GraphPane = new HeatMapGraphPane { MinDotRadius = MIN_DOT_RADIUS, MaxDotRadius = MAX_DOT_RADIUS }; Icon = Resources.SkylineData; _graphHelper = GraphHelper.Attach(graphControl); _documentContainer = documentUIContainer; _documentContainer.ListenUI(OnDocumentUIChanged); _msDataFileScanHelper = new MsDataFileScanHelper(SetSpectra, HandleLoadScanException); GraphPane.Title.IsVisible = true; GraphPane.Legend.IsVisible = false; // Make sure to use italics for "m/z" AbstractMSGraphItem.SetAxisText(GraphPane.XAxis, Resources.AbstractMSGraphItem_CustomizeXAxis_MZ); magnifyBtn.Checked = Settings.Default.AutoZoomFullScanGraph; spectrumBtn.Checked = Settings.Default.SumScansFullScan; filterBtn.Checked = Settings.Default.FilterIonMobilityFullScan; spectrumBtn.Visible = false; filterBtn.Visible = false; lblScanId.Visible = false; // you might want to show the scan index for debugging }
public GraphFullScan(IDocumentUIContainer documentUIContainer) { InitializeComponent(); graphControl.GraphPane = new HeatMapGraphPane { MinDotRadius = MIN_DOT_RADIUS, MaxDotRadius = MAX_DOT_RADIUS }; Icon = Resources.SkylineData; _graphHelper = GraphHelper.Attach(graphControl); _documentContainer = documentUIContainer; _documentContainer.ListenUI(OnDocumentUIChanged); _msDataFileScanHelper = new MsDataFileScanHelper(SetSpectra, HandleLoadScanException); GraphPane.Title.IsVisible = true; GraphPane.Legend.IsVisible = false; // Make sure to use italics for "m/z" AbstractMSGraphItem.SetAxisText(GraphPane.XAxis, Resources.AbstractMSGraphItem_CustomizeXAxis_MZ); magnifyBtn.Checked = Settings.Default.AutoZoomFullScanGraph; spectrumBtn.Checked = Settings.Default.SumScansFullScan; filterBtn.Checked = Settings.Default.FilterDriftTimesFullScan; spectrumBtn.Visible = false; filterBtn.Visible = false; lblScanId.Visible = false; // you might want to show the scan index for debugging }
protected override void OnHandleCreated(EventArgs e) { base.OnHandleCreated(e); if (DocumentUIContainer != null) { DocumentUIContainer.ListenUI(OnDocumentChanged); SetDocument(DocumentUIContainer.Document); } }
public GraphSpectrum(IDocumentUIContainer documentUIContainer) { InitializeComponent(); Icon = Resources.SkylineData; _graphHelper = GraphHelper.Attach(graphControl); _documentContainer = documentUIContainer; _documentContainer.ListenUI(OnDocumentUIChanged); _stateProvider = documentUIContainer as IStateProvider ?? new DefaultStateProvider(); if (DocumentUI != null) { ZoomSpectrumToSettings(); } }
public GraphSummary(IDocumentUIContainer documentUIContainer, IController controller) { InitializeComponent(); Icon = Resources.SkylineData; graphControl.MasterPane.Border.IsVisible = false; _controller = controller; _controller.GraphSummary = this; _documentContainer = documentUIContainer; _documentContainer.ListenUI(OnDocumentUIChanged); _stateProvider = documentUIContainer as IStateProvider ?? new DefaultStateProvider(); UpdateUI(); }
public GraphSummary(GraphTypeSummary type, IDocumentUIContainer documentUIContainer, IController controller, int targetResultsIndex, int originalIndex = -1) { _targetResultsIndex = targetResultsIndex; _originalResultsIndex = originalIndex; InitializeComponent(); Icon = Resources.SkylineData; graphControl.MasterPane.Border.IsVisible = false; _controller = controller; _controller.GraphSummary = this; _documentContainer = documentUIContainer; _documentContainer.ListenUI(OnDocumentUIChanged); _stateProvider = documentUIContainer as IStateProvider ?? new DefaultStateProvider(); Type = type; Text = Controller.Text + @" - " + Type.CustomToString(); UpdateUI(); }
public GraphSummary(GraphTypeSummary type, IDocumentUIContainer documentUIContainer, IController controller, int targetResultsIndex, int originalIndex = -1) { _targetResultsIndex = targetResultsIndex; _originalResultsIndex = originalIndex; InitializeComponent(); Icon = Resources.SkylineData; graphControl.MasterPane.Border.IsVisible = false; _controller = controller; _controller.GraphSummary = this; _documentContainer = documentUIContainer; _documentContainer.ListenUI(OnDocumentUIChanged); _stateProvider = documentUIContainer as IStateProvider ?? new DefaultStateProvider(); Type = type; Text = Controller.Text + @" - " + Type.CustomToString(); Helpers.PeptideToMoleculeTextMapper.TranslateForm(this, _documentContainer.Document.DocumentType); // Use terminology like "Molecule Comparison" instead of "Peptide Comparison" as appropriate UpdateUI(); }
public GraphChromatogram(IStateProvider stateProvider, IDocumentUIContainer documentContainer, string name) { InitializeComponent(); graphControl.GraphPane = new MSGraphPane(); _graphHelper = GraphHelper.Attach(graphControl); NameSet = name; Icon = Resources.SkylineData; _nameChromatogramSet = name; _documentContainer = documentContainer; _documentContainer.ListenUI(OnDocumentUIChanged); _stateProvider = stateProvider; // Synchronize the zooming across all graph panes // Note that this only affects applying ZoomState to a graph pane. Explicit changes // to Scale Min/Max properties need to be manually applied to each axis. graphControl.IsSynchronizeXAxes = true; }
protected override void OnHandleCreated(EventArgs e) { base.OnHandleCreated(e); DocumentUiContainer.ListenUI(OnDocumentUIChanged); }