package cn.dadongzicool.point;
import java.awt.Color;
public class Point {
int x,y;
Color myColor;
public Point() {
super();
// TODO Auto-generated constructor stub
}
public Point(int x, int y) {
super();
this.x = x;
this.y = y;
}
public Point(int x, int y, Color myColor) {
super();
this.x = x;
this.y = y;
this.myColor = myColor;
}
public int getX() {
return x;
}
public void setX(int x) {
this.x = x;
}
public int getY() {
return y;
}
public void setY(int y) {
this.y = y;
}
public Color getMyColor() {
return myColor;
}
public void setMyColor(Color myColor) {
this.myColor = myColor;
}
public boolean equals(Object obj) {
return myColor.equals(obj);
}
public String toString() {
return myColor.toString();
}
}