Module project.pong

Interface Resizable

All Known Implementing Classes:
Ball, Racket

public interface Resizable
The Resizable interface represents an object that can be resized.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    resizeHeight(double factor)
    Resizes the object's height by the specified factor.
    void
    resizeWidth(double factor)
    Resizes the object's width by the specified factor.
  • Method Details

    • resizeWidth

      void resizeWidth(double factor)
      Resizes the object's width by the specified factor.
      Parameters:
      factor - The factor by which to resize the width.
    • resizeHeight

      void resizeHeight(double factor)
      Resizes the object's height by the specified factor.
      Parameters:
      factor - The factor by which to resize the height.