Exemplo n.º 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);
			}
		}
Exemplo n.º 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);
            }
        }
Exemplo n.º 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);
        }
Exemplo n.º 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);
            }
        }
Exemplo n.º 5
0
 void parseFilter(Attributes pAttributes)
 {
     this.mCurrentSVGFilter = this.mSVGPaint.parseFilter(pAttributes);
 }
Exemplo n.º 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;
		}
Exemplo n.º 7
0
		void parseFilter(Attributes pAttributes) {
			this.mCurrentSVGFilter = this.mSVGPaint.parseFilter(pAttributes);
		}