?? shape.java
字號(hào):
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();
/**
* 設(shè)置文檔
*/
public void setDocument(Document doc);
/**
* 得到父形狀
* @return
*/
public Element getParentElement();
/**
* 設(shè)置父形狀
* @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();
/*在這里調(diào)用javascript函數(shù)*/
public void addMouseOver(String functionName,String[] params);
public void addMouseOut(String functionName,String[] params);
}
?? 快捷鍵說(shuō)明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -