private void InitializeComponent2()
 {
     tableLayoutPanel1 = new BasicTableLayoutView();
     tableLayoutPanel2 = new BasicTableLayoutView();
     mainView = new ScrollableControlMainView(this);
     rowHeaderView = new ScrollableControlRowHeaderView(this);
     rowFooterView = new ScrollableControlRowFooterView(this);
     rowSpacerView = new ScrollableControlRowSpacerView(this);
     columnHeaderView = new ScrollableControlColumnHeaderView(this);
     columnFooterView = new ScrollableControlColumnFooterView(this);
     columnSpacerView = new ScrollableControlColumnSpacerView(this);
     horizontalScrollBarView = new HorizontalScrollBarView(this);
     verticalScrollBarView = new VerticalScrollBarView(this);
     cornerView = new ScrollableControlCornerView(this);
     middleCornerView = new ScrollableControlMiddleCornerView(this);
     smallCornerView = new ScrollableControlSmallCornerView();
     SuspendLayout();
     tableLayoutPanel1.ColumnStyles.Add(new BasicColumnStyle(BasicSizeType.Percent, 100F));
     tableLayoutPanel1.ColumnStyles.Add(new BasicColumnStyle(BasicSizeType.Absolute, scrollBarWidth));
     tableLayoutPanel1.Add(tableLayoutPanel2, 0, 0);
     tableLayoutPanel1.Add(horizontalScrollBarView, 0, 1);
     tableLayoutPanel1.Add(verticalScrollBarView, 1, 0);
     tableLayoutPanel1.Add(smallCornerView, 1, 1);
     tableLayoutPanel1.RowStyles.Add(new BasicRowStyle(BasicSizeType.Percent, 100F));
     tableLayoutPanel1.RowStyles.Add(new BasicRowStyle(BasicSizeType.Absolute, scrollBarWidth));
     tableLayoutPanel2.ColumnStyles.Add(new BasicColumnStyle(BasicSizeType.AbsoluteResizeable, rowHeaderWidth));
     tableLayoutPanel2.ColumnStyles.Add(new BasicColumnStyle(BasicSizeType.Percent, 100F));
     tableLayoutPanel2.ColumnStyles.Add(new BasicColumnStyle(BasicSizeType.AbsoluteResizeable, rowFooterWidth));
     tableLayoutPanel2.Add(mainView, 1, 1);
     tableLayoutPanel2.Add(rowHeaderView, 0, 1);
     tableLayoutPanel2.Add(rowFooterView, 2, 1);
     tableLayoutPanel2.Add(rowSpacerView, 0, 2);
     tableLayoutPanel2.Add(columnHeaderView, 1, 0);
     tableLayoutPanel2.Add(columnFooterView, 1, 2);
     tableLayoutPanel2.Add(columnSpacerView, 2, 0);
     tableLayoutPanel2.Add(cornerView, 0, 0);
     tableLayoutPanel2.Add(middleCornerView, 2, 2);
     tableLayoutPanel2.RowStyles.Add(new BasicRowStyle(BasicSizeType.AbsoluteResizeable, columnHeaderHeight));
     tableLayoutPanel2.RowStyles.Add(new BasicRowStyle(BasicSizeType.Percent, 100F));
     tableLayoutPanel2.RowStyles.Add(new BasicRowStyle(BasicSizeType.AbsoluteResizeable, columnFooterHeight));
     AutoScaleDimensions = new SizeF(6F, 13F);
     AutoScaleMode = AutoScaleMode.Font;
     tableLayoutControl = tableLayoutPanel1.CreateControl();
     Controls.Add(tableLayoutControl);
     Name = "ScrollableControl2";
     Size = new Size(409, 390);
     ResumeLayout(false);
 }
예제 #2
0
 internal BasicRowStyles(BasicTableLayoutView view)
 {
     this.view = view;
 }
예제 #3
0
 internal BasicColumnStyles(BasicTableLayoutView view)
 {
     this.view = view;
 }
예제 #4
0
 internal BasicRowStyles(BasicTableLayoutView view)
 {
     this.view = view;
 }
예제 #5
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;
 }
예제 #6
0
 internal BasicColumnStyles(BasicTableLayoutView view)
 {
     this.view = view;
 }