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.
35 lines
626 B
35 lines
626 B
package seng302;
|
|
|
|
/**
|
|
* Graph Coordinate that is to be displayed on the Canvas
|
|
* Created by cbt24 on 15/03/17.
|
|
*/
|
|
public class GraphCoordinate {
|
|
private int x;
|
|
private int y;
|
|
|
|
/**
|
|
* Constructor method.
|
|
* @param x X coordinate.
|
|
* @param y Y coordinate.
|
|
*/
|
|
public GraphCoordinate(int x, int y) { this.x = x; this.y = y; }
|
|
|
|
/**
|
|
* Returns the X coordinate.
|
|
* @return x axis Coordinate.
|
|
*/
|
|
public int getX() {
|
|
return x;
|
|
}
|
|
|
|
/**
|
|
* Returns the Y coordinate.
|
|
* @return y axis Coordinate.
|
|
*/
|
|
public int getY() {
|
|
return y;
|
|
}
|
|
|
|
}
|