⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 animatemotion.java

📁 svg gwt 监控软件 大的 大 发了佛法ffffffffff发的司法
💻 JAVA
字号:
package com.mc.svg.shape.basicshape;

import org.w3c.dom.Document;
import org.w3c.dom.Element;

import com.mc.svg.SVGCanvas;
import com.mc.svg.shape.AbstractShape;

public class AnimateMotion extends AbstractShape {

	private Element s = null;

	public AnimateMotion(Document doc) {
		this.doc = doc;
		root = doc.createElementNS(SVGCanvas.svgNS, "animateMotion");

		s = doc.createElementNS(SVGCanvas.svgNS, "mpath");
		root.appendChild(s);
	}

	public void setXlinkHref(String id) {
		s.setAttribute("xlink:href", "#" + id);
	}

	public void setDur(int dur) {
		root.setAttribute("dur", dur + "s");
	}
	
	public void setBeginTime(int time){
		root.setAttribute("begin", time + "s");
	}

	public void setRepeatDur(String repeat) {
		root.setAttribute("repeatDur", repeat);
	}
	
	public void setRepeatCount(String repeat) {
		root.setAttribute("repeatCount", repeat);
	}

	public void setRotate(String rotate) {
		root.setAttribute("rotate", rotate);
	}

}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -