SetBubbleTreeResult SetBubbleTree(BubbleTreeId tBubbleTree, SetBubbleTreeArg tArg)
tBubbleTree. Моникёр пузырькового дерева;
tArg. Параметры изменения настроек пузырькового дерева.
Операция SetBubbleTree изменяет настройки пузырькового дерева.
Для выполнения операции укажите в поле tBubbleTree моникёр пузырькового дерева, а в поле tArg.meta обновленные настройки, которые необходимо применить. Моникёр может быть сформирован на базе моникёра экспресс-отчета по следующему правилу: «Моникёр открытого экземпляра экспресс-отчета»!BubbleTree».
Настройки, которые могут быть изменены и указаны в поле tArg.meta.md, можно получить с помощью операции GetBubbleTree.
Если после изменения необходимо получить обновленные настройки, то укажите поле tArg.metaGet.
Ниже приведен пример использования операции SetBubbleTree для изменения настроек пузырькового дерева. В запросе передается моникёр пузырькового дерева и обновлённые настройки.
{ "SetBubbleTree" : { "tBubbleTree" : { "id" : "S1!M!S!E2!BubbleTree" }, "tArg" : { "meta" : { "md" : { "BubbleTree" : { "@PS" : "-1", "@AnimationDuration" : "1000.00000", "@LabelAutoColor" : "true", "@UseItemColorForToolTipBorder" : "true", "@UseSelectOnRightClick" : "true", "@Alignment" : "Right", "InnerLabelsStyle" : { "@Padding" : "0.00000 0.00000 0.00000 0.00000", "@NoDataText" : "", "@TextWrapping" : "NoWrap", "@Margin" : "0.00000 0.00000 0.00000 0.00000", "@Alignment" : "Center", "Style" : { "Release" : { "Font" : { "@IsItalic" : "false", "@IsUnderline" : "false", "@FontFamily" : "Tahoma", "@Size" : "12.00000", "@IsBold" : "false", "@Color" : "#FF8C8C8C" } } }, "MaskText" : { "@IsAuto" : "true" }, "NoDataText" : { "@IsAuto" : "true" } }, "OuterLabelsStyle" : { "@Padding" : "6.00000 6.00000 6.00000 6.00000", "@NoDataText" : "", "@TextWrapping" : "NoWrap", "@Margin" : "0.00000 0.00000 0.00000 0.00000", "@Alignment" : "Center", "Style" : { "Release" : { "Font" : { "@IsItalic" : "false", "@IsUnderline" : "false", "@FontFamily" : "Tahoma", "@Size" : "12.00000", "@IsBold" : "false", "@Color" : "#FF9C9B9B" }, "Background" : { "@PPType" : "PP.SolidColorBrush", "@Opacity" : "0.50196", "@Color" : "#FFFFFF" }, "Border" : { "@Width" : "1.00000", "@Style" : "solid", "@Radius" : "4.00000", "@Color" : "#FFC1C1C1" } } }, "MaskText" : { "@IsAuto" : "false", "@Value" : "{%Name}" }, "NoDataText" : { "@IsAuto" : "true" } }, "ItemsTooltipStyle" : { "@Padding" : "6.00000 6.00000 6.00000 6.00000", "@HoverMode" : "MouseOver", "@NoDataText" : "", "@TextWrapping" : "NoWrap", "@Margin" : "0.00000 0.00000 0.00000 0.00000", "@Alignment" : "Left", "Style" : { "Release" : { "Font" : { "@IsItalic" : "false", "@IsUnderline" : "false", "@FontFamily" : "Tahoma", "@Size" : "13.00000", "@IsBold" : "false", "@Color" : "#FF918F8D" }, "Background" : { "@PPType" : "PP.SolidColorBrush", "@Opacity" : "1.00000", "@Color" : "#FFFFFF" }, "Border" : { "@Width" : "1.00000", "@Style" : "solid", "@Radius" : "0.00000", "@Color" : "#FFC1C1C1" } } }, "MaskText" : { "@IsAuto" : "true" }, "NoDataText" : { "@IsAuto" : "true" } }, "Model" : { "@ActiveItem" : "VISUALIZER_TOTAL_ID", "RootItem" : { "@Id" : "VISUALIZER_TOTAL_ID", "Items" : [ { "@Id" : "1", "Items" : { "@Id" : "2", "Items" : { "@Id" : "3" } } }, { "@Id" : "4" } ] } }, "ItemsNames" : { "Item" : [ { "@Key" : "3", "@Value" : "Третий элемент" }, { "@Key" : "4", "@Value" : "Четвертый элемент" }, { "@Key" : "VISUALIZER_TOTAL_ID", "@Value" : "Dim_1" }, { "@Key" : "1", "@Value" : "Первый элемент" }, { "@Key" : "2", "@Value" : "Второй элемент" } ] }, "OrbitsPen" : { "@Width" : "2.00000", "@Style" : "solid", "@Color" : "#FFE0E0E0" }, "ColorVisual" : { "ColorMapping" : { "@Type" : "Scale", "@Scale" : "Scale50", "@Index" : "0", "@Format" : "#,##0.00", "@DataSource" : "DataSource0", "@DimAttributeId" : "DefaultID", "@Id" : "DSMapping56" } }, "StyleContainer" : { "@SCK" : "4294967295", "@SCT" : "0" }, "Timeline" : { "@StepDuration" : "1000.00000", "@IsOverlap" : "false", "@DelayDuration" : "1000.00000", "@Padding" : "0.00000 0.00000 0.00000 0.00000", "@HorizontalAlignment" : "Center", "@VerticalAlignment" : "Bottom", "@IsVisible" : "true", "@LastIndexAsInitial" : "true", "@Inverse" : "false", "@ReturnToInitialState" : "true", "@Margin" : "10.00000 13.00000 6.00000 8.00000", "@CurrentStep" : "0", "Style" : { "Release" : { "Font" : { "@IsItalic" : "false", "@IsUnderline" : "false", "@FontFamily" : "Tahoma", "@Size" : "11.00000", "@IsBold" : "false", "@Color" : "#FF918F8D" } } } }, "Legends" : { "Legend0" : { "@Marker" : "Circle", "@Type" : "Intervals", "@AutoColumnsCount" : "true", "@ColorApplying" : "Marker", "@NoDataVisible" : "true", "@CellSpacing" : "10.00000 10.00000", "@Mode" : "LessGreater", "@Visibility" : "IsDependent", "@Scale" : "Scale50", "@Format" : "#,##0.00", "@HoverMode" : "MouseOver", "@HorizontalAlignment" : "Center", "@TextSpacing" : "10.00000", "@DoHighlight" : "false", "@IsOuter" : "false", "@NoDataPosition" : "After", "@Id" : "Legend0", "@TextHorizontalAlignment" : "Left", "@IncludeEquals" : "true", "@IsOverlap" : "false", "@ColumnCount" : "0", "@Padding" : "6.00000 6.00000 6.00000 6.00000", "@VerticalAlignment" : "Bottom", "@ContentAlignment" : "Center", "@Margin" : "0.00000 0.00000 0.00000 0.00000", "@ItemsOrder" : "LeftToRight", "Style" : { "Release" : { "Font" : { "@IsItalic" : "false", "@IsUnderline" : "false", "@FontFamily" : "Tahoma", "@Size" : "12.00000", "@IsBold" : "false", "@Color" : "#FF918F8D" } } }, "EqualFormat" : { "@IsAuto" : "true" }, "GreaterFormat" : { "@IsAuto" : "true" }, "LessFormat" : { "@IsAuto" : "true" }, "BetweenFormat" : { "@IsAuto" : "true" }, "NoDataText" : { "@IsAuto" : "true" }, "Header" : { "@Padding" : "0.00000 0.00000 0.00000 0.00000", "@IsVisible" : "true", "@NoDataText" : "", "@TextWrapping" : "NoWrap", "@Margin" : "0.00000 0.00000 0.00000 0.00000", "@Alignment" : "Center", "Style" : { "Release" : { "Font" : { "@IsItalic" : "false", "@IsUnderline" : "false", "@FontFamily" : "Tahoma", "@Size" : "12.00000", "@IsBold" : "false", "@Color" : "#FF918F8D" } } }, "MaskText" : { "@IsAuto" : "true" }, "NoDataText" : { "@IsAuto" : "true" }, "Text" : { "@IsAuto" : "false", "@Value" : "Цвет: " } } } }, "Style" : { "Release" : { "Background" : { "@PPType" : "PP.SolidColorBrush", "@Opacity" : "1.00000", "@Color" : "#FFFFFF" } } }, "LegendMapping" : { "@Legend0" : "DSMapping56" }, "HoverInactiveEffects" : { "Effect" : { "@PPType" : "PP.Ui.OpacityEffect", "@Opacity" : "0.50000" } }, "SelectInactiveEffects" : { "Effect" : { "@PPType" : "PP.Ui.OpacityEffect", "@Opacity" : "0.25000" } }, "CustomData" : "", "DataSources" : { "DataSource0" : { "@Title" : "", "@Id" : "DataSource0", "AttributesNames" : { "Item" : { "@Key" : "DefaultID", "@Value" : "" } }, "Series" : { "Serie" : [ { "@Id" : "1", "DefaultID" : { "@Items" : "113.46752 " } }, { "@Id" : "2", "DefaultID" : { "@Items" : "153.72571 " } }, { "@Id" : "3", "DefaultID" : { "@Items" : "158.10008 " } }, { "@Id" : "4", "DefaultID" : { "@Items" : "91.68919 " } } ] } } }, "Scales" : { "Scale50" : { "@AutoCalculable" : "true", "@MinValue" : "91.68919", "@Items" : "#FFFF462C #FFEBAF36 #FFFFD900 #FFB1CA40 #FF6A8535", "@InactiveItem" : "#FFFFFFFF", "@LogarithmBase" : "2.00000", "@MaxValue" : "158.10008", "@Mode" : "Uniform", "@EnableEquality" : "false", "@IsConstant" : "false", "@RoundBias" : "0.00000", "@NoData" : "#FFEBEBEB", "@TypeArguments" : "Brush", "@Id" : "Scale50" } }, "SettingsProvider" : { "ItemsToolTipStyle" : { "@ToolTipText" : "{%Name}: {%ColorValue}", "@NoDataText" : "нет данных" }, "IntervalsLegendStyle" : { "@LessFormat" : "менее {0}", "@EqualFormat" : "равно {0}", "@BetweenFormat" : "от {0} до {1}", "@GreaterFormat" : "более {0}", "@NoDataText" : "нет данных" }, "SizeLegendStyle" : { "@MinValueFormat" : "{0}", "@MaxValueFormat" : "{0}" } } } } }, "metaGet" : { "metaData" : "true" } } } }
{ "SetBubbleTreeResult" : { "id" : { "id" : "S1!M!S!E2!BubbleTree" }, "metaGet" : { "md" : { "BubbleTree" : { "@PS" : "-1", "@AnimationDuration" : "1000.00000", "@LabelAutoColor" : "true", "@UseItemColorForToolTipBorder" : "true", "@UseSelectOnRightClick" : "true", "@Alignment" : "Right", "InnerLabelsStyle" : { "@Padding" : "0.00000 0.00000 0.00000 0.00000", "@NoDataText" : "", "@TextWrapping" : "NoWrap", "@Margin" : "0.00000 0.00000 0.00000 0.00000", "@Alignment" : "Center", "Style" : { "Release" : { "Font" : { "@IsItalic" : "false", "@IsUnderline" : "false", "@FontFamily" : "Tahoma", "@Size" : "12.00000", "@IsBold" : "false", "@Color" : "#FF8C8C8C" } } }, "MaskText" : { "@IsAuto" : "true" }, "NoDataText" : { "@IsAuto" : "true" } }, "OuterLabelsStyle" : { "@Padding" : "6.00000 6.00000 6.00000 6.00000", "@NoDataText" : "", "@TextWrapping" : "NoWrap", "@Margin" : "0.00000 0.00000 0.00000 0.00000", "@Alignment" : "Center", "Style" : { "Release" : { "Font" : { "@IsItalic" : "false", "@IsUnderline" : "false", "@FontFamily" : "Tahoma", "@Size" : "12.00000", "@IsBold" : "false", "@Color" : "#FF9C9B9B" }, "Background" : { "@PPType" : "PP.SolidColorBrush", "@Opacity" : "0.50196", "@Color" : "#FFFFFF" }, "Border" : { "@Width" : "1.00000", "@Style" : "solid", "@Radius" : "4.00000", "@Color" : "#FFC1C1C1" } } }, "MaskText" : { "@IsAuto" : "false", "@Value" : "{%Name}" }, "NoDataText" : { "@IsAuto" : "true" } }, "ItemsTooltipStyle" : { "@Padding" : "6.00000 6.00000 6.00000 6.00000", "@HoverMode" : "MouseOver", "@NoDataText" : "", "@TextWrapping" : "NoWrap", "@Margin" : "0.00000 0.00000 0.00000 0.00000", "@Alignment" : "Left", "Style" : { "Release" : { "Font" : { "@IsItalic" : "false", "@IsUnderline" : "false", "@FontFamily" : "Tahoma", "@Size" : "13.00000", "@IsBold" : "false", "@Color" : "#FF918F8D" }, "Background" : { "@PPType" : "PP.SolidColorBrush", "@Opacity" : "1.00000", "@Color" : "#FFFFFF" }, "Border" : { "@Width" : "1.00000", "@Style" : "solid", "@Radius" : "0.00000", "@Color" : "#FFC1C1C1" } } }, "MaskText" : { "@IsAuto" : "true" }, "NoDataText" : { "@IsAuto" : "true" } }, "Model" : { "@ActiveItem" : "VISUALIZER_TOTAL_ID", "RootItem" : { "@Id" : "VISUALIZER_TOTAL_ID", "Items" : [ { "@Id" : "1", "Items" : { "@Id" : "2", "Items" : { "@Id" : "3" } } }, { "@Id" : "4" } ] } }, "ItemsNames" : { "Item" : [ { "@Key" : "3", "@Value" : "Третий элемент" }, { "@Key" : "4", "@Value" : "Четвертый элемент" }, { "@Key" : "VISUALIZER_TOTAL_ID", "@Value" : "Dim_1" }, { "@Key" : "1", "@Value" : "Первый элемент" }, { "@Key" : "2", "@Value" : "Второй элемент" } ] }, "OrbitsPen" : { "@Width" : "2.00000", "@Style" : "solid", "@Color" : "#FFE0E0E0" }, "ColorVisual" : { "ColorMapping" : { "@Type" : "Scale", "@Scale" : "Scale50", "@Index" : "0", "@Format" : "#,##0.00", "@DataSource" : "DataSource0", "@DimAttributeId" : "DefaultID", "@Id" : "DSMapping56" } }, "StyleContainer" : { "@SCK" : "4294967295", "@SCT" : "0" }, "Timeline" : { "@StepDuration" : "1000.00000", "@IsOverlap" : "false", "@DelayDuration" : "1000.00000", "@Padding" : "0.00000 0.00000 0.00000 0.00000", "@HorizontalAlignment" : "Center", "@VerticalAlignment" : "Bottom", "@IsVisible" : "true", "@LastIndexAsInitial" : "true", "@Inverse" : "false", "@ReturnToInitialState" : "true", "@Margin" : "10.00000 13.00000 6.00000 8.00000", "@CurrentStep" : "0", "Style" : { "Release" : { "Font" : { "@IsItalic" : "false", "@IsUnderline" : "false", "@FontFamily" : "Tahoma", "@Size" : "11.00000", "@IsBold" : "false", "@Color" : "#FF918F8D" } } } }, "Legends" : { "Legend0" : { "@Marker" : "Circle", "@Type" : "Intervals", "@AutoColumnsCount" : "true", "@ColorApplying" : "Marker", "@NoDataVisible" : "true", "@CellSpacing" : "10.00000 10.00000", "@Mode" : "LessGreater", "@Visibility" : "IsDependent", "@Scale" : "Scale50", "@Format" : "#,##0.00", "@HoverMode" : "MouseOver", "@HorizontalAlignment" : "Center", "@TextSpacing" : "10.00000", "@DoHighlight" : "false", "@IsOuter" : "false", "@NoDataPosition" : "After", "@Id" : "Legend0", "@TextHorizontalAlignment" : "Left", "@IncludeEquals" : "true", "@IsOverlap" : "false", "@ColumnCount" : "0", "@Padding" : "6.00000 6.00000 6.00000 6.00000", "@VerticalAlignment" : "Bottom", "@ContentAlignment" : "Center", "@Margin" : "0.00000 0.00000 0.00000 0.00000", "@ItemsOrder" : "LeftToRight", "Style" : { "Release" : { "Font" : { "@IsItalic" : "false", "@IsUnderline" : "false", "@FontFamily" : "Tahoma", "@Size" : "12.00000", "@IsBold" : "false", "@Color" : "#FF918F8D" } } }, "EqualFormat" : { "@IsAuto" : "true" }, "GreaterFormat" : { "@IsAuto" : "true" }, "LessFormat" : { "@IsAuto" : "true" }, "BetweenFormat" : { "@IsAuto" : "true" }, "NoDataText" : { "@IsAuto" : "true" }, "Header" : { "@Padding" : "0.00000 0.00000 0.00000 0.00000", "@IsVisible" : "true", "@NoDataText" : "", "@TextWrapping" : "NoWrap", "@Margin" : "0.00000 0.00000 0.00000 0.00000", "@Alignment" : "Center", "Style" : { "Release" : { "Font" : { "@IsItalic" : "false", "@IsUnderline" : "false", "@FontFamily" : "Tahoma", "@Size" : "12.00000", "@IsBold" : "false", "@Color" : "#FF918F8D" } } }, "MaskText" : { "@IsAuto" : "true" }, "NoDataText" : { "@IsAuto" : "true" }, "Text" : { "@IsAuto" : "false", "@Value" : "Цвет: " } } } }, "Style" : { "Release" : { "Background" : { "@PPType" : "PP.SolidColorBrush", "@Opacity" : "1.00000", "@Color" : "#FFFFFF" } } }, "LegendMapping" : { "@Legend0" : "DSMapping56" }, "HoverInactiveEffects" : { "Effect" : { "@PPType" : "PP.Ui.OpacityEffect", "@Opacity" : "0.50000" } }, "SelectInactiveEffects" : { "Effect" : { "@PPType" : "PP.Ui.OpacityEffect", "@Opacity" : "0.25000" } }, "CustomData" : "", "DataSources" : { "DataSource0" : { "@Title" : "", "@Id" : "DataSource0", "AttributesNames" : { "Item" : { "@Key" : "DefaultID", "@Value" : "" } }, "Series" : { "Serie" : [ { "@Id" : "1", "DefaultID" : { "@Items" : "113.46752 " } }, { "@Id" : "2", "DefaultID" : { "@Items" : "153.72571 " } }, { "@Id" : "3", "DefaultID" : { "@Items" : "158.10008 " } }, { "@Id" : "4", "DefaultID" : { "@Items" : "91.68919 " } } ] } } }, "Scales" : { "Scale50" : { "@AutoCalculable" : "true", "@MinValue" : "91.68919", "@Items" : "#FFFF462C #FFEBAF36 #FFFFD900 #FFB1CA40 #FF6A8535", "@InactiveItem" : "#FFFFFFFF", "@LogarithmBase" : "2.00000", "@MaxValue" : "158.10008", "@Mode" : "Uniform", "@EnableEquality" : "false", "@IsConstant" : "false", "@RoundBias" : "0.00000", "@NoData" : "#FFEBEBEB", "@TypeArguments" : "Brush", "@Id" : "Scale50" } }, "SettingsProvider" : { "ItemsToolTipStyle" : { "@ToolTipText" : "{%Name}: {%ColorValue}", "@NoDataText" : "нет данных" }, "IntervalsLegendStyle" : { "@LessFormat" : "менее {0}", "@EqualFormat" : "равно {0}", "@BetweenFormat" : "от {0} до {1}", "@GreaterFormat" : "более {0}", "@NoDataText" : "нет данных" }, "SizeLegendStyle" : { "@MinValueFormat" : "{0}", "@MaxValueFormat" : "{0}" } } } } } } }
public static SetBubbleTreeResult SetBubbleTreeNewSettings(EaxId moniker, System.Xml.XmlElement settings)
{
var somClient = new SomPortTypeClient(); // Прокси-объект для выполнения операции
// Параметры выполнения операции
var tSet = new SetBubbleTree()
{
tArg = new SetBubbleTreeArg()
{
meta = new BubbleTreeMd()
{
//Новые настройки пузырькового дерева
md = settings
},
metaGet = new BubbleTreeMdPattern()
{
metaData = true
}
},
tBubbleTree = new BubbleTreeId() { id = moniker.id + "!BubbleTree" }
};
// Изменяем настройки пузырькового дерева
var result = somClient.SetBubbleTree(tSet);
return result;
}
См. также:
Интерактивные визуальные компоненты