Exemple #1
0
        private bool HasColorRule()
        {
            MapPolygonRules mapPolygonRules = this.MapPolygonLayer.MapPolygonRules;
            MapColorRule    mapColorRule    = (mapPolygonRules == null) ? null : mapPolygonRules.MapColorRule;

            return(mapColorRule != null);
        }
Exemple #2
0
        protected override void RenderRules()
        {
            MapPolygonRules mapPolygonRules = this.MapPolygonLayer.MapPolygonRules;

            if (mapPolygonRules != null && mapPolygonRules.MapColorRule != null)
            {
                this.m_polygonColorRuleMapper.RenderPolygonRule(this.m_polygonTemplateMapper);
            }
            MapPointRules mapCenterPointRules = this.MapPolygonLayer.MapCenterPointRules;

            if (mapCenterPointRules != null)
            {
                base.RenderPointRules(mapCenterPointRules);
            }
        }
Exemple #3
0
        protected override void CreateRules()
        {
            MapPolygonRules mapPolygonRules = this.MapPolygonLayer.MapPolygonRules;

            if (mapPolygonRules != null && mapPolygonRules.MapColorRule != null)
            {
                this.m_polygonColorRuleMapper = new ColorRuleMapper(mapPolygonRules.MapColorRule, this, this.GetSpatialElementManager());
                this.m_polygonColorRuleMapper.CreatePolygonRule();
            }
            MapPointRules mapCenterPointRules = this.MapPolygonLayer.MapCenterPointRules;

            if (mapCenterPointRules != null)
            {
                base.CreatePointRules(mapCenterPointRules);
            }
        }