Inheritance: MonoMac.AppKit.NSView
        // Shared initialization code
        void Initialize()
        {
            this.AutoresizingMask = NSViewResizingMask.HeightSizable | NSViewResizingMask.WidthSizable;
            BackColor             = Color.Wheat;
            PlotPanel             = new PlotPanel(Frame);

            this.AddSubview(PlotPanel);

            // Subscribing to a paint eventhandler to drawingPanel:
            PlotPanel.Paint +=
                new PaintEventHandler(PlotPanelPaint);

            dc = new DataCollection();
            cs = new ChartStyle(this);
//			cs.RMax = 0.5f;
//			cs.RMin = 0f;
            cs.RMax           = 1f;
            cs.RMin           = -5f;
            cs.NTicks         = 4;
            cs.AngleStep      = 30;
            cs.AngleDirection = ChartStyle.AngleDirectionEnum.CounterClockWise;
            lg = new Legend();
            lg.IsLegendVisible = true;
        }
Ejemplo n.º 2
0
        // Shared initialization code
        void Initialize()
        {
            this.AutoresizingMask = NSViewResizingMask.HeightSizable | NSViewResizingMask.WidthSizable;
            BackColor = Color.Wheat;
            PlotPanel = new PlotPanel (Frame);

            this.AddSubview (PlotPanel);

            // Subscribing to a paint eventhandler to drawingPanel:
            PlotPanel.Paint +=
                new PaintEventHandler (PlotPanelPaint);

            dc = new DataCollection ();
            cs = new ChartStyle (this);
            //			cs.RMax = 0.5f;
            //			cs.RMin = 0f;
            cs.RMax = 1f;
            cs.RMin = -5f;
            cs.NTicks = 4;
            cs.AngleStep = 30;
            cs.AngleDirection = ChartStyle.AngleDirectionEnum.CounterClockWise;
            lg = new Legend ();
            lg.IsLegendVisible = true;
        }