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 paint
    void addRectangle​(Rectangle rectangle)
    Add rectangle to paint
    void addTriangle​(Triangle triangle)
    Add triangle to paint
    void drawAll()
    Print info of all shapes
    void printAll()
    print info of all shapes

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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