Class WindowOverlayClass

java.lang.Object
app.ui.windows.Window
app.ui.windows.WindowOverlayClass
Direct Known Subclasses:
OverlayCampInfoDisplayLowRaw, OverlayCampInfoDisplayView, OverlayCampListViewStaffCampActions, OverlayCampListViewStudentCampActions, OverlayCampSuggestionCommitteeView, OverlayCampSuggestionStaffView, OverlayCampSuggestionView, OverlayChooseBox, OverlayNotification, OverlayTextInputAction

public class WindowOverlayClass extends Window
Class representing an overlay window with additional offset and destruction capabilities. This class extends the base Window class and adds the ability to position the window with an offset and control its destruction.
  • Field Details

    • offsetX

      protected int offsetX
    • offsetY

      protected int offsetY
  • Constructor Details

    • WindowOverlayClass

      public WindowOverlayClass(int y, int x, int offsetY, int offsetX, String windowName)
      Constructor for WindowOverlayClass.
      Parameters:
      y - The Y position of the window.
      x - The X position of the window.
      offsetY - The Y offset.
      offsetX - The X offset.
      windowName - The name of the window.
  • Method Details

    • draw

      public void draw(com.googlecode.lanterna.screen.Screen screen, int x, int y, double transparency)
      Draws the window on the screen with the specified transparency and offset.
      Overrides:
      draw in class Window
      Parameters:
      screen - The screen to draw on.
      x - The X position to draw at.
      y - The Y position to draw at.
      transparency - The transparency level of the window.
    • getDestroy

      public boolean getDestroy()
      Gets the status of whether this overlay window should be destroyed.
      Returns:
      true if the window should be destroyed, false otherwise.
    • messageLoop

      public void messageLoop()
      Overrides the default message loop behavior to handle overlays if present.
      Overrides:
      messageLoop in class Window
    • setDestroy

      public void setDestroy()
      Sets the status to destroy this overlay window.
    • clearOuterArea

      public void clearOuterArea(com.googlecode.lanterna.screen.Screen screen, int x, int y, double transparency)
      Overrides:
      clearOuterArea in class Window
    • clearArea

      public void clearArea(com.googlecode.lanterna.screen.Screen screen)
      Clears the area occupied by this overlay window on the screen.
      Parameters:
      screen - The screen to clear the area on.