Пример #1
0
 public ScatterPlotViewer()
 {
     bottomAxis = new NumericAxisView();
     leftAxis = new NumericAxisView();
     topAxis = new NumericAxisView();
     rightAxis = new NumericAxisView();
     scatterPlotPlane = new ScatterPlotPlaneView();
     spacer1 = new BasicView();
     spacer2 = new BasicView();
     spacer3 = new BasicView();
     spacer4 = new BasicView();
     spacer1.BackColor = Color.White;
     spacer2.BackColor = Color.White;
     spacer3.BackColor = Color.White;
     spacer4.BackColor = Color.White;
     tableLayoutView = new BasicTableLayoutView();
     InitializeComponent();
     tableLayoutView.Add(spacer1, 0, 0);
     tableLayoutView.Add(spacer2, 0, 2);
     tableLayoutView.Add(spacer3, 2, 0);
     tableLayoutView.Add(spacer4, 2, 2);
     tableLayoutView.Add(scatterPlotPlane, 1, 1);
     tableLayoutView.Add(bottomAxis, 1, 2);
     tableLayoutView.Add(leftAxis, 0, 1);
     tableLayoutView.Add(topAxis, 1, 0);
     tableLayoutView.Add(rightAxis, 2, 1);
     tableLayoutView.BackColor = Color.Transparent;
     tableLayoutView.ColumnStyles.Add(new BasicColumnStyle(BasicSizeType.Absolute, 37F));
     tableLayoutView.ColumnStyles.Add(new BasicColumnStyle(BasicSizeType.Percent, 100F));
     tableLayoutView.ColumnStyles.Add(new BasicColumnStyle(BasicSizeType.Absolute, 37F));
     tableLayoutView.RowStyles.Add(new BasicRowStyle(BasicSizeType.Absolute, 37F));
     tableLayoutView.RowStyles.Add(new BasicRowStyle(BasicSizeType.Percent, 100F));
     tableLayoutView.RowStyles.Add(new BasicRowStyle(BasicSizeType.Absolute, 37F));
     tableLayoutControl = tableLayoutView.CreateControl();
     Controls.Add(tableLayoutControl);
     Controls.Add(toolStrip1);
     scatterPlotPlane.BackColor = Color.White;
     scatterPlotPlane.ForeColor = SystemColors.HotTrack;
     scatterPlotPlane.IndicatorColor = Color.Transparent;
     scatterPlotPlane.MouseMode = ScatterPlotMouseMode.Zoom;
     bottomAxis.Configurable = true;
     bottomAxis.Positioning = AxisPositioning.Bottom;
     bottomAxis.Reverse = false;
     bottomAxis.ZoomType = AxisZoomType.Zoom;
     leftAxis.Configurable = true;
     leftAxis.Positioning = AxisPositioning.Left;
     leftAxis.Reverse = true;
     leftAxis.ZoomType = AxisZoomType.Zoom;
     topAxis.Configurable = false;
     topAxis.Positioning = AxisPositioning.Top;
     topAxis.Reverse = false;
     topAxis.ZoomType = AxisZoomType.Indicate;
     rightAxis.Configurable = false;
     rightAxis.Positioning = AxisPositioning.Right;
     rightAxis.Reverse = true;
     rightAxis.ZoomType = AxisZoomType.Indicate;
     topAxis.OnZoomChange += UpdateZoomBottom;
     bottomAxis.OnZoomChange += UpdateZoomTop;
     rightAxis.OnZoomChange += UpdateZoomRight;
     leftAxis.OnZoomChange += UpdateZoomLeft;
     scatterPlotPlane.OnZoomChange += UpdateZoomFromMap;
     bottomAxis.BackColor = Color.White;
     bottomAxis.Font = new Font("Lucida Sans Unicode", 8F, FontStyle.Regular, GraphicsUnit.Point, 0);
     bottomAxis.ForeColor = Color.Black;
     leftAxis.BackColor = Color.White;
     leftAxis.Font = new Font("Lucida Sans Unicode", 8F, FontStyle.Regular, GraphicsUnit.Point, 0);
     leftAxis.ForeColor = Color.Black;
     topAxis.BackColor = Color.White;
     topAxis.Font = new Font("Lucida Sans Unicode", 8F, FontStyle.Regular, GraphicsUnit.Point, 0);
     topAxis.ForeColor = Color.Black;
     rightAxis.BackColor = Color.White;
     rightAxis.Font = new Font("Lucida Sans Unicode", 8F, FontStyle.Regular, GraphicsUnit.Point, 0);
     rightAxis.ForeColor = Color.Black;
 }
Пример #2
0
 public ScatterPlotViewer()
 {
     bottomAxis        = new NumericAxisView();
     leftAxis          = new NumericAxisView();
     topAxis           = new NumericAxisView();
     rightAxis         = new NumericAxisView();
     scatterPlotPlane  = new ScatterPlotPlaneView();
     spacer1           = new BasicView();
     spacer2           = new BasicView();
     spacer3           = new BasicView();
     spacer4           = new BasicView();
     spacer1.BackColor = Color.White;
     spacer2.BackColor = Color.White;
     spacer3.BackColor = Color.White;
     spacer4.BackColor = Color.White;
     tableLayoutView   = new BasicTableLayoutView();
     InitializeComponent();
     tableLayoutView.Add(spacer1, 0, 0);
     tableLayoutView.Add(spacer2, 0, 2);
     tableLayoutView.Add(spacer3, 2, 0);
     tableLayoutView.Add(spacer4, 2, 2);
     tableLayoutView.Add(scatterPlotPlane, 1, 1);
     tableLayoutView.Add(bottomAxis, 1, 2);
     tableLayoutView.Add(leftAxis, 0, 1);
     tableLayoutView.Add(topAxis, 1, 0);
     tableLayoutView.Add(rightAxis, 2, 1);
     tableLayoutView.BackColor = Color.Transparent;
     tableLayoutView.ColumnStyles.Add(new BasicColumnStyle(BasicSizeType.Absolute, 37F));
     tableLayoutView.ColumnStyles.Add(new BasicColumnStyle(BasicSizeType.Percent, 100F));
     tableLayoutView.ColumnStyles.Add(new BasicColumnStyle(BasicSizeType.Absolute, 37F));
     tableLayoutView.RowStyles.Add(new BasicRowStyle(BasicSizeType.Absolute, 37F));
     tableLayoutView.RowStyles.Add(new BasicRowStyle(BasicSizeType.Percent, 100F));
     tableLayoutView.RowStyles.Add(new BasicRowStyle(BasicSizeType.Absolute, 37F));
     tableLayoutControl = tableLayoutView.CreateControl();
     Controls.Add(tableLayoutControl);
     Controls.Add(toolStrip1);
     scatterPlotPlane.BackColor      = Color.White;
     scatterPlotPlane.ForeColor      = SystemColors.HotTrack;
     scatterPlotPlane.IndicatorColor = Color.Transparent;
     scatterPlotPlane.MouseMode      = ScatterPlotMouseMode.Zoom;
     bottomAxis.Configurable         = true;
     bottomAxis.Positioning          = AxisPositioning.Bottom;
     bottomAxis.Reverse             = false;
     bottomAxis.ZoomType            = AxisZoomType.Zoom;
     leftAxis.Configurable          = true;
     leftAxis.Positioning           = AxisPositioning.Left;
     leftAxis.Reverse               = true;
     leftAxis.ZoomType              = AxisZoomType.Zoom;
     topAxis.Configurable           = false;
     topAxis.Positioning            = AxisPositioning.Top;
     topAxis.Reverse                = false;
     topAxis.ZoomType               = AxisZoomType.Indicate;
     rightAxis.Configurable         = false;
     rightAxis.Positioning          = AxisPositioning.Right;
     rightAxis.Reverse              = true;
     rightAxis.ZoomType             = AxisZoomType.Indicate;
     topAxis.OnZoomChange          += UpdateZoomBottom;
     bottomAxis.OnZoomChange       += UpdateZoomTop;
     rightAxis.OnZoomChange        += UpdateZoomRight;
     leftAxis.OnZoomChange         += UpdateZoomLeft;
     scatterPlotPlane.OnZoomChange += UpdateZoomFromMap;
     bottomAxis.BackColor           = Color.White;
     bottomAxis.Font                = new Font("Lucida Sans Unicode", 8F, FontStyle.Regular, GraphicsUnit.Point, 0);
     bottomAxis.ForeColor           = Color.Black;
     leftAxis.BackColor             = Color.White;
     leftAxis.Font       = new Font("Lucida Sans Unicode", 8F, FontStyle.Regular, GraphicsUnit.Point, 0);
     leftAxis.ForeColor  = Color.Black;
     topAxis.BackColor   = Color.White;
     topAxis.Font        = new Font("Lucida Sans Unicode", 8F, FontStyle.Regular, GraphicsUnit.Point, 0);
     topAxis.ForeColor   = Color.Black;
     rightAxis.BackColor = Color.White;
     rightAxis.Font      = new Font("Lucida Sans Unicode", 8F, FontStyle.Regular, GraphicsUnit.Point, 0);
     rightAxis.ForeColor = Color.Black;
 }