PowerMiner/src/CursorPoint.java

20 lines
522 B
Java
Raw Normal View History

2018-01-30 04:14:17 -05:00
public class CursorPoint {
public int x;
public int y;
public int postMillisecondDelay; // how much to sleep for after moving here
2018-01-30 04:14:17 -05:00
public CursorPoint(int x, int y, int postMillisecondDelay) {
2018-01-30 04:14:17 -05:00
this.x = x;
this.y = y;
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
}
}