Exemplo n.º 1
0
        public FormulaSkin()
        {
            AxisX  = new FormulaAxisX();
            axisXs = new AxisXCollection();
            axisXs.Add(AxisX);

            AxisY = new FormulaAxisY();
            Back  = new FormulaBack();
        }
Exemplo n.º 2
0
 public FormulaAxisY()
 {
     this.MajorTick.ShowLine     = true;
     this.MinorTick              = new FormulaTick();
     this.MinorTick.TickWidth    = 3;
     this.MinorTick.MinimumPixel = 10;
     this.Back                    = new FormulaBack();
     this.MultiplyBack            = new FormulaBack();
     this.MultiplyBack.BackGround = new SolidBrush(Color.Yellow);
 }
Exemplo n.º 3
0
        public object Clone()
        {
            FormulaBack back = new FormulaBack();

            back.BackGround = (Brush)this.BackGround.Clone();
            back.LeftPen    = (Pen)this.LeftPen.Clone();
            back.RightPen   = (Pen)this.RightPen.Clone();
            back.BottomPen  = (Pen)this.BottomPen.Clone();
            back.TopPen     = (Pen)this.TopPen.Clone();
            return(back);
        }
Exemplo n.º 4
0
        /// <summary>
        /// A Clone of FormulaBack
        /// </summary>
        /// <returns></returns>
        public object Clone()
        {
            FormulaBack fb = new FormulaBack();

            fb.BackGround = BackGround.Clone();
            fb.LeftPen    = LeftPen.Clone();
            fb.RightPen   = RightPen.Clone();
            fb.BottomPen  = BottomPen.Clone();
            fb.TopPen     = TopPen.Clone();
            return(fb);
        }
Exemplo n.º 5
0
        /// <summary>
        /// Constructor of Y-Axis
        /// </summary>
        public FormulaAxisY()
        {
            majorTick          = new FormulaTick();
            majorTick.ShowLine = true;

            minorTick              = new FormulaTick();
            minorTick.TickWidth    = 3;
            minorTick.MinimumPixel = 10;

            Back                    = new FormulaBack();
            MultiplyBack            = new FormulaBack();
            MultiplyBack.BackGround = new BrushMapper(Color.Yellow);            //new SolidBrush(Color.Yellow);
        }
Exemplo n.º 6
0
        public FormulaAxisX()
        {
            Back = new FormulaBack();

            MajorTick          = new FormulaTick();
            MajorTick.ShowLine = true;
            MajorTick.Inside   = true;

            MinorTick           = new FormulaTick();
            MinorTick.Count     = 1;
            MinorTick.Inside    = true;
            MinorTick.TickWidth = 2;
        }
Exemplo n.º 7
0
 public void CopyFrom(FormulaAxisX fax)
 {
     this.Visible            = fax.Visible;
     this.DateFormatProvider = fax.DateFormatProvider;
     this.AutoScale          = fax.AutoScale;
     this.Format             = fax.Format;
     this.MajorTick          = (FormulaTick)fax.MajorTick.Clone();
     this.MinorTick          = (FormulaTick)fax.MinorTick.Clone();
     this.Back           = (FormulaBack)fax.Back.Clone();
     this.LabelFont      = (Font)fax.LabelFont.Clone();
     this.LabelBrush     = (Brush)fax.LabelBrush.Clone();
     this.AxisLabelAlign = fax.AxisLabelAlign;
     this.DataCycle      = fax.DataCycle;
 }
Exemplo n.º 8
0
 /// <summary>
 /// Copy attribute from another FormulaAxisY
 /// </summary>
 /// <param name="fay"></param>
 public void CopyFrom(FormulaAxisY fay)
 {
     visible      = fay.visible;
     autoMultiply = fay.autoMultiply;
     width        = fay.width;
     //autoScale = fay.autoScale;
     majorTick    = fay.majorTick.Clone();
     minorTick    = fay.minorTick.Clone();
     back         = (FormulaBack)fay.back.Clone();
     autoFormat   = fay.autoFormat;
     format       = fay.format;
     multiplyBack = (FormulaBack)fay.multiplyBack.Clone();
     labelFont    = (Font)fay.labelFont.Clone();
     labelBrush   = fay.labelBrush.Clone();
     axisPos      = fay.axisPos;
 }
Exemplo n.º 9
0
 /// <summary>
 /// Copy attribute from another FormulaAxisX
 /// </summary>
 /// <param name="fax"></param>
 public void CopyFrom(FormulaAxisX fax)
 {
     visible            = fax.visible;
     DateFormatProvider = fax.DateFormatProvider;
     autoScale          = fax.autoScale;
     format             = fax.format;
     majorTick          = fax.majorTick.Clone();
     minorTick          = fax.minorTick.Clone();
     back           = (FormulaBack)fax.back.Clone();
     labelFont      = (Font)fax.labelFont.Clone();
     labelBrush     = fax.labelBrush.Clone();
     axisLabelAlign = fax.axisLabelAlign;
     DataCycle      = fax.DataCycle;
     cursorFormat   = fax.cursorFormat;
     height         = fax.height;
 }
Exemplo n.º 10
0
 public void CopyFrom(FormulaAxisY fay)
 {
     this.Visible      = fay.Visible;
     this.AutoMultiply = fay.AutoMultiply;
     this.Width        = fay.Width;
     this.AutoScale    = fay.AutoScale;
     this.MajorTick    = (FormulaTick)fay.MajorTick.Clone();
     this.MinorTick    = (FormulaTick)fay.MinorTick.Clone();
     this.Back         = (FormulaBack)fay.Back.Clone();
     this.AutoFormat   = fay.AutoFormat;
     this.Format       = fay.Format;
     this.MultiplyBack = (FormulaBack)fay.MultiplyBack.Clone();
     this.LabelFont    = (Font)fay.LabelFont.Clone();
     this.LabelBrush   = (Brush)fay.LabelBrush.Clone();
     this.AxisPos      = fay.AxisPos;
 }