Package view.overlays.menuOverlays
Class MenuUserSelectionOverlayView
java.lang.Object
view.overlays.menuOverlays.MenuOverlayView
view.overlays.menuOverlays.MenuUserSelectionOverlayView
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.-
Field Summary
Fields inherited from class view.overlays.menuOverlays.MenuOverlayView
nesFont, retroFont -
Constructor Summary
ConstructorsConstructorDescriptionMenuUserSelectionOverlayView(MenuUserSelectionOverlayModel menuUserSelectionOverlayModel) Constructs a MenuUserSelectionOverlayView with the specified MenuUserSelectionOverlayModel. -
Method Summary
Modifier and TypeMethodDescriptionvoidDraws the user selection overlay on the screen.voidsetLeftArrowIndex(int leftArrowIndex) Sets the index of the left arrow image.voidsetRightArrowIndex(int rightArrowIndex) Sets the index of the right arrow image.
-
Constructor Details
-
MenuUserSelectionOverlayView
Constructs a MenuUserSelectionOverlayView with the specified MenuUserSelectionOverlayModel. Initializes the arrows images.- Parameters:
menuUserSelectionOverlayModel- the model of the user selection overlay
-
-
Method Details
-
draw
Draws the user selection overlay on the screen.- Specified by:
drawin classMenuOverlayView- 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
-