예제 #1
0
        public void Test_CircleChartModel()
        {
            using (var model = new CircleChartModel())
            {
                Assert.IsNotNull(model);

                Assert.IsNotNull(model.Segments);

                model.Options = GlobalOptions.Instance.CircleChartOptions;
                Assert.AreEqual(GlobalOptions.Instance.CircleChartOptions, model.Options);

                model.Base = fBase;
                Assert.AreEqual(fBase, model.Base);

                model.Selected = null;
                Assert.AreEqual(null, model.Selected);

                Assert.AreEqual(null, model.FindSegmentByRec(null));

                Assert.AreEqual(0, model.IndividualsCount);

                model.GenWidth = 40; // valid
                Assert.AreEqual(40, model.GenWidth);
                model.GenWidth = 10; // invalid
                Assert.AreEqual(40, model.GenWidth);
            }
        }
예제 #2
0
        public CircleChart()
        {
            CenteredImage = true;

            fRenderer = new EtoGfxRenderer();
            fModel    = new CircleChartModel();
            fModel.SetRenderer(fRenderer);
            fModel.Options = new CircleChartOptions();
            fModel.Font    = AppHost.GfxProvider.CreateFont(Font.FamilyName, Font.Size, false);

            fMouseCaptured = MouseCaptured.mcNone;
        }
예제 #3
0
        public CircleChart()
        {
            CenteredImage = true;

            fRenderer = new TreeChartGfxRenderer();
            fModel    = new CircleChartModel();
            fModel.SetRenderer(fRenderer);
            fModel.Options = new AncestorsCircleOptions();
            fModel.Font    = AppHost.GfxProvider.CreateFont(Font.FamilyName, Font.Size, false);

            fMouseCaptured = MouseCaptured.mcNone;

            BackgroundColor = UIHelper.ConvertColor(fModel.Options.BrushColor[9]);
        }
예제 #4
0
        public CircleChart()
        {
            BorderStyle    = BorderStyle.Fixed3D;
            DoubleBuffered = true;

            fRenderer = new WFGfxRenderer();
            fModel    = new CircleChartModel();
            fModel.SetRenderer(fRenderer);
            fModel.Options = new AncestorsCircleOptions();
            fModel.Font    = AppHost.GfxProvider.CreateFont(this.Font.Name, this.Font.Size, false);

            fComponents           = new Container();
            fToolTip              = new ToolTip(fComponents);
            fToolTip.AutoPopDelay = 5000;
            fToolTip.InitialDelay = 250;
            fToolTip.ReshowDelay  = 50;
            fToolTip.ShowAlways   = true;

            fMouseCaptured = MouseCaptured.mcNone;
        }