reorganized files and a part of the architecture.
This version needs to be tested. Don't forget to add comments. git-svn-id: http://wiiusej.googlecode.com/svn/trunk@64 ae48ae66-6a45-0410-b38e-211266189506
This commit is contained in:
35
WiiUseJ/src/wiiusej/values/Point2DInteger.java
Normal file
35
WiiUseJ/src/wiiusej/values/Point2DInteger.java
Normal file
@@ -0,0 +1,35 @@
|
||||
package wiiusej.values;
|
||||
|
||||
import java.awt.geom.Point2D;
|
||||
|
||||
public class Point2DInteger extends Point2D {
|
||||
private int x;
|
||||
private int y;
|
||||
|
||||
public Point2DInteger(int xx, int yy) {
|
||||
super();
|
||||
setLocation(xx,yy);
|
||||
}
|
||||
|
||||
@Override
|
||||
public double getX() {
|
||||
return x;
|
||||
}
|
||||
|
||||
@Override
|
||||
public double getY() {
|
||||
return y;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void setLocation(double xx, double yy) {
|
||||
this.x = (int)xx;
|
||||
this.y = (int)yy;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "("+x+","+y+")";
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user