Example #1
0
		private void resolveHref(Dictionary<string, SVGFilter> pSVGFilterMap) {
			SVGFilter parent = pSVGFilterMap[this.mHref];
			if(parent == null) {
				throw new SVGParseException("Could not resolve href: '" + this.mHref + "' of SVGGradient: '" + this.mID + "'.");
			} else {
				parent.ensureHrefResolved(pSVGFilterMap);
				this.mParent = parent;
				this.mSVGAttributes.setParentSVGAttributes(this.mParent.mSVGAttributes);
			}
		}
Example #2
0
        SVGFilter getFilter(string pSVGFilterID)
        {
            SVGFilter svgFilter = this.mSVGFilterMap[pSVGFilterID];

            if (svgFilter == null)
            {
                return(null);                // TODO Better a SVGParseException here?
            }
            else
            {
                svgFilter.ensureHrefResolved(this.mSVGFilterMap);
                return(svgFilter);
            }
        }
Example #3
0
        public SVGFilter parseFilter(Attributes pAttributes)
        {
            string id = pAttributes.GetStringAttribute(SVGConstants.ATTRIBUTE_ID);

            if (id == null)
            {
                return(null);
            }

            SVGFilter svgFilter = new SVGFilter(id, pAttributes);

            this.mSVGFilterMap[id] = svgFilter;
            return(svgFilter);
        }
Example #4
0
        private void resolveHref(Dictionary <string, SVGFilter> pSVGFilterMap)
        {
            SVGFilter parent = pSVGFilterMap[this.mHref];

            if (parent == null)
            {
                throw new SVGParseException("Could not resolve href: '" + this.mHref + "' of SVGGradient: '" + this.mID + "'.");
            }
            else
            {
                parent.ensureHrefResolved(pSVGFilterMap);
                this.mParent = parent;
                this.mSVGAttributes.setParentSVGAttributes(this.mParent.mSVGAttributes);
            }
        }
Example #5
0
 void parseFilter(Attributes pAttributes)
 {
     this.mCurrentSVGFilter = this.mSVGPaint.parseFilter(pAttributes);
 }
Example #6
0
		public SVGFilter parseFilter (Attributes pAttributes) {
			string id = pAttributes.GetStringAttribute(SVGConstants.ATTRIBUTE_ID);
			if(id == null) {
				return null;
			}

			SVGFilter svgFilter = new SVGFilter(id, pAttributes);
			this.mSVGFilterMap[id] = svgFilter;
			return svgFilter;
		}
Example #7
0
		void parseFilter(Attributes pAttributes) {
			this.mCurrentSVGFilter = this.mSVGPaint.parseFilter(pAttributes);
		}