Exemplo n.º 1
0
 protected override void ApplyAttributesOfElement(string name, GeoDo.RSS.Layout.IElement ele)
 {
     if (ele is GeoDo.RSS.Layout.Elements.ILegendElement)
     {
         LegendItem[]   legendItems   = CreateLegendItems();
         ILegendElement legendElement = ele as ILegendElement;
         legendElement.LegendItems = legendItems;
     }
     base.ApplyAttributesOfElement(name, ele);
 }
Exemplo n.º 2
0
 protected override void ApplyAttributesOfElement(string name, GeoDo.RSS.Layout.IElement ele)
 {
     if (ele is GeoDo.RSS.Layout.Elements.LinearLegendElement)
     {
         if (ele.Name == "冰缘线图例")
         {
             GeoDo.RSS.Layout.Elements.LinearLegendElement lineLegendElement = ele as GeoDo.RSS.Layout.Elements.LinearLegendElement;
             lineLegendElement.Color = CreateLegendItems();
         }
     }
     base.ApplyAttributesOfElement(name, ele);
 }