Class MenuUserSelectionOverlayView

java.lang.Object
view.overlays.menuOverlays.MenuOverlayView
view.overlays.menuOverlays.MenuUserSelectionOverlayView

public class MenuUserSelectionOverlayView extends MenuOverlayView
The MenuUserSelectionOverlayView class represents the overlay view for the MenuUserSelectionOverlayModel class. It handles drawing the user selection interface, including the user picture, name, and controls.
  • Constructor Details

    • MenuUserSelectionOverlayView

      public MenuUserSelectionOverlayView(MenuUserSelectionOverlayModel menuUserSelectionOverlayModel)
      Constructs a MenuUserSelectionOverlayView with the specified MenuUserSelectionOverlayModel. Initializes the arrows images.
      Parameters:
      menuUserSelectionOverlayModel - the model of the user selection overlay
  • Method Details

    • draw

      public void draw(Graphics g)
      Draws the user selection overlay on the screen.
      Specified by:
      draw in class MenuOverlayView
      Parameters:
      g - the Graphics object to draw with
    • setLeftArrowIndex

      public void setLeftArrowIndex(int leftArrowIndex)
      Sets the index of the left arrow image.
      Parameters:
      leftArrowIndex - the index of the left arrow image
    • setRightArrowIndex

      public void setRightArrowIndex(int rightArrowIndex)
      Sets the index of the right arrow image.
      Parameters:
      rightArrowIndex - the index of the right arrow image