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

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

            Scale.MinorTickMark.Interval = tickMarksInterval;
            Pointer.Placement            = Placement.Cross;
            if (mapCore != null && mapCore.Viewport != null)
            {
                Pointer.Position = mapCore.Viewport.Zoom;
            }
            Pointer.SnappingEnabled  = true;
            Pointer.SnappingInterval = tickMarksInterval;
            Pointer.FillGradientType = GradientType.None;
            Pointer.FillHatchStyle   = MapHatchStyle.None;
            Pointer.ShadowOffset     = 0f;
            if (mapCore != null && mapCore.Viewport != null)
            {
                ZoomLevel = mapCore.Viewport.Zoom;
            }
            zoomInButton  = new PanelButton(this, PanelButtonType.ZoomButton, PanelButtonStyle.RoundedRectangle, zoomButtonClickHandler);
            zoomOutButton = new PanelButton(this, PanelButtonType.ZoomOut, PanelButtonStyle.RoundedRectangle, zoomButtonClickHandler);
            ApplyStyle();
            ApplyColors();
        }
 internal DataBindingRulesCollection(NamedElement parent, CommonElements common)
     : base(parent, common)
 {
     elementType = typeof(DataBindingRuleBase);
 }
示例#12
0
 internal CustomWidthCollection(NamedElement parent, CommonElements common)
     : base(parent, common)
 {
     elementType = typeof(CustomWidth);
 }
示例#13
0
 internal ShapeCollection(NamedElement parent, CommonElements common)
     : base(parent, common)
 {
     elementType = typeof(Shape);
 }
 internal LayerCollection(NamedElement parent, CommonElements common)
     : base(parent, common)
 {
     elementType = typeof(Layer);
 }
 internal MapImageCollection(NamedElement parent, CommonElements common)
     : base(parent, common)
 {
     elementType = typeof(MapImage);
 }
示例#16
0
 internal LegendCellCollection(LegendItem legendItem, NamedElement parent, CommonElements common)
     : base(parent, common)
 {
     elementType     = typeof(LegendCell);
     this.legendItem = legendItem;
 }
示例#17
0
 internal PathRule(CommonElements common)
     : base(common)
 {
     customColors = new CustomColorCollection(this, common);
 }
示例#18
0
 internal PredefinedSymbol(CommonElements common)
     : base(common)
 {
     affectedSymbols = new ArrayList();
 }
 internal GroupDataBindingRule(CommonElements common)
     : base(common)
 {
 }
 internal NamedElement(CommonElements common)
 {
     Common = common;
 }
示例#21
0
 internal SymbolRule(CommonElements common)
     : base(common)
 {
     predefinedSymbols = new PredefinedSymbolCollection(this, common);
 }
示例#22
0
 internal PathRuleCollection(NamedElement parent, CommonElements common)
     : base(parent, common)
 {
     elementType = typeof(PathRuleBase);
 }
示例#23
0
 internal GroupRuleCollection(NamedElement parent, CommonElements common)
     : base(parent, common)
 {
     elementType = typeof(GroupRule);
 }
示例#24
0
 internal Field(CommonElements common)
     : base(common)
 {
     type = typeof(string);
 }
 internal LegendCellColumnCollection(Legend legend, NamedElement parent, CommonElements common)
     : base(parent, common)
 {
     elementType = typeof(LegendCellColumn);
     this.legend = legend;
 }
示例#26
0
 internal SwatchColorCollection(NamedElement parent, CommonElements common)
     : base(parent, common)
 {
     elementType = typeof(SwatchColor);
 }
示例#27
0
 internal DataBindingRuleBase(CommonElements common)
     : base(common)
 {
 }
 internal PathDataBindingRule(CommonElements common)
     : base(common)
 {
 }
示例#29
0
 internal CustomWidth(CommonElements common)
     : base(common)
 {
     affectedElements = new ArrayList();
 }
 internal LegendItemsCollection(NamedElement parent, CommonElements common)
     : base(parent, common)
 {
     elementType = typeof(LegendItem);
 }