Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class Dot implements Locatable
- {
- private int xx;
- private int yy;
- private int sizesize;
- public Dot()
- {
- xx=0;
- yy=0;
- sizesize=0;
- }
- public Dot(int x, int y)
- {
- xx=x;
- yy=y;
- sizesize=0;
- }
- public Dot(int x, int y, int size)
- {
- xx=x;
- yy=y;
- sizesize=size;
- }
- public int getXPos()
- {
- return xx;
- }
- public int getYPos()
- {
- return yy;
- }
- public String toString()
- {
- return xx + " " + yy + " " + sizesize;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement