You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
54 lines
790 B
54 lines
790 B
package com.example.jmacro.wjdr.base;
|
|
|
|
/**
|
|
* 可视坐标点
|
|
*
|
|
* @author wangbing
|
|
* @version 0.0.1
|
|
* @since 1.8
|
|
*/
|
|
public class ViewPoint {
|
|
|
|
/**
|
|
* 相对原点(左上)的x轴距离
|
|
*/
|
|
private int x;
|
|
/**
|
|
* 相对原点(左上)的y轴距离
|
|
*/
|
|
private int y;
|
|
|
|
private ViewPoint() {
|
|
|
|
}
|
|
|
|
public ViewPoint(int x, int y) {
|
|
this.x = x;
|
|
this.y = y;
|
|
}
|
|
|
|
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;
|
|
}
|
|
|
|
@Override
|
|
public String toString() {
|
|
return "ViewPoint{" +
|
|
"x=" + x +
|
|
", y=" + y +
|
|
'}';
|
|
}
|
|
}
|