Advertisement
Guest User

Untitled

a guest
Feb 7th, 2016
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.63 KB | None | 0 0
  1. public class Dot implements Locatable
  2. {
  3. private int xx;
  4. private int yy;
  5. private int sizesize;
  6. public Dot()
  7. {
  8. xx=0;
  9. yy=0;
  10. sizesize=0;
  11. }
  12. public Dot(int x, int y)
  13. {
  14. xx=x;
  15. yy=y;
  16. sizesize=0;
  17. }
  18. public Dot(int x, int y, int size)
  19. {
  20. xx=x;
  21. yy=y;
  22. sizesize=size;
  23. }
  24. public int getXPos()
  25. {
  26. return xx;
  27. }
  28. public int getYPos()
  29. {
  30. return yy;
  31. }
  32. public String toString()
  33. {
  34. return xx + " " + yy + " " + sizesize;
  35. }
  36. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement