Class RectangleFigure

All Implemented Interfaces:
IFigure

public class RectangleFigure extends Shape
Draws a rectangle whose size is determined by the bounds set to it.
  • Constructor Details

    • RectangleFigure

      public RectangleFigure()
      Creates a RectangleFigure.
  • Method Details

    • fillShape

      protected void fillShape(Graphics graphics)
      Description copied from class: Shape
      Fills the interior of the shape with the background color.
      Specified by:
      fillShape in class Shape
      Parameters:
      graphics - the graphics object
      See Also:
    • outlineShape

      protected void outlineShape(Graphics graphics)
      Description copied from class: Shape
      Outlines this shape using the foreground color.
      Specified by:
      outlineShape in class Shape
      Parameters:
      graphics - the graphics object
      See Also: