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