public NamedCollection(NamedElement parent, CommonElements common)
 {
     this.Common       = common;
     this.parent       = parent;
     this.nameToObject = new Hashtable();
     this.nameToIndex  = new Hashtable();
 }
 public DockablePanel(CommonElements common)
     : base(common)
 {
     this.Dock                 = (PanelDockStyle)this.GetDefaultPropertyValue("Dock", null);
     this.DockAlignment        = (DockAlignment)this.GetDefaultPropertyValue("DockAlignment", null);
     this.DockedInsideViewport = (bool)this.GetDefaultPropertyValue("DockedInsideViewport", null);
 }
Пример #3
0
 public Group(CommonElements common)
     : base(common)
 {
     this.offset             = new Offset(this, 0.0, 0.0);
     this.centralPointOffset = new Offset(this, 0.0, 0.0);
     this.fields             = new Hashtable();
 }
Пример #4
0
 public SwatchColor(CommonElements common, string name, double fromValue, double toValue, string textValue)
     : base(common)
 {
     this.Name      = name;
     this.fromValue = fromValue;
     this.toValue   = toValue;
     this.textValue = textValue;
 }
 public void SetContainingLegend(Legend legend)
 {
     this.legend = legend;
     if (this.legend != null)
     {
         this.margins.Common = this.legend.Common;
     }
 }
Пример #6
0
 public Viewport(CommonElements common)
     : base(common)
 {
     this.Name             = "Viewport";
     this.ViewCenter       = new ViewCenter(this, 50f, 50f);
     this.BackShadowOffset = 0;
     this.Visible          = true;
 }
Пример #7
0
 public MapLabel(CommonElements common)
     : base(common)
 {
     this.BackShadowOffset       = 0;
     this.Location.DefaultValues = true;
     this.Size.DefaultValues     = true;
     this.BorderStyle            = MapDashStyle.Solid;
     this.Visible = true;
 }
Пример #8
0
 public MapImage(CommonElements common)
     : base(common)
 {
     this.Location = new MapLocation(this, 20f, 20f);
     this.Location.DefaultValues = true;
     this.Size.DefaultValues     = true;
     this.BorderStyle            = MapDashStyle.Solid;
     this.Visible = true;
 }
Пример #9
0
 public void SetContainingLegend(Legend legend, LegendItem legendItem)
 {
     this.legend     = legend;
     this.legendItem = legendItem;
     if (this.legend != null)
     {
         this.margins.Common = this.legend.Common;
     }
 }
 public NavigationPanel(CommonElements common)
     : base(common)
 {
     this.Name         = "NavigationPanel";
     this.buttonNorth  = new PanelButton(this, PanelButtonType.NavigationButton, this.NavigationButtonClickHandler);
     this.buttonSouth  = new PanelButton(this, PanelButtonType.NaviagateSouth, this.NavigationButtonClickHandler);
     this.buttonEast   = new PanelButton(this, PanelButtonType.NaviagateEast, this.NavigationButtonClickHandler);
     this.buttonWest   = new PanelButton(this, PanelButtonType.NaviagateWest, this.NavigationButtonClickHandler);
     this.buttonCenter = new PanelButton(this, PanelButtonType.NaviagateCenter, this.NavigationButtonClickHandler);
     this.ApplyStyle();
     this.ApplyColors();
 }
Пример #11
0
 public Panel(CommonElements common)
     : base(common)
 {
     this.Margins            = new PanelMargins((PanelMargins)this.GetDefaultPropertyValue("Margins", null));
     this.Location           = new MapLocation((MapLocation)this.GetDefaultPropertyValue("Location", null));
     this.LocationUnit       = (CoordinateUnit)this.GetDefaultPropertyValue("LocationUnit", null);
     this.Size               = new MapSize((MapSize)this.GetDefaultPropertyValue("Size", null));
     this.SizeUnit           = (CoordinateUnit)this.GetDefaultPropertyValue("SizeUnit", null);
     this.BackColor          = (Color)this.GetDefaultPropertyValue("BackColor", null);
     this.BorderColor        = (Color)this.GetDefaultPropertyValue("BorderColor", null);
     this.BorderWidth        = (int)this.GetDefaultPropertyValue("BorderWidth", null);
     this.BackGradientType   = (GradientType)this.GetDefaultPropertyValue("BackGradientType", null);
     this.BackHatchStyle     = (MapHatchStyle)this.GetDefaultPropertyValue("BackHatchStyle", null);
     this.BackSecondaryColor = (Color)this.GetDefaultPropertyValue("BackSecondaryColor", null);
 }
Пример #12
0
        public ZoomPanel(CommonElements common)
            : base(common)
        {
            this.Name    = "ZoomPanel";
            this.scale   = new LinearScale(this);
            this.pointer = new LinearPointer(this);
            MapCore mapCore = base.GetMapCore();

            this.Scale.LabelStyle.Visible           = false;
            this.Scale.MajorTickMark.Visible        = false;
            this.Scale.MinorTickMark.Length         = 30f;
            this.Scale.MinorTickMark.Width          = 10f;
            this.Scale.MinorTickMark.EnableGradient = false;
            this.Scale.FillGradientType             = GradientType.None;
            this.Scale.FillHatchStyle = MapHatchStyle.None;
            this.Scale.ShadowOffset   = 0f;
            this.Scale.BorderWidth    = 1;
            this.Scale.Width          = 15f;
            this.Scale.Minimum        = 0.0;
            this.Scale.Maximum        = 100.00000000001;
            double tickMarksInterval = this.GetTickMarksInterval(this.TickCount);

            this.Scale.MinorTickMark.Interval = tickMarksInterval;
            this.Pointer.Placement            = Placement.Cross;
            if (mapCore != null && mapCore.Viewport != null)
            {
                this.Pointer.Position = (double)mapCore.Viewport.Zoom;
            }
            this.Pointer.SnappingEnabled  = true;
            this.Pointer.SnappingInterval = tickMarksInterval;
            this.Pointer.FillGradientType = GradientType.None;
            this.Pointer.FillHatchStyle   = MapHatchStyle.None;
            this.Pointer.ShadowOffset     = 0f;
            if (mapCore != null && mapCore.Viewport != null)
            {
                this.ZoomLevel = (double)mapCore.Viewport.Zoom;
            }
            this.zoomInButton  = new PanelButton(this, PanelButtonType.ZoomButton, PanelButtonStyle.RoundedRectangle, this.zoomButtonClickHandler);
            this.zoomOutButton = new PanelButton(this, PanelButtonType.ZoomOut, PanelButtonStyle.RoundedRectangle, this.zoomButtonClickHandler);
            this.ApplyStyle();
            this.ApplyColors();
        }
Пример #13
0
 public SvgMapGraphics(CommonElements common)
 {
 }
 public LegendCellColumnCollection(Legend legend, NamedElement parent, CommonElements common)
     : base(parent, common)
 {
     base.elementType = typeof(LegendCellColumn);
     this.legend      = legend;
 }
 public ShapeDataBindingRule(CommonElements common)
     : base(common)
 {
 }
Пример #16
0
 public AutoSizePanel(CommonElements common)
     : base(common)
 {
 }
Пример #17
0
 public CustomColor(CommonElements common)
     : base(common)
 {
     this.affectedElements = new ArrayList();
 }
Пример #18
0
 public ShapeRule(CommonElements common)
     : base(common)
 {
     this.customColors = new CustomColorCollection(this, common);
 }
 public PathDataBindingRule(CommonElements common)
     : base(common)
 {
 }
Пример #20
0
 public PathRuleCollection(NamedElement parent, CommonElements common)
     : base(parent, common)
 {
     base.elementType = typeof(PathRuleBase);
 }
 public SymbolDataBindingRule(CommonElements common)
     : base(common)
 {
 }
Пример #22
0
 public MapImageCollection(NamedElement parent, CommonElements common)
     : base(parent, common)
 {
     base.elementType = typeof(MapImage);
 }
 public DistanceScalePanel(CommonElements common)
     : base(common)
 {
     this.Name     = "DistanceScalePanel";
     this.SizeUnit = CoordinateUnit.Pixel;
 }
Пример #24
0
 public Field(CommonElements common)
     : base(common)
 {
     this.type = typeof(string);
 }
Пример #25
0
 public PredefinedSymbolCollection(NamedElement parent, CommonElements common)
     : base(parent, common)
 {
     base.elementType = typeof(PredefinedSymbol);
 }
Пример #26
0
 public LegendCellCollection(LegendItem legendItem, NamedElement parent, CommonElements common)
     : base(parent, common)
 {
     base.elementType = typeof(LegendCell);
     this.legendItem  = legendItem;
 }
 public DataBindingRulesCollection(NamedElement parent, CommonElements common)
     : base(parent, common)
 {
     base.elementType = typeof(DataBindingRuleBase);
 }
Пример #28
0
 public SymbolRule(CommonElements common)
     : base(common)
 {
     this.predefinedSymbols = new PredefinedSymbolCollection(this, common);
 }
 public SwatchColorCollection(NamedElement parent, CommonElements common)
     : base(parent, common)
 {
     base.elementType = typeof(SwatchColor);
 }
 public ShapeRuleCollection(NamedElement parent, CommonElements common)
     : base(parent, common)
 {
     base.elementType = typeof(ShapeRule);
 }