public class PolyUtils
extends java.lang.Object
限定符和类型 | 字段和说明 |
---|---|
static java.util.Map<java.lang.Class,java.lang.Class> |
blockMapCls |
构造器和说明 |
---|
PolyUtils() |
限定符和类型 | 方法和说明 |
---|---|
static java.awt.Point |
convertPoint2Designer(PolyDesigner designer,
int x,
int y) |
static java.awt.Point |
convertPoint2Designer(PolyDesigner designer,
java.awt.Point p) |
static int |
convertx2Designer(PolyDesigner designer,
int x) |
static int |
converty2Designer(PolyDesigner designer,
int y) |
static BlockCreator |
createCreator(BaseChart chart) |
static BlockCreator |
createCreator(java.lang.Class clazz) |
static BlockCreator |
createCreator(TemplateBlock block) |
static BlockCreator |
searchAt(PolyDesigner designer,
int x,
int y)
获取所处(x,y)位置的聚合块,如果没有,就返回null
|
public static BlockCreator createCreator(TemplateBlock block)
public static BlockCreator createCreator(java.lang.Class clazz)
public static BlockCreator createCreator(BaseChart chart)
public static java.awt.Point convertPoint2Designer(PolyDesigner designer, java.awt.Point p)
public static java.awt.Point convertPoint2Designer(PolyDesigner designer, int x, int y)
public static int convertx2Designer(PolyDesigner designer, int x)
public static int converty2Designer(PolyDesigner designer, int y)
public static BlockCreator searchAt(PolyDesigner designer, int x, int y)
designer
- x
- y
-