Пример #1
0
        internal void RenderLineRule(SpatialElementTemplateMapper spatialElementTemplateMapper, Color?color)
        {
            PathWidthRule pathWidthRule = (PathWidthRule)m_coreRule;

            pathWidthRule.UseCustomWidths = true;
            SetRuleLegendProperties(pathWidthRule);
            SetRuleDistribution(pathWidthRule);
            SetPathRuleSizes(pathWidthRule.CustomWidths);
        }
Пример #2
0
 private void InitializeCustomColors(CustomColorCollection customColors, SpatialElementTemplateMapper spatialEementTemplateMapper)
 {
     foreach (CustomColor customColor in customColors)
     {
         customColor.BorderColor    = spatialEementTemplateMapper.GetBorderColor(hasScope: false);
         customColor.SecondaryColor = spatialEementTemplateMapper.GetBackGradientEndColor(hasScope: false);
         customColor.GradientType   = spatialEementTemplateMapper.GetGradientType(hasScope: false);
         customColor.HatchStyle     = spatialEementTemplateMapper.GetHatchStyle(hasScope: false);
         customColor.LegendText     = "";
         customColor.Text           = "";
     }
 }