2018-01-30 04:14:17 -05:00
|
|
|
public class CursorPoint {
|
|
|
|
|
|
|
|
public int x;
|
|
|
|
public int y;
|
2018-01-31 00:04:07 -05:00
|
|
|
public int postMillisecondDelay; // how much to sleep for after moving here
|
2018-01-30 04:14:17 -05:00
|
|
|
|
2018-01-31 00:04:07 -05:00
|
|
|
public CursorPoint(int x, int y, int postMillisecondDelay) {
|
2018-01-30 04:14:17 -05:00
|
|
|
this.x = x;
|
|
|
|
this.y = y;
|
2018-01-31 00:04:07 -05:00
|
|
|
this.postMillisecondDelay = postMillisecondDelay;
|
|
|
|
}
|
|
|
|
|
|
|
|
public void setPostMillisecondDelay(int postMillisecondDelay) {
|
|
|
|
this.postMillisecondDelay = postMillisecondDelay;
|
|
|
|
}
|
|
|
|
|
|
|
|
public void display() {
|
|
|
|
System.out.println("Point: (" + x + "," + y + "), delay: " + postMillisecondDelay);
|
2018-01-30 04:14:17 -05:00
|
|
|
}
|
|
|
|
}
|