Beispiel #1
0
		public SVGProperties(SVGProperties pParentSVGProperties, Attributes pAttributes, bool pAttributesDeepCopy) {
			this.mAttributes = (pAttributesDeepCopy) ? new Attributes(pAttributes) : pAttributes;
			this.mAttributes = pAttributes;
			this.mParentSVGProperties = pParentSVGProperties;
			var styleAttr = pAttributes.GetStringAttribute (SVGConstants.ATTRIBUTE_STYLE);
			if (styleAttr != null)
				mSVGStyleSet = new SVGStyleSet (styleAttr);
		}
Beispiel #2
0
        public SVGProperties(SVGProperties pParentSVGProperties, Attributes pAttributes, bool pAttributesDeepCopy)
        {
            this.mAttributes          = (pAttributesDeepCopy) ? new Attributes(pAttributes) : pAttributes;
            this.mAttributes          = pAttributes;
            this.mParentSVGProperties = pParentSVGProperties;
            var styleAttr = pAttributes.GetStringAttribute(SVGConstants.ATTRIBUTE_STYLE);

            if (styleAttr != null)
            {
                mSVGStyleSet = new SVGStyleSet(styleAttr);
            }
        }
Beispiel #3
0
        public SVGProperties(SVGProperties pParentSVGProperties, Attributes pAttributes, bool pAttributesDeepCopy)
        {
            this.mAttributes          = (pAttributesDeepCopy) ? new Attributes(pAttributes) : pAttributes;
            this.mAttributes          = pAttributes;
            this.mParentSVGProperties = pParentSVGProperties;
            var styleAttr = pAttributes.GetStringAttribute(SVGConstants.ATTRIBUTE_STYLE);

            if (styleAttr != null)
            {
                mSVGStyleSet = new SVGStyleSet(styleAttr);
            }
            foreach (string skey in styleattributes.Split(';'))
            {
                if (!pAttributes.ContainsKey(skey))
                {
                    continue;
                }
                if (styleAttr != null)
                {
                    mSVGStyleSet = new SVGStyleSet();
                }
                mSVGStyleSet.AddStyleAttribute(skey, pAttributes[skey]);
            }
        }