public Circle(double r) { radius = r; xPos = DataModel.getNewXPos(); yPos = DataModel.getNewYPos(); }
public Triangle(double p) { oneSide = p; xPos = DataModel.getNewXPos(); yPos = DataModel.getNewYPos(); }
public Square(double p) { oneSide = p; xPos = DataModel.getNewXPos(); yPos = DataModel.getNewYPos(); }