This commit is contained in:
unknown
2015-03-24 13:47:45 +01:00
parent ca90d98d9a
commit b9d42cd4eb
12 changed files with 308 additions and 110 deletions
+25 -3
View File
@@ -68,9 +68,7 @@ public class DrawObject implements Serializable{
g.fill(bottomRightCorner); //bottomright
g.setColor(Color.RED);
rotateDot = new Ellipse2D.Double((rektAngle.getX() + (rektAngle.getWidth()/2))-8,rektAngle.getY()-8,15,15);
g.fill(rotateDot);
g.fill(rotateDot);
}
}
@@ -208,4 +206,28 @@ public class DrawObject implements Serializable{
rektAngle = rectangle;
}
public int getX(){
return (int) position.getX();
}
public int getY(){
return (int) position.getY();
}
public int getEndX(){
Image image = new ImageIcon(filename).getImage();
//return (int) (position.getX() + (image.getWidth(null) * scale));
return (int) (position.getX() + image.getWidth(null));
}
public int getEndY(){
Image image = new ImageIcon(filename).getImage();
//return (int) (position.getY() + (image.getHeight(null) * scale));
return (int) (position.getY() + image.getHeight(null));
}
public String getFileName(){
return filename;
}
}