public class ColorSelect4Shape
extends java.lang.Object
构造器和说明 |
---|
ColorSelect4Shape() |
ColorSelect4Shape(int x,
int y,
java.awt.Image image) |
限定符和类型 | 方法和说明 |
---|---|
java.awt.geom.GeneralPath |
getSelectedPath()
获取选中的区域
|
boolean |
hasLoadedImage(java.awt.Image image)
判断是否加载图片.
|
void |
makesureClickPoint(double x,
double y)
重设鼠标落点
|
void |
makesureImage(java.awt.Image image)
重设图片
|
public ColorSelect4Shape()
public ColorSelect4Shape(int x, int y, java.awt.Image image)
public void makesureImage(java.awt.Image image)
image
- 图片imageWidth
- 图片的宽度imageHeight
- 图片的高度public void makesureClickPoint(double x, double y)
x
- 鼠标落点的横坐标y
- 鼠标落点的纵坐标public boolean hasLoadedImage(java.awt.Image image)
public java.awt.geom.GeneralPath getSelectedPath()