Exemplo n.º 1
0
        public ComparePeakPickingDlg(SrmDocument document)
        {
            InitializeComponent();

            Icon = Resources.Skyline;

            _axisLabelScaler = new AxisLabelScaler(zedGraphFiles.GraphPane);
            _colors          =
                Settings.Default.ColorSchemes.GetDefaults()
                .First(s => s.Name == Resources.ColorSchemeList_GetDefaults_Distinct)
                .TransitionColors;

            DocumentUiContainer = Program.MainWindow;
            Document            = document;

            _peakBoundaryList    = new ComparePeakBoundariesList();
            _scoreGridViewDriver = new ComparePeakBoundariesGridViewDriver(dataGridViewScore,
                                                                           bindingSourceScore, new SortableBindingList <PeakBoundsMatch>());
            _compareGridViewDriver = new ComparePeakBoundariesPairGridViewDriver(dataGridViewScoreComparison,
                                                                                 bindingSourceScoreCompare, new SortableBindingList <PeakBoundsMatchPair>());

            // Hide borders for better copy-paste images
            zedGraphRoc.MasterPane.Border.IsVisible   = false;
            zedGraphRoc.GraphPane.Border.IsVisible    = false;
            zedGraphQq.MasterPane.Border.IsVisible    = false;
            zedGraphQq.GraphPane.Border.IsVisible     = false;
            zedGraphFiles.MasterPane.Border.IsVisible = false;
            zedGraphFiles.GraphPane.Border.IsVisible  = false;

            // Intialize the y-axis selector combo box
            var yAxisOptions = new[]
            {
                Resources.ComparePeakPickingDlg_ComparePeakPickingDlg_Total_Correct_Peaks,
                Resources.ComparePeakPickingDlg_ComparePeakPickingDlg_Fraction_of_Manual_ID_s,
                Resources.ComparePeakPickingDlg_ComparePeakPickingDlg_Fraction_of_Peak_Groups
            };

            comboBoxYAxis.Items.AddRange(yAxisOptions);
            comboBoxYAxis.SelectedItem = Resources.ComparePeakPickingDlg_ComparePeakPickingDlg_Total_Correct_Peaks;
            comboBoxFilesYAxis.Items.AddRange(yAxisOptions);
            comboBoxFilesYAxis.SelectedItem = Resources.ComparePeakPickingDlg_ComparePeakPickingDlg_Total_Correct_Peaks;

            InitializeGraphPanes();

            checkBoxXRange.Text     = string.Format(checkBoxXRange.Text, Q_VALUE_SIG);
            checkBoxIDLabels.Text   = string.Format(checkBoxIDLabels.Text, Q_VALUE_SIG);
            checkBoxExpectedFp.Text = string.Format(checkBoxExpectedFp.Text, Q_VALUE_SIG);

            textBoxFilesQCutoff.Text = Q_VALUE_SIG.ToString(CultureInfo.CurrentCulture);
            _showFpCutoff            = true;
            _showFpCutoffQ           = true;
            UpdateTextBox();
        }
Exemplo n.º 2
0
        public FoldChangeBarGraph()
        {
            InitializeComponent();
            zedGraphControl.GraphPane.Title.Text                = null;
            zedGraphControl.MasterPane.Border.IsVisible         = false;
            zedGraphControl.GraphPane.Border.IsVisible          = false;
            zedGraphControl.GraphPane.Chart.Border.IsVisible    = false;
            zedGraphControl.GraphPane.XAxis.MajorTic.IsOpposite = false;
            zedGraphControl.GraphPane.YAxis.MajorTic.IsOpposite = false;
            zedGraphControl.GraphPane.XAxis.MinorTic.IsOpposite = false;
            zedGraphControl.GraphPane.YAxis.MinorTic.IsOpposite = false;

            _axisLabelScaler = new AxisLabelScaler(zedGraphControl.GraphPane);
        }
Exemplo n.º 3
0
        public HierarchicalClusterGraph()
        {
            InitializeComponent();
            InitializeDendrograms();
            var graphPane = zedGraphControl1.GraphPane;

            graphPane.Title.IsVisible       = false;
            graphPane.XAxis.Title.IsVisible = false;
            graphPane.YAxis.Title.IsVisible = false;
            graphPane.Legend.IsVisible      = false;
            graphPane.Margin.All            = 0;
            graphPane.Border.IsVisible      = false;

            graphPane.XAxis.MinorTic.Size       = 0;
            graphPane.XAxis.MajorTic.IsOpposite = false;
            graphPane.XAxis.MajorTic.Size       = 2;
            graphPane.YAxis.MinorTic.Size       = 0;
            graphPane.YAxis.MajorTic.IsOpposite = false;
            graphPane.YAxis.MajorTic.Size       = 2;

            graphPane.X2Axis.MinorTic.Size = 0;
            graphPane.X2Axis.MajorTic.Size = 0;
            graphPane.Y2Axis.MinorTic.Size = 0;
            graphPane.Y2Axis.MajorTic.Size = 0;

            graphPane.XAxis.Scale.FontSpec       = GraphSummary.CreateFontSpec(Color.Black);
            graphPane.YAxis.Scale.FontSpec       = GraphSummary.CreateFontSpec(Color.Black);
            graphPane.YAxis.Scale.FontSpec.Angle = 90;

            _xAxisLabelScaler = new AxisLabelScaler(graphPane, graphPane.XAxis)
            {
                IsRepeatRemovalAllowed = true
            };
            _yAxisLabelScaler = new AxisLabelScaler(graphPane, graphPane.YAxis)
            {
                IsRepeatRemovalAllowed = true
            };
        }
Exemplo n.º 4
0
 protected SummaryBarGraphPaneBase(GraphSummary graphSummary)
     : base(graphSummary)
 {
     _axisLabelScaler = new AxisLabelScaler(this);
 }