Package Shapes
Class MyOval
java.lang.Object
Shapes.MyShape
Shapes.MyBoundedShape
Shapes.MyOval
- Direct Known Subclasses:
MyCircle
public class MyOval extends MyBoundedShape
makes a oval and draws it
- Author:
- Itay Finci
-
Field Summary
-
Constructor Summary
Constructors Constructor Description MyOval(java.awt.Point origin, java.awt.Point target, java.awt.Color color, boolean filled, int thickness)makes a new oval -
Method Summary
Modifier and Type Method Description voiddraw(java.awt.Graphics g)shapes will implement this method to be drawnMethods inherited from class Shapes.MyBoundedShape
calculateHeight, calculateWidth, findStart, isFilled
-
Constructor Details
-
MyOval
public MyOval(java.awt.Point origin, java.awt.Point target, java.awt.Color color, boolean filled, int thickness)makes a new oval- Parameters:
origin- the origin point of the ovaltarget- the end point of the ovalcolor- the color of the ovalfilled- if the oval is filled or outlinedthickness- the line thickness
-
-
Method Details