/*
Copyright (C) 2010 Petri Tuononen
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package types;
/**
* Defines a coordinates class that contains x and y attributes.
*
* @author Petri Tuononen
*
*/
public class Coordinates {
/**
* @uml.property name="x"
*/
private int x;
/**
* @uml.property name="y"
*/
private int y;
/**
* Constructor.
* @param x
* @param y
*/
public Coordinates(int x, int y) {
this.x = x;
this.y = y;
}
/**
* Get value of x.
* @return x
* @uml.property name="x"
*/
public int getX() {
return x;
}
/**
* Get value of y.
* @return y
* @uml.property name="y"
*/
public int getY() {
return y;
}
/**
* Set value for x.
* @param x
* @uml.property name="x"
*/
public void setX(int x) {
this.x = x;
}
/**
* Set value of y.
* @param y
* @uml.property name="y"
*/
public void setY(int y) {
this.y = y;
}
}
|