public class Connector extends java.lang.Object implements XMLable
构造器和说明 |
---|
Connector() |
限定符和类型 | 方法和说明 |
---|---|
Connector |
addAll(java.util.ArrayList drawingPoint) |
void |
addPoint(int i,
java.awt.Point p) |
void |
checkPoint() |
java.lang.Object |
clone() |
boolean |
coveredByRectangle(java.awt.Rectangle re) |
void |
draw(java.awt.Graphics g) |
boolean |
equals(java.lang.Object o) |
java.awt.Rectangle[] |
getEditableLineRectangle() |
java.awt.Point[] |
getEditAblePoint() |
java.awt.Point |
getEndPoint() |
java.awt.Point |
getMidPoint(java.awt.Point p1,
java.awt.Point p2) |
int |
getPointCount() |
java.awt.Point |
getPointIndex(int index) |
java.awt.Point |
getStartPoint() |
int |
hashCode() |
boolean |
nearPoint(java.awt.Point p) |
void |
readXML(XMLableReader reader)
读取子节点,应该会被XMLableReader.readXMLObject()调用多次
|
void |
writeXML(XMLPrintWriter writer)
Write XML.
|
public Connector addAll(java.util.ArrayList drawingPoint)
public java.awt.Point getStartPoint()
public java.awt.Point getEndPoint()
public int getPointCount()
public void addPoint(int i, java.awt.Point p)
public java.awt.Point getPointIndex(int index)
public void checkPoint()
public boolean nearPoint(java.awt.Point p)
public boolean coveredByRectangle(java.awt.Rectangle re)
public java.awt.Rectangle[] getEditableLineRectangle()
public java.awt.Point getMidPoint(java.awt.Point p1, java.awt.Point p2)
public java.awt.Point[] getEditAblePoint()
public void draw(java.awt.Graphics g)
public void readXML(XMLableReader reader)
XMLReadable
readXML
在接口中 XMLReadable
reader
- XML读取对象XMLableReader
public void writeXML(XMLPrintWriter writer)
XMLWriter
public int hashCode()
hashCode
在类中 java.lang.Object
public boolean equals(java.lang.Object o)
equals
在类中 java.lang.Object
public java.lang.Object clone() throws java.lang.CloneNotSupportedException
clone
在接口中 FCloneable
clone
在类中 java.lang.Object
java.lang.CloneNotSupportedException
- 如果克隆失败则抛出此异常