Code example for Element

Methods: getNodeName

0
 
	/** 
	 * @see org.newdawn.slick.svg.inkscape.ElementProcessor#handles(org.w3c.dom.Element) 
	 */ 
	public boolean handles(Element element) {
		if (element.getNodeName().equals("g")) {
			return true; 
		} 
		return false; 
	} 
 
	/**O 
	 * @see org.newdawn.slick.svg.inkscape.ElementProcessor#process(org.newdawn.slick.svg.Loader, org.w3c.dom.Element, org.newdawn.slick.svg.Diagram, org.newdawn.slick.geom.Transform) 
	 */ 
	public void process(Loader loader, Element element, Diagram diagram, Transform t) throws ParsingException {
		Transform transform = Util.getTransform(element);
		transform = new Transform(t, transform);
		 
		loader.loadChildren(element, transform);
	}