Package Shapes

Class MyCircle

java.lang.Object

public class MyCircle
extends MyOval
a circle defined by two points, restricts to a valid circle!
Author:
Itay Finci
  • Field Summary

    Fields inherited from class Shapes.MyShape

    color, origin, stroke, target, thickness
  • Constructor Summary

    Constructors 
    Constructor Description
    MyCircle​(java.awt.Point origin, java.awt.Point target, java.awt.Color color, boolean filled, int thickness)
    makes a new circle
  • Method Summary

    Modifier and Type Method Description
    protected int calculateHeight()  
    protected int calculateWidth()  

    Methods inherited from class Shapes.MyOval

    draw

    Methods inherited from class Shapes.MyBoundedShape

    findStart, isFilled

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • MyCircle

      public MyCircle​(java.awt.Point origin, java.awt.Point target, java.awt.Color color, boolean filled, int thickness)
      makes a new circle
      Parameters:
      origin - the origin point of the oval
      target - the end point of the oval
      color - the color of the oval
      filled - if the oval is filled or outlined
      thickness - the line thickness
  • Method Details