Example #1
0
 /// <summary>
 /// Sets the text around plotting area.
 /// </summary>
 /// <param name="radius"></param>
 /// <param name="title"></param>
 public void SetXY(int radius, string title)
 {
     this.Radius                 = radius;
     this.lblTitle.Text          = title;
     this.Cartesian              = new CoViD.GUI.UC.Cartesian(this.pctDrawingGrid, -radius, radius, -radius, radius);
     this.lblResolution.Text     = this.Cartesian.ResolutionX.ToString("#,##0.00");
     this.Cartesian.Coordinates += Cartesian_Coordinates;
 }
Example #2
0
        /// <summary>
        /// Initialize the Diagram.
        /// </summary>
        /// <param name="xMin">The min value for the x axis.</param>
        /// <param name="xMax">The max value for the x axis.</param>
        /// <param name="textXMin">The text to show for the min value for the x axis.</param>
        /// <param name="textXMax">The text to show for the max value for the x axis.</param>
        /// <param name="labelX">The text for the x axis</param>
        /// <param name="yMin">The min value for the y axis.</param>
        /// <param name="yMax">The max value for the x axis.</param>
        /// <param name="textYMin">The text to show for the min value for the y axis.</param>
        /// <param name="textYMax">The text to show for the max value for the y axis.</param>
        /// <param name="labelY">The text for the y axis</param>
        public void SetXY(
            float xMin, float xMax, string textXMin, string textXMax, string labelX,
            float yMin, float yMax, string textYMin, string textYMax, string labelY
            )
        {
            this.Cartesian              = new CoViD.GUI.UC.Cartesian(this.pctDrawingGrid, xMin, xMax, yMin, yMax);
            this.Cartesian.Coordinates += Cartesian_Coordinates;

            this.lblXMin.Text   = textXMin;
            this.lblXMax.Text   = textXMax;
            this.lblLabelX.Text = labelX;

            this.lblYMin.Text = textYMin;
            this.lblYMax.Text = textYMax;

            this.LabelY = labelY;

            this.UCGraphics.FillRectangle(new SolidBrush(ColorAxis), this.pctDrawingGrid.Left - 1, this.pctDrawingGrid.Top + this.pctDrawingGrid.Height, this.pctDrawingGrid.Width, 1);
            this.UCGraphics.FillRectangle(new SolidBrush(ColorAxis), this.pctDrawingGrid.Left - 1, this.pctDrawingGrid.Top, 1, this.pctDrawingGrid.Height);
        }
Example #3
0
 private void Form2_Load(object sender, EventArgs e)
 {
     this.DrawingGrid = new CoViD.GUI.UC.Cartesian(this.pictureBox1, -10, 10, -10, 10);
 }