Beispiel #1
0
        public void Render(MapLine mapLine, Path corePath, bool hasScope)
        {
            bool            flag            = this.UseCustomTemplate(mapLine, hasScope);
            MapLineTemplate mapLineTemplate = (!flag) ? this.MapLineLayer.MapLineTemplate : mapLine.MapLineTemplate;

            this.RenderLineTemplate(mapLineTemplate, corePath, !flag && this.m_lineLayerMapper.HasColorRule(corePath) && hasScope, !flag && this.m_lineLayerMapper.HasSizeRule(corePath) && hasScope, hasScope);
        }
Beispiel #2
0
        private bool UseCustomTemplate(MapLine mapLine, bool hasScope)
        {
            if (mapLine == null)
            {
                return(false);
            }
            bool result = false;
            ReportBoolProperty useCustomLineTemplate = mapLine.UseCustomLineTemplate;

            if (useCustomLineTemplate != null)
            {
                if (!useCustomLineTemplate.IsExpression)
                {
                    result = useCustomLineTemplate.Value;
                }
                else if (hasScope)
                {
                    result = mapLine.Instance.UseCustomLineTemplate;
                }
            }
            return(result);
        }
Beispiel #3
0
 private void RenderLineTemplate(MapLine mapLine, Path path, bool hasScope)
 {
     this.m_lineTemplateMapper.Render(mapLine, path, hasScope);
 }
 public MapLineInstance(MapLine defObject)
     : base(defObject)
 {
     this.m_defObject = defObject;
 }