📄 shape.java
字号:
package com.mc.svg.shape;
import org.w3c.dom.Document;
import org.w3c.dom.Element;
import java.awt.Point;
public interface Shape {
public void setId(String str);
public String getId();
/**
* 得到文档
* @return Document
*/
public Document getDocument();
/**
* 得到本身
* return Element
*/
public Element getElement();
/**
* 设置文档
*/
public void setDocument(Document doc);
/**
* 得到父形状
* @return
*/
public Element getParentElement();
/**
* 设置父形状
* @return
*/
public void setParentElement(Element e);
/**
* 形状的位置
* @param x
* @param y
*/
public void setLocation(int x,int y);
public int getX();
public int getY();
public Point getLocation();
/*在这里调用javascript函数*/
public void addMouseOver(String functionName,String[] params);
public void addMouseOut(String functionName,String[] params);
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -