- calculateArea() - Method in class Circle
-
Calculates the area of a circle.
- calculateArea() - Method in class Rectangle
-
Calculates the area of the rectangle.
- calculateArea() - Method in class Shape
-
Abstract method that returns the area of polygon.
- calculateArea() - Method in class Triangle
-
Calculate the area of the triangle.
- calculatePerimeter() - Method in class Circle
-
Calculates the perimeter of a circle.
- calculatePerimeter() - Method in class Rectangle
-
Calculates the perimeter of the rectangle.
- calculatePerimeter() - Method in class Shape
-
Abstract method that returns the perimeter of polygon.
- calculatePerimeter() - Method in class Triangle
-
Calculate the perimeter of the triangle.
- Circle - Class in <Unnamed>
-
Content originated from Kushagra Tiwary, 10/30/2016
Modified by garethhalladay on 9/13/17
Use point1.distance(point2) to find the distance between two Point objects.
- Circle(Point, Point) - Constructor for class Circle
-
Initializes a newly created Circle object whose location and size are determined
by Point a and and Point b
- compareTo(Shape) - Method in class Shape
-
compareTo method required for implementing the Comparable interface
Return:
-1 from compareTo if the area of this Shape is less than the area of the Shape parameter
0 from compareTo if the area of this Shape equals the area of the Shape parameter
1 from compareTo if the area of this Shape is greater than the area of the Shape parameter
- createShapeArray() - Static method in class TestProgram
-
Creates a list with various shapes.