Esempio n. 1
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;
        }
Esempio n. 2
0
        /// <summary>
        /// Get visualization properties from form
        /// </summary>

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

            // General

            GeneralPropertiesPanel.GetValues(v);

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

            return;
        }
Esempio n. 3
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;
        }