public LineLayerMapper(MapLineLayer mapLineLayer, MapControl coreMap, MapMapper mapMapper) : base(mapLineLayer, coreMap, mapMapper) { if (mapLineLayer.MapLineTemplate != null) { this.m_lineTemplateMapper = new LineTemplateMapper(base.m_mapMapper, this, this.MapLineLayer); } }
private int?GetLegendSize() { if (this.m_lineTemplateMapper == null) { return(LineTemplateMapper.GetDefaultSize(base.m_mapMapper.DpiX)); } return(this.m_lineTemplateMapper.GetSize(this.MapLineLayer.MapLineTemplate, false)); }
public int GetSize(MapLineTemplate mapLineTemplate, bool hasScope) { ReportSizeProperty width = mapLineTemplate.Width; if (width != null) { if (!width.IsExpression) { return(MappingHelper.ToIntPixels(width.Value, base.m_mapMapper.DpiX)); } if (hasScope) { return(MappingHelper.ToIntPixels(mapLineTemplate.Instance.Width, base.m_mapMapper.DpiX)); } return(LineTemplateMapper.GetDefaultSize(base.m_mapMapper.DpiX)); } return(LineTemplateMapper.GetDefaultSize(base.m_mapMapper.DpiX)); }
public void RenderLineRule(LineTemplateMapper pathTemplateMapper, int?size) { PathRule pathRule = (PathRule)base.m_coreRule; base.SetRuleLegendProperties(pathRule); base.SetRuleDistribution(pathRule); pathRule.ShowInColorSwatch = this.GetShowInColorScale(); if (base.m_mapRule is MapColorRangeRule) { this.RenderLineColorRangeRule(pathRule); } else if (base.m_mapRule is MapColorPaletteRule) { this.RenderLineColorPaletteRule(pathRule); } else { this.RenderLineCustomColorRule(pathRule); } this.InitializePathRule(pathRule, pathTemplateMapper, size); }
private void InitializePathRule(PathRule pathRule, LineTemplateMapper pathTemplateMapper, int?size) { this.InitializeCustomColors(pathRule.CustomColors, pathTemplateMapper); }