Пример #1
0
        //////////////////////////////////////////////////////////////////////////
        //////////// End of common code for setting up the dialog ////////////////
        //////////////////////////////////////////////////////////////////////////

        void SetupForm()
        {
            InSetup = true;

            ValidateViewInitialization();

            GeneralPropertiesPanel.Setup(V, EditValueChanged);

            DataPropertiesPanel.Setup(V, SVP, EditValueChanged);

            XAxisPanel.Setup(V.XAxis, V, SVP, EditValueChanged);

            YAxisPanel.Setup(V.YAxis, V, SVP, EditValueChanged);

            ColorByPanel.Setup(V.ColorAxis, V, SVP, EditValueChanged);

            ShapeByPanel.Setup(V.ShapeAxis, V, SVP, EditValueChanged);

            SizeByPanel.Setup(V.SizeAxis, V, SVP, EditValueChanged);

            TrellisPropertiesPanel.Setup(V, V.Trellis);

            PropertyDialogsUtil.SelectPropertyPage(CurrentTabName, TabPageSelector, Tabs);

            InSetup = false;
            return;
        }
Пример #2
0
        void GetFormValues()
        {
            ScatterPlotMsx v = V;             // update existing visual instance

            // General

            GeneralPropertiesPanel.GetValues(v);

            XAxisPanel.GetValues();

            YAxisPanel.GetValues();

            // Other panels
            // --- todo ---

            if (
                MarkerColorRulesControlChanged ||
                MarkerShapesControlChanged ||
                AxesTabChanged)
            {
                if (MarkerColorRulesControlChanged)
                {
                    //QueryColumn qc = SVM.MarkerColor.QueryColumn;
                    //if (qc != null)
                    //{ // associate rules with QueryColumn
                    //	if (qc.CondFormat == null) qc.CondFormat = new CondFormat();
                    //	//qc.CondFormat.Rules = View.MarkerColorBy.ColorRulesControl.GetRules();
                    //	if (qc.CondFormat.Rules != null)
                    //		qc.CondFormat.Rules.InitializeInternalMatchValues(qc.MetaColumn.DataType);
                    //	//SVM.ApplyMarkerColorRules();
                    //}
                    MarkerColorRulesControlChanged = false;
                }

                //if (MarkerShapesControlChanged)
                //{
                //  GetMarkerShapeSchemeRulesFromGrid();
                //  MarkerShapesControlChanged = false;
                //}

                if (AxesTabChanged)
                {
                    //GetAxesFieldList();
                }

                SVM.ConfigureRenderingControl();
            }

            //if (TooltipFieldListControl.Changed) // update tooltip info
            //	SVM.MarkerTooltip.Fields = TooltipFieldListControl.GetFields();

            return;
        }
Пример #3
0
        /// <summary>
        /// Get visualization properties from form
        /// </summary>

        void GetFormValues()
        {
            VisualMsx v = V;             // update existing visual instance

            // General

            GeneralPropertiesPanel.GetValues(v);

            // Data
            // --- todo ---

            return;
        }
Пример #4
0
        //////////////////////////////////////////////////////////////////////////
        //////////// End of common code for setting up the dialog ////////////////
        //////////////////////////////////////////////////////////////////////////

        /// <summary>
        /// Setup the form
        /// </summary>

        void SetupForm()
        {
            InSetup = true;

            ValidateViewInitialization();

            GeneralPropertiesPanel.Setup(V, EditValueChanged);

            DataMapPanel.Setup(SVM, EditValueChanged);

            PropertyDialogsUtil.SelectPropertyPage(CurrentTabName, TabPageSelector, Tabs);

            InSetup = false;
            return;
        }
Пример #5
0
        //////////////////////////////////////////////////////////////////////////
        //////////// End of common code for setting up the dialog ////////////////
        //////////////////////////////////////////////////////////////////////////

        /// <summary>
        /// Setup the form with the TrellisCard
        /// </summary>

        void SetupForm()
        {
            InSetup = true;

            ValidateViewInitialization();

            GeneralPropertiesPanel.Setup(V);

            DataPropertiesPanel.Setup(V, SVP);

            TrellisPropertiesPanel.Setup(V, V.Trellis);

            InSetup = false;
            return;
        }
Пример #6
0
        /// <summary>
        /// Get visualization properties from form and store in TrellisCardVisualMx
        /// </summary>

        void GetFormValues()
        {
            TrellisCardVisualMsx v = V;             // update existing visual instance

            // General

            GeneralPropertiesPanel.GetValues(v);

            // Data
            // --- todo ---

            // Columns

            //v.IdColumnName = CurrentMap.GetSpotfireNameFromQueryColumn(IdColumnSelector.QueryColumn);
            //v.FocusColumnName = CurrentMap.GetSpotfireNameFromQueryColumn(FocusColumnSelector.QueryColumn);

            v.SelectedColumns = GetColorCodingColumnsFormValues(HorizontalGradientBarChartControl);
            v.FeatureColumns  = GetColorCodingColumnsFormValues(VerticalBarChartControl);

            // Trellis

            v.RowAmount    = (int)NumberOfRowsCtl.Value;
            v.ColumnAmount = (int)NumberOfColsCtl.Value;

            if (PageUpDownNavigation.Checked)
            {
                v.NavigationType = 0;
            }

            else
            {
                v.NavigationType = 1;              // scrolling
            }
            // Sorting

            GetSortingProperties();

            //string serializedText = MsxUtil.Serialize(v); // debug serialize
            //TrellisCardVisualMsx tcvCopy = (TrellisCardVisualMsx)MsxUtil.Deserialize(serializedText, typeof(TrellisCardVisualMsx)); // deserialize

            return;
        }