This commit is contained in:
unknown
2015-04-07 14:29:24 +02:00
parent a2110d3e58
commit 0535d98427
47 changed files with 2938 additions and 18 deletions
+6
View File
@@ -236,4 +236,10 @@ public abstract class DrawObject implements Serializable{
return filename;
}
public Point2D getMiddlePoint(){
Image image = Images.getImage(filename);
Point2D p = new Point2D.Double((position.getX() + (image.getWidth(null)/2)), (position.getY() + (image.getHeight(null)/2)));
return p;
}
}