Class Paint
java.lang.Object
Paint
public class Paint
extends java.lang.Object
- Author:
- Ali
-
Constructor Summary
Constructors Constructor Description Paint()
Create a new Paint -
Method Summary
Modifier and Type Method Description void
addCircle(Circle circle)
Add circle to paintvoid
addRectangle(Rectangle rectangle)
Add rectangle to paintvoid
addTriangle(Triangle triangle)
Add triangle to paintvoid
drawAll()
Print info of all shapesvoid
printAll()
print info of all shapes
-
Constructor Details
-
Paint
public Paint()Create a new Paint
-
-
Method Details
-
addCircle
public void addCircle(Circle circle)Add circle to paint- Parameters:
circle
-
-
addTriangle
public void addTriangle(Triangle triangle)Add triangle to paint- Parameters:
triangle
-
-
addRectangle
public void addRectangle(Rectangle rectangle)Add rectangle to paint- Parameters:
rectangle
-
-
drawAll
public void drawAll()Print info of all shapes -
printAll
public void printAll()print info of all shapes
-